hashicorp-community / tf-helper

Commands for performing operations on Terraform states, configurations, TFE using the API, and more. Please target all PRs to the master branch, not the release branch.
Mozilla Public License 2.0
102 stars 32 forks source link

pushconfig: Error 404 with -destroy #21

Closed abdennebi closed 4 years ago

abdennebi commented 4 years ago

Hi,

When adding the -destroy parameter, I get an 404 error because the script is calling the https://app.terraform.io/api/v2/configuration-versions/endpoint without configuration_id.

When destroy is activated the variable $config_idis null at this line: https://github.com/hashicorp-community/tf-helper/blob/0fba4dcce876bb5d4ff6a17cda5f56e8ddf36007/tfh/lib/tfh/cmd/tfh_pushconfig.sh#L327

fprimex commented 4 years ago

I think I have resolved this. There was a fi that was not where it should have been in pushconfig that was causing many errors.

fprimex commented 4 years ago

Fix is in master. Will be in the next release.