terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

Provide command line arg to disable remote state bucket updates

Open davidsomebody opened this issue 2 years ago • 1 comments

Hi,

with v0.37.0 introduced enforced remote state bucket updates our pipelines start to fail. The root cause is the permission model we use. Our CI pipelines which execute terragrunt are not allowed to update the S3 state bucket (which is managed centrally), therefore we would like to use the newly introduced disable_bucket_update = true. Unfortunately, we have many terragrunt.hcl files for all the different pipelines distributed across many repositories which would make updating all the remote state configurations cumbersome. As an alternative, we would like to use this option as a command-line argument, since our terragrunt execution is configured in a central share pipeline template which we could updated easily.

Looking forward if this feature request would be an option.

Best, David.

davidsomebody avatar May 24 '22 14:05 davidsomebody

Would it also make sense to expose this via an environment variable ?

kim0 avatar Sep 07 '22 09:09 kim0

Would it also make sense to expose this via an environment variable ?

Absolutely, we build a tooling image which includes Terragrunt; given that we have the same behaviour across all of our repos, we'd be able to set the env var in that image rather than having to update all of our repos

demolitionmode avatar Feb 02 '23 16:02 demolitionmode

Added new CLI argument in https://github.com/gruntwork-io/terragrunt/releases/tag/v0.48.4

denis256 avatar Jul 19 '23 14:07 denis256