DNXLabs / terraform-aws-ecs

This terraform module builds an Elastic Container Service(ECS) Cluster in AWS.
https://modules.dnx.one/
Apache License 2.0
29 stars 31 forks source link

Feature/efs lifecycle policy #37

Closed alexandrealvao closed 2 years ago

alexandrealvao commented 2 years ago

Enable use of EFS Lifecycle policy.

We had a client who would like to use this feature. This feature will allow us to create a policy to transition to the Infrequent Access tier and another from Infrequent Access to primary storage.

Types of changes

What types of changes does your code introduce to ? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

The transaction_to_ia argument support only specific values: AFTER_7_DAYS, AFTER_14_DAYS, AFTER_30_DAYS, AFTER_60_DAYS, or AFTER_90_DAYS. And transition_to_primary_storage_class (Optional), support only the value AFTER_1_ACCESS when enable.

The transaction_to_ia argument variable uses a validation block to check whether it has the correct value.