AzBuilder / terrakube

Open source IaC Automation and Collaboration Software.
https://docs.terrakube.io
Apache License 2.0
496 stars 38 forks source link

Fix run id logic for terraform remote plan #1211

Closed alfespa17 closed 1 month ago

alfespa17 commented 1 month ago

This will fix the "run-id" logic when running the following command.

terraform plan -out myPlan.tfplan

Now the file "myPlan.tfplan" will have the correct values, for example:

{"remote_plan_format":1,"run_id":"run-116","hostname":"terrakube-api.minikube.net"}

And the logs will show the id like "run-XXXX"

image

Partial fix for the following #1166

The terraform apply myPlan.tfplan logic still needs to be added when using remote executions

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud