leverage
leverage copied to clipboard
Bug | Terraform init doesn't raise the exit error if it fails internally
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:
- Go to
le-tf-infra-aws/apps-devstg/global/base-identities
- Use a toolbox image with terraform version 1.5 (e.g.
TERRAFORM_IMAGE_TAG=1.5.0-0.1.13
) - Run
leverage terraform init
- An error will pop up:
Error: Unsupported Terraform Core version
but the exit code will be 0.