Skip to content

Commit

Permalink
LAWS-3486: added moun target for efs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmahmood72 committed Oct 4, 2023
1 parent 318b934 commit c3ee1d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions terraform/environments/apex/efs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ resource "aws_vpc_security_group_ingress_rule" "efs_product_inbound" {
to_port = 2049
}

resource "aws_efs_mount_target" "efs_mount" {
file_system_id = aws_efs_file_system.efs.id
subnet_id = data.aws_subnet.private_subnets_a.id
security_groups = [aws_security_group.efs_product.id]
}

# resource "aws_cloudwatch_metric_alarm" "efs_connection" {
# alarm_name = "${local.application_name}-${local.environment}-efs-connection"
# alarm_description = "If the instance has lost connection with its EFS system, please investigate."
Expand Down

0 comments on commit c3ee1d6

Please sign in to comment.