question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support `"all"` for ignoreChanges in lifecycle

See original GitHub issue

Community 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:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ansgarmcommented, Jan 5, 2022

Is all a keyword which works in other contexts as well?

None that I know of – I’ve also checked the other properties of lifecycle and none share that all.

1reaction
ansgarmcommented, Dec 16, 2021

Hi @aaronfeng

Currently the type only allows specifying an array. But you can use an override to set "all":

yourResource.addOverride("lifecycle.ignore_changes", "all");

We should support all however, so let’s keep this issue open to track this improvement 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found