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

Disable retention option #24

Merged
merged 12 commits into from
May 15, 2020
Merged

Conversation

jamengual
Copy link
Contributor

Allow to disabling any retantion option

main.tf Outdated Show resolved Hide resolved
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.

@jamengual please see comments

PePe (Jose) Amengual added 2 commits May 14, 2020 20:31
main.tf Outdated Show resolved Hide resolved
main.tf Outdated Show resolved Hide resolved
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.

@jamengual please see comments

jamengual and others added 2 commits May 14, 2020 20:49
Co-authored-by: Andriy Knysh <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
@jamengual
Copy link
Contributor Author

@jamengual please see comments

I committed your suggestions

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.

@jamengual
I think you wanted to be able to enable two types of transitions (standard and glacier) at the same time, as shown in https://www.terraform.io/docs/providers/aws/r/s3_bucket.html#using-object-lifecycle

For this, you need to add two dynamic "transition" blocks, each with its own enable flag, and each using the hardcoded storage_class (STANDARD_IA or GLACIER) and each using its own days variable (glacier_transition_days and standard_transition_days.

In this case, the module will support both (optional) transitions (not only one of those at a time)

Please update.

Thanks

@jamengual
Copy link
Contributor Author

@jamengual
I think you wanted to be able to enable two types of transitions (standard and glacier) at the same time, as shown in https://www.terraform.io/docs/providers/aws/r/s3_bucket.html#using-object-lifecycle

For this, you need to add two dynamic "transition" blocks, each with its own enable flag, and each using the hardcoded storage_class (STANDARD_IA or GLACIER) and each using its own days variable (glacier_transition_days and standard_transition_days.

In this case, the module will support both (optional) transitions (not only one of those at a time)

Please update.

Thanks

I added the double dynamic, I was simplifying too much

@aknysh
Copy link
Member

aknysh commented May 15, 2020

/codefresh run test

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 @jamengual

@aknysh aknysh merged commit 31f7f40 into cloudposse:master May 15, 2020
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