-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Missing Tags in ASG and Instances Confirmed in Terraform Plan #14247
Comments
Additional InfoRunning ~ aws_autoscaling_group.chef-compliance-asg
tag.#: "2" => "4"
tag.1021368698.key: "api_fqdn" => "api_fqdn"
tag.1021368698.propagate_at_launch: "true" => "true"
tag.1021368698.value: "compliance.example.com" => "compliance.example.com"
tag.1375981587.key: "" => "aws_cost_role"
tag.1375981587.propagate_at_launch: "" => "true"
tag.1375981587.value: "" => "devops"
tag.2821508855.key: "" => "aws_cost_allocation"
tag.2821508855.propagate_at_launch: "" => "true"
tag.2821508855.value: "" => "prod"
tag.477549816.key: "environment" => "environment"
tag.477549816.propagate_at_launch: "true" => "true"
tag.477549816.value: "production" => "production" |
Hey @JasonKAls, thanks for the issue! Unfortunately there isn't much that we can change here to allow this functionality to work. AWS restricts the While this is possible via the AWS Console, Terraform purposefully ignores tags prefixed with Closing this for now, as it's a known decision made at the Terraform level, but happy to discuss this further if needed. I'm sorry this isn't the answer you were looking for, but hopefully adds some color to why these tags weren't propagating correctly. |
understood...thanks! |
@JasonKAls forgot to mention above, but because Terraform ignores all tags with the |
That does help...Thanks again! |
@JasonKAls Apologies here. This actually is a bug, we should only be limiting the set of AWS tags that have the prefix See: #14308, as well. Re-opening for a fix. |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there,
I'm having an issue with my billing tags not appearing on my created instances via an ASG. As you'll see from the HCL code, I have 4 tags. The
aws_cost_role
and theaws_cost_allocation
do not appear what terraform is applied.Terraform Version
Terraform v0.9.4
Affected Resource(s)
aws_instance
though I'm using an ASG insteadTerraform Configuration Files
Expected Behavior
Should see all 4 Tags listed for my instances created by my ASG resource
Actual Behavior
Missing both AWS Cost Allocation Tags
Steps to Reproduce
Below is part of the Debug I found to be interesting.
https://gist.github.com/JasonKAls/5c5dcb2e451a6eedf7560ddbe3873b78
For both missing tags it states the following: Found AWS specific tag aws_cost_allocation (val: prod), ignoring.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: