Support `"all"` for ignoreChanges in lifecycle
See original GitHub issueCommunity Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave “+1” or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Is it possible to ignore all attributes on a resource using cdktf? I tried to pass in ["all"]
and it doesn’t work.
Is there a workaround without defining every attribute in the list?
References
https://www.terraform.io/docs/language/meta-arguments/lifecycle.html
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The lifecycle Meta-Argument - Terraform - HashiCorp Developer
The ignore_changes feature is intended to be used when a resource is created with references to data that may change in the future,...
Read more >How and when to ignore lifecycle changes in Terraform
The ignore_changes argument means that Terraform will set the value when the resource is first deployed and then forever ignore any changes to ......
Read more >IgnoreChanges Resource Option - Pulumi
The ignoreChanges resource option specifies a list of properties that Pulumi will ignore when it updates existing resources. Pulumi ignores a property by ......
Read more >terraform lifecycle ignore_changes - Stack Overflow
I tried to do ignore changes for specific env variable but it actually ignores fully container definition then. Simple code: resource " ...
Read more >Resource Tagging - hashicorp/aws - Terraform Registry
All Terraform resources support the lifecycle configuration block ignore_changes argument, which can be used to explicitly ignore all tags changes on a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
None that I know of – I’ve also checked the other properties of
lifecycle
and none share thatall
.Hi @aaronfeng
Currently the type only allows specifying an array. But you can use an override to set
"all"
:We should support
all
however, so let’s keep this issue open to track this improvement 👍