Skip to content

Commit

Permalink
Define a lifecycle policy for EFS
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed Jan 11, 2024
1 parent 39355cb commit d8a82f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/generate-efs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
}

Expand Down

0 comments on commit d8a82f2

Please sign in to comment.