Resource: aws_efs_mount_target

Provides an Elastic File System (EFS) mount target.

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

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import the EFS mount targets using the id. For example:

import {
  to = aws_efs_mount_target.alpha
  id = "fsmt-52a643fb"
}

Using terraform import, import the EFS mount targets using the id. For example:

% terraform import aws_efs_mount_target.alpha fsmt-52a643fb