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

Enhance aws_s3_bucket lifecycle to support tag filter. #675

Closed
hashibot opened this issue Jun 13, 2017 · 5 comments
Closed

Enhance aws_s3_bucket lifecycle to support tag filter. #675

hashibot opened this issue Jun 13, 2017 · 5 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope.

Comments

@hashibot
Copy link

This issue was originally opened by @djrichar as hashicorp/terraform#13473. It was migrated here as part of the provider split. The original body of the issue is below.


please enhance s3 bucket lifecycle to support the new tags filter

Terraform Version

Terraform v0.9.2

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_s3_bucket

Suggested Terraform Configuration

resource "aws_s3_bucket" "bucketname" {
  bucket = "bucketname"
  lifecycle_rule {
    id      = "delete 30 days when tag DELETE = 30"
    prefix  = ""
    tags    = { 
      DELETE = 30
    }
    enabled = true

    expiration {
      days = 30
    }
  }

Expected Behavior

What should have happened?
s3 bucket should have a lifecycle that deletes all objects with a tage 'DELETE' and value '30'

Actual Behavior

What actually happened?
NOT SUPPORTED

References

see http://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-filter for documentation

@hashibot hashibot added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 13, 2017
@bdashrad
Copy link

hashicorp/terraform#13680 would fix this.

@bdashrad
Copy link

New PR for fixing this: #899

@bdashrad
Copy link

This has been fixed since version 0.1.2 / #899.

@Ninir
Copy link
Contributor

Ninir commented Nov 10, 2017

Thanks for the ping @bdashrad !

@Ninir Ninir closed this as completed Nov 10, 2017
@ghost
Copy link

ghost commented Apr 10, 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 Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

No branches or pull requests

3 participants