hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.11k forks source link

[Enhancement]: aws_s3_bucket_lifecycle_configuration filter definition should be normalized into an obect or map #38489

Open vampirechicken opened 2 months ago

vampirechicken commented 2 months ago

Description

Update the AWS provider allow us to pass in the filter values as a map or object with a nested map/object of tags, and have the provider determine what to do with it. The status quo makes this logic a nightmare as we try to write a module for these resources:

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

filters = {
     prefix = "myoptionalprefix"
     tags   = {
       key1 = value1
       # maybe more tags
     }
     # other filter params
  }

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 2 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue