gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.04k stars 975 forks source link

Provide command line arg to disable remote state bucket updates #2121

Closed ghost closed 1 year ago

ghost commented 2 years ago

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.

kim0 commented 2 years ago

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

demolitionmode commented 1 year ago

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

denis256 commented 1 year ago

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