terraform-aws-modules / terraform-aws-efs

Terraform module to create AWS EFS resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/efs/aws
Apache License 2.0
24 stars 38 forks source link

No more than 2 "lifecycle_policy" blocks are allowed #31

Closed danbf closed 3 months ago

danbf commented 4 months ago

Description

It's not possible to set a lifecycle to use all three rules made available in https://github.com/terraform-aws-modules/terraform-aws-efs/pull/24 and that AWS supports.

  lifecycle_policy = {
    transition_to_ia                    = "AFTER_30_DAYS"
    transition_to_archive               = "AFTER_90_DAYS"
    transition_to_primary_storage_class = "AFTER_1_ACCESS"
  }

If your request is for a new feature, please use the Feature request template.

⚠️ Note

Versions

Reproduction Code [Required]

Steps to reproduce the behavior: generate an EFS module with the following lifecycle_policy

  lifecycle_policy = {
    transition_to_ia                    = "AFTER_30_DAYS"
    transition_to_archive               = "AFTER_90_DAYS"
    transition_to_primary_storage_class = "AFTER_1_ACCESS"
  }

Expected behavior

the ability to set those three at the same time

Screenshot 2024-05-08 at 2 43 56 PM

Actual behavior

this error is emitted on a terraform plan: No more than 2 "lifecycle_policy" blocks are allowed

Terminal Output Screenshot(s)

Additional context

danbf commented 3 months ago

Thanks much for doing this.

github-actions[bot] commented 2 months ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.