Open DanielTaniel opened 7 months ago
Voting for Prioritization
Volunteering to Work on This Issue
According to TagValues:
If
Values
andKey
aren't specified, theABSENT
MatchOption
is applied to all tags. That is, it's filtered on resources with no tags.If
Key
is provided andValues
isn't specified, theABSENT
MatchOption
is applied to the tagKey
only. That is, it's filtered on resources without the given tag key.
The validation error is from calling the AWS API. It seems it is generally missing object length checks. In the case of Values
it's being "converted" to an empty list in the AWS API request payload.
Terraform Core Version
v1.7.5
AWS Provider Version
v5.43.0
Affected Resource(s)
aws_ce_cost_category
Expected Behavior
It should be possible to create a cost category that groups items that are missing a particular tag. This is possible in the cost category AWS console.
Actual Behavior
When attempting to create a cost category that filters on Tag with the rule
match_options = ["ABSENT"]
terraform cities a validatioan errorIf I supply a value as either [], or [""] i get the same error. If I supply a value = ["anuything"] i get the following error
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Attempt to build the supplied aws_ce_cost_category
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No