-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_s3_bucket_lifecycle_configuration filter: tag(s) #23239
Comments
Hi @grimm26 , thank you for reporting this issue. The documentation is certainly lacking and #23252 aims at addressing the documentation for the With regard to the |
Does this mean that |
Correct @derekheld 👍 Per the AWS specs,
|
@anGie44 so if I want to filter on multiple tags I use an |
The provider isn't making you deal with it, it's Amazon's API that is forcing the change in the provider. As you can see in the links provided by @anGie44, the API only supports If you want to see something different, get Amazon to change the API. |
@grimm26 that's correct, the filter {
and {
tags = {
key = "Value"
key2 = Value2"
}
}
}
Yep, unfortunately that was a bit of a hack in the |
@derekheld I thnk you missed my point. The provider could have a |
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
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Config A
Config B
Expected and Actual Behavior
Config A mirrors the example of using a lifecycle rule filter in the documentation and it works. However, the
tags
parameter in thefilter
block is not documented.Config B uses the documented tag block and does NOT work as expected. It creates a filter for a single tag with a key of
key
and a value offoo
. If you try to change the tag block to:it says
An argument named "foo" is not expected here.
Also, trying to use the documented tag block inside of an
and
filter block fails (Blocks of type "tag" are not expected here.
) and trying to use a tags parameter inside of a filter block without an and block fails (An argument named "tags" is not expected here.
).This appears to be more than just a case of poor documentation. There doesn't seem to be a way to make a filter on just a tag and the tags parameter to
filter { and { } }
is undocumented. It seems like there should just be a tags parameter either alone or inside anand
block.Steps to Reproduce
Use the configs above.
The text was updated successfully, but these errors were encountered: