Skip to content

Commit

Permalink
Ensure EFS instances are encrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Aug 22, 2024
1 parent 467d8bf commit e6d6b8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/aws/efs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ data "aws_security_group" "cluster_nodes_shared_security_group" {
# for an accurate cost allocation per hub of home directory storage.
# https://github.com/2i2c-org/infrastructure/issues/4453
resource "aws_efs_file_system" "hub_homedirs" {
for_each = var.filestores
tags = merge(var.tags, each.value.tags, {
for_each = var.filestores
tags = merge(var.tags, each.value.tags, {
Name = each.value.name_suffix == null ? "hub-homedirs" : "hub-homedirs-${each.value.name_suffix}"
})
encrypted = true

# Transition files to a slower, cheaper backing medium 90 days
# after they were last *accessed*. They will be transferred back to regular
Expand Down

0 comments on commit e6d6b8b

Please sign in to comment.