From d8a82f27617d7805365d5f4a6c1e13caea9bc82d Mon Sep 17 00:00:00 2001 From: Nikki Tebaldi <17799906+nikki-t@users.noreply.github.com> Date: Thu, 11 Jan 2024 18:18:50 +0000 Subject: [PATCH] Define a lifecycle policy for EFS --- terraform/generate-efs.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/generate-efs.tf b/terraform/generate-efs.tf index 4412ebf..5aa5321 100644 --- a/terraform/generate-efs.tf +++ b/terraform/generate-efs.tf @@ -4,6 +4,9 @@ resource "aws_efs_file_system" "generate_efs_fs" { creation_token = var.prefix encrypted = true performance_mode = "generalPurpose" + lifecycle_policy { + transition_to_ia = "AFTER_1_DAY" + } tags = { Name = "${var.prefix}" } }