CreateMountTarget#

Description#

Request to create a mount target for an EFS file system.

Request Parameters#

Required parameters#

  • FileSystemId — The ID of the file system.

    • Type: String

    • Required: Yes

  • SubnetId — The ID of the subnet.

    • Type: String

    • Required: Yes

Optional parameters#

  • SecurityGroups — List of security group IDs.

    • Type: Array of strings

    • Required: No

Response Elements#

  • AvailabilityZoneId — The name of the availability zone.

    • Type: String

  • FileSystemId — The ID of the file system.

    • Type: String

  • LifeCycleState — The state of the lifecycle.

    • Type: String

  • MountTargetId — The ID of the mount target.

    • Type: String

  • OwnerId — The ID of the mount target owner.

    • Type: String

  • SubnetId — The ID of the subnet.

    • Type: String

  • VpcId — The ID of the VPC.

    • Type: String

Examples#

POST /2015-02-01/mount-targets HTTP/1.1
Content-Type: application/json

{
    "FileSystemId": "fs-F3586BFE",
    "SecurityGroups": [
         "sg-A685B024"
    ],
    "SubnetId": "subnet-435F0E20"
}
aws efs create-mount-target --file-system-id fs-F3586BFE --subnet-id subnet-435F0E20 --security-groups sg-A685B024
c2-efs CreateMountTarget FileSystemId fs-F3586BFE SubnetId subnet-435F0E20 SecurityGroups.1 sg-A685B024