aws efs create-mount-target
Creates a mount target for a file system. AWS CLI reference
1 example 6 options Its page in the AWS CLI reference
Examples
To create a mount target
The following create-mount-target example creates a mount target for the specified file system.
aws efs create-mount-target --file-system-id fs-c7a0456e --subnet-id subnet-02bf4c428bexample --security-groups sg-068f739363exampleIdentify--file-system-idThe ID of the file system for which to create the mount target.--subnet-idThe ID of the subnet to add the mount target in.--security-groupsVPC security group IDs, of the form sg-xxxxxxxx.Its output
{
"OwnerId": "123456789012",
"MountTargetId": "fsmt-f9a14450",
"FileSystemId": "fs-c7a0456e",
"SubnetId": "subnet-02bf4c428bexample",
"LifeCycleState": "creating",
"IpAddress": "10.0.1.24",
"NetworkInterfaceId": "eni-02d542216aexample",
"AvailabilityZoneId": "use2-az2",
"AvailabilityZoneName": "us-west-2b",
"VpcId": "vpc-0123456789abcdef0"
}For more information, see Creating mount targets in the Amazon Elastic File System User Guide.
Options
--file-system-idThe ID of the file system for which to create the mount target.--ip-address-typeSpecify the type of IP address of the mount target you are creating.--ip-addressIf the IP address type for the mount target is IPv4, then specify the IPv4 address within the address range of the specified subnet.--ipv6-addressIf the IP address type for the mount target is IPv6, then specify the IPv6 address within the address range of the specified subnet.--security-groupsVPC security group IDs, of the form sg-xxxxxxxx.--subnet-idThe ID of the subnet to add the mount target in.