XIN-241: Add EFS and configure to the devnet VPC

This commit is contained in:
Jianrong 2022-10-03 12:16:02 +11:00
parent f7f4986142
commit 9ece2ddb32

View file

@ -149,4 +149,20 @@ resource "aws_iam_role_policy_attachment" "devnet_xdc_ecs_tasks_execution_role"
])
role = aws_iam_role.devnet_xdc_ecs_tasks_execution_role.name
policy_arn = each.value
}
# EFS
resource "aws_efs_file_system" "devnet_efs" {
creation_token = "efs"
performance_mode = "generalPurpose"
throughput_mode = "bursting"
encrypted = "true"
tags = {
Name = "TfDevnetEfs"
}
}
resource "aws_efs_mount_target" "alpha" {
file_system_id = aws_efs_file_system.devnet_efs.id
subnet_id = aws_subnet.devnet_subnet.id
}