-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF fails to create tags with empty value #21896
Comments
We have a failing CI test that shows this issue:
|
We are seeing the same issue in aws_subnet resource. |
We are seeing the same issue in aws_s3_bucket resource |
Unable to add tags with empty values to aws_s3_bucket with terraform. We will be continuing to add these empty tags for AWS MAP as required for aws. Do we know if this will be fixed or being fixed? |
When a new ec2 instance is generated and labels with empty values are placed, it is generated correctly. |
I can add something to the list as well
While providing an empty value for a tag. Please note, that this tag was provided via the default_tags section. Seen in 4.66.0 for Terraform 1.4.6 |
This functionality has been released in v5.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
We create a KMS key here because that's the most recent resource this has come up on but I also see it on buckets regularly now.
example/a_key.tf
Expected Behavior
All tags, even those whose value is "", are created. This used to work before support for tags_all was added.
Actual Behavior
Empty valued tags are not created and repeatedly appear in future plans.
Steps to Reproduce
terraform apply
;terraform plan
Important Factoids
If the empty valued tags are added by hand via console or CLI, terraform plan stops marking them as needing to be created, but it will not create them itself. empty-valued tags are completely legal and expected by AWS.
References
The text was updated successfully, but these errors were encountered: