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

Rename lifecycle rules and split tag lifecycle filter #14

Merged
merged 3 commits into from
Feb 6, 2019

Conversation

pecigonzalo
Copy link
Contributor

@pecigonzalo pecigonzalo commented Feb 6, 2019

The tags generated by the label module were propagated to the S3 Lifecycle filters, this is in general not desired, as it means the lifecycle only applies to objects with those tags.

Console help message for the setting:

Add filter to limit scope to prefix/tags

Reference: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html

This adds a new var lifecycle_tags which is a map of the tags to apply to the lifecycle rule

variables.tf Outdated
@@ -57,22 +62,22 @@ variable "force_destroy" {
}

variable "lifecycle_rule_enabled" {
description = "(Optional) enable lifecycle events on this bucket"
description = "enable lifecycle events on this bucket"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "enable lifecycle events on this bucket"
description = "Enable lifecycle events on this bucket"

Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @pecigonzalo

@aknysh aknysh merged commit f9cf30a into cloudposse:master Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants