Skip to content

Commit

Permalink
Adding terraform plan with parameters support
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 committed May 13, 2021
1 parent ac8c96e commit 5d00e85
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion terraform-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0.0.3</revision>
<revision>0.0.4</revision>
<maven.deploy.skip>false</maven.deploy.skip>
<okhttp.version>4.9.1</okhttp.version>
<commons-io.version>2.8.0</commons-io.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,15 @@ private ProcessLauncher getTerraformLauncher(TerraformCommand command) throws IO
}

switch (command) {
case plan:
for (Map.Entry<String, String> entry : this.getTerraformParameters().entrySet()) {
launcher.appendCommands("--var", entry.getKey().concat("=").concat(entry.getValue()));
}
break;
case apply:

for (Map.Entry<String, String> entry : this.getTerraformParameters().entrySet()) {
launcher.appendCommands("--var", entry.getKey().concat("=").concat(entry.getValue()));
}

launcher.appendCommands("-auto-approve");
break;
case destroy:
Expand Down
2 changes: 1 addition & 1 deletion terraform-spring-boot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0.0.3</revision>
<revision>0.0.4</revision>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion terraform-spring-boot-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0.0.3</revision>
<revision>0.0.4</revision>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion terraform-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0.0.3</revision>
<revision>0.0.4</revision>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>

Expand Down

0 comments on commit 5d00e85

Please sign in to comment.