You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. # Please remove any sensitive information from configuration files before sharing them.
Debug Output
Panic Output
Expected Behavior
When we update the defined tags for existing resources, I expect terraform to detect the changes and show the required actions as part of the plan.
Actual Behavior
Because we ignore defined_tags and freeform_tags as part of the lifecycle block, the changes related to tags on existing resources are ignored by terraform and not applied on terraform apply.
As part of the fix we should remove the freeform_tags from the lifecycle and be specific about the defined_tags with the changes we expect: defined_tags["Oracle-Tags.CreatedBy"], defined_tags["Oracle-Tags.CreatedOn"]
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version and Provider Version
all
Affected Resource(s)
All resources where the lifecycle includes defined_tags and freeform_tags without mentioning specific keys which may be updated.
Terraform Configuration Files
https://github.com/oracle-terraform-modules/terraform-oci-oke/blob/c23e645d351c9c6e963731854758da616eb073c1/modules/workers/nodepools.tf#L106C1-L106C41
other resources may have the same issue.
Debug Output
Panic Output
Expected Behavior
When we update the defined tags for existing resources, I expect terraform to detect the changes and show the required actions as part of the plan.
Actual Behavior
Because we ignore defined_tags and freeform_tags as part of the lifecycle block, the changes related to tags on existing resources are ignored by terraform and not applied on
terraform apply
.As part of the fix we should remove the freeform_tags from the lifecycle and be specific about the defined_tags with the changes we expect: defined_tags["Oracle-Tags.CreatedBy"], defined_tags["Oracle-Tags.CreatedOn"]
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: