Mount Target
Provides an Elastic File System (EFS) mount target.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Vpc;
import com.pulumi.aws.ec2.VpcArgs;
import com.pulumi.aws.ec2.Subnet;
import com.pulumi.aws.ec2.SubnetArgs;
import com.pulumi.aws.efs.MountTarget;
import com.pulumi.aws.efs.MountTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Vpc("foo", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var alphaSubnet = new Subnet("alphaSubnet", SubnetArgs.builder()
.vpcId(foo.id())
.availabilityZone("us-west-2a")
.cidrBlock("10.0.1.0/24")
.build());
var alphaMountTarget = new MountTarget("alphaMountTarget", MountTargetArgs.builder()
.fileSystemId(aws_efs_file_system.foo().id())
.subnetId(alphaSubnet.id())
.build());
}
}
Content copied to clipboard
Import
The EFS mount targets can be imported using the id
, e.g.,
$ pulumi import aws:efs/mountTarget:MountTarget alpha fsmt-52a643fb
Content copied to clipboard
Properties
Link copied to clipboard
The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
Link copied to clipboard
The name of the Availability Zone (AZ) that the mount target resides in.
Link copied to clipboard
Amazon Resource Name of the file system.
Link copied to clipboard
The ID of the file system for which the mount target is intended.
Link copied to clipboard
The DNS name for the given subnet/AZ per documented convention.
Link copied to clipboard
The ID of the network interface that Amazon EFS created when it created the mount target.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A list of up to 5 VPC security group IDs (that must be for the same VPC as subnet specified) in effect for the mount target.