Skip to content
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

Disallow empty filter block on aws_s3_bucket_metric resource #11813

Closed
gdavison opened this issue Jan 30, 2020 · 3 comments · Fixed by #14230
Closed

Disallow empty filter block on aws_s3_bucket_metric resource #11813

gdavison opened this issue Jan 30, 2020 · 3 comments · Fixed by #14230
Assignees
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@gdavison
Copy link
Contributor

The resource aws_s3_bucket_metric currently allows an empty filter block, which is meaningless, as it creates no filter.

When a filter is supplied, at least one of prefix or tags should be required.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Affected Resource(s)

  • aws_s3_bucket_metric

Terraform Configuration Files

This example should not be valid, since it is equivalent to not supplying a filter at all.

resource "aws_s3_bucket_metric" "test" {
  bucket = aws_s3_bucket.test.id
  name   = "%s"
  filter {}
}
@ghost ghost added the service/s3 Issues and PRs that pertain to the s3 service. label Jan 30, 2020
@gdavison gdavison added this to the v3.0.0 milestone Jan 30, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 30, 2020
@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels May 19, 2020
@anGie44 anGie44 self-assigned this Jul 17, 2020
@anGie44
Copy link
Contributor

anGie44 commented Jul 23, 2020

The change in #14230 has been merged and will release with the upcoming v3.0.0 of the Provider.

@ghost
Copy link

ghost commented Jul 31, 2020

This has been released in version 3.0.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 for triage. Thanks!

@ghost
Copy link

ghost commented Aug 22, 2020

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.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Aug 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
3 participants