binbashar / leverage

Binbash Leverage CLI intended to orchestrate Leverage Reference Architecture for AWS (www.binbash.co/leverage)
https://pypi.org/project/leverage/
Apache License 2.0
17 stars 2 forks source link

Bug | Terraform init doesn't raise the exit error if it fails internally #272

Open Franr opened 3 months ago

Franr commented 3 months ago

Describe the Bug

If you run leverage terraform init, and the init command fails for some reason, it finish with no exit error.

Expected Behavior

It should catch and raise the error code gracefully.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to le-tf-infra-aws/apps-devstg/global/base-identities
  2. Use a toolbox image with terraform version 1.5 (e.g. TERRAFORM_IMAGE_TAG=1.5.0-0.1.13)
  3. Run leverage terraform init
  4. An error will pop up: Error: Unsupported Terraform Core version but the exit code will be 0.