FEATURES PRICING ABOUT DOCS LOGIN

aws_efs_mount_target

Provides an Elastic File System (EFS) mount target.

~> NOTE: As per the current documentation the limit is 1 mount target per Availability Zone for a single EFS file system.

Example Usage

resource "aws_efs_mount_target" "alpha" {
  file_system_id = "${aws_efs_file_system.foo.id}"
  subnet_id = "${aws_subnet.alpha.id}"
}

resource "aws_vpc" "foo" {
  cidr_block = "10.0.0.0/16"
}

resource "aws_subnet" "alpha" {
  vpc_id = "${aws_vpc.foo.id}"
  availability_zone = "us-west-2a"
  cidr_block = "10.0.1.0/24"
}

Argument Reference

The following arguments are supported:

Attributes Reference

~> Note: The dns_name attribute is only useful if the mount target is in a VPC that has support for DNS hostnames enabled. See Using DNS with Your VPC and VPC resource in Terraform for more information.

The following attributes are exported:

Import

The EFS mount targets can be imported using the id, e.g.

$ terraform import aws_efs_mount_target.alpha fsmt-52a643fb

See the source of this document at Terraform.io

REQUEST A DEMO