Skip to content

Instantly share code, notes, and snippets.

@david7482
Created April 18, 2020 19:14
Show Gist options
  • Save david7482/fd901fedc7e60f0e6a80b330568ceb14 to your computer and use it in GitHub Desktop.
Save david7482/fd901fedc7e60f0e6a80b330568ceb14 to your computer and use it in GitHub Desktop.
resource "aws_efs_file_system" "efs" {
tags = {
Name = "filebrowser"
}
}
resource "aws_efs_mount_target" "mount" {
file_system_id = aws_efs_file_system.efs.id
// create efs mount targets for each AZ
for_each = data.aws_subnet_ids.default.ids
subnet_id = each.value
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment