terraform-provider-aws
terraform-provider-aws copied to clipboard
[Docs]: Resource: aws_budgets_budget
Documentation Link
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/budgets_budget
Description
The possible valid options that can be put in the cost_filter values list is non-existent (specifically for a budget-type = "COST", and a cost_filter { name = "Service"}).
References
The filters (which are also not present on the AWS documentation here) that can only be seen if you attempt to manually create a Cost budget on the AWS GUI and click Filters to add a new filter have names that do not match what the Terraform module expects.
Would you like to implement a fix?
No response
Community Note
Voting for Prioritization
- Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
- Please see our prioritization guide for information on how we prioritize.
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
- If you are interested in working on this issue, please leave a comment.
- If this would be your first contribution, please review the contribution guide.
I also think the docu could be improved. I need to set a budget and the only filter is TagKeyValue. How do I do this?
resource "aws_budgets_budget" "ec2" {
name = "budget-ec2-monthly"
budget_type = "COST"
limit_amount = "1200"
limit_unit = "USD"
time_period_end = "2087-06-15_00:00"
time_period_start = "2017-07-01_00:00"
time_unit = "MONTHLY"
cost_filter {
name = "Service"
values = [
"tagkey:tagvalue",
]
}
notification {
comparison_operator = "GREATER_THAN"
threshold = 100
threshold_type = "PERCENTAGE"
notification_type = "FORECASTED"
subscriber_email_addresses = ["[email protected]"]
}
}
Or this?
resource "aws_budgets_budget" "ec2" {
name = "budget-ec2-monthly"
budget_type = "COST"
limit_amount = "1200"
limit_unit = "USD"
time_period_end = "2087-06-15_00:00"
time_period_start = "2017-07-01_00:00"
time_unit = "MONTHLY"
cost_filter {
name = "Service"
TagKeyValue = [
"tagkey:tagvalue",
]
}
notification {
comparison_operator = "GREATER_THAN"
threshold = 100
threshold_type = "PERCENTAGE"
notification_type = "FORECASTED"
subscriber_email_addresses = ["[email protected]"]
}
}