Open joekohlsdorf opened 1 week ago
Confirmed issue!
After doing the import the purpose_data
doesn't appear on the tfstate
file, but it was added successfully on GCP, and after running a terraform plan
it results in a replacement even if there are no changes.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.6 on darwin_amd64
Affected Resource(s)
google_tags_tag_key
Terraform Configuration
Debug Output
No response
Expected Behavior
After creating the resource, removing it from state and then importing it again should not cause any changes to be detected.
Actual Behavior
After
terraform import
, the state does not containpurpose_data
leading to a plan which will replace the resource:Steps to reproduce
terraform apply
terraform state rm 'google_tags_tag_key.tag_key'
terraform import 'google_tags_tag_key.tag_key' tagKeys/***TAGKEYID***
terraform plan
Important Factoids
No response
References
No response
b/377568938