-
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
aws_budgets_budget create and update fail with multilpe TagKeyValue cost_filters #13288
Comments
Running into the exact same issue here. |
I've also just run into this issue and was digging around for a workaround, and it does seem that there's some mismatch in data type here Additionally, there seems to be some strange things going on to make this mismatched schema fit the API: I may be misunderstanding the code, but it looks like this first defines the cost filters correctly as I think fixing the schema in the first section and removing the unneeded casting in the second section would resolve this. As it is currently, it makes the budget resources unusable because it can only ever define budgets with single-value cost filters, which is unrealistic as it is common to define budgets that are groups of services and tags. |
Would be super nice to fix it. Experiencing same issue with latest AWS 2.x and 3.x versions |
Ditto. We have a number of resources in our account that have a tag applied by our infrastructure team, but not consistently... and we aren't adding that tag. So we need our budget to filter out items that:
I can configure this in the console and CLI... but not terraform. |
I'm facing the same issue. Creating a budget via Terraform that is only targeting some I've also seen a PR (#9092) that is trying to fix this problem, but it is currently not merged (and has merge conflicts). |
This functionality has been released in v3.52.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. |
This issue was originally opened by @ndench as hashicorp/terraform#24924. It was migrated here as a result of the provider split. The original body of the issue is below.
When managing an
aws_budgets_budget
resource, a singlecost_filter
forTagKeyValue
is all that can be specified, if multiple are specified, an error occurs on both create and update.The create/update must be applied manually in the AWS Budgets Console, and then
terraform apply
successfully completes as long as there are no required changes to theaws_budgets_budget
resource.Terraform Version
Terraform Configuration Files
Expected Behavior
The budget should be created or updated.
Actual Behavior
When trying to initially create the resource:
When trying to update a resource:
Steps to Reproduce
aws_budgets_budget
resource specified aboveterraform apply
-> fails withupdate budget failed
errorTagKeyValue
lineterraform apply
-> successTagKeyValue
lineterraform apply
-> fails withupdate budget failed
errorterraform apply
-> success with no changesterraform apply
-> fails withupdate budget failed
errorTagKeyValue
terraform apply
-> successAdditional Context
The tags specified in
TagKeyValue
need to be cost allocation tags, I've been using user defined ones which I had to enable in the Billing Console.It appears that the aws budgets cli takes
TagKeyValue
as a list, maybe the data type is incorrect?The text was updated successfully, but these errors were encountered: