aws_mount_target.md
April 1, 2019 ยท View on GitHub
Document: "elasticfilesystem"
Path: "https://github.com/aws/aws-sdk-go-v2/tree/master/models/apis/elasticfilesystem/2015-02-01/api-2.json")
MountTarget
aws_mount_target {
file_system_id => $aws_file_system_id
file_system_id => $aws_file_system_id
ip_address => "IpAddress (optional)",
max_items => "MaxItems (optional)",
mount_target_id => $aws_mount_target_id
security_groups => "SecurityGroups (optional)",
subnet_id => $aws_subnet_id
}
| Name | Type | Required |
|---|---|---|
| file_system_id | FileSystemId | false |
| file_system_id | FileSystemId | false |
| ip_address | IpAddress | false |
| max_items | MaxItems | false |
| mount_target_id | MountTargetId | false |
| security_groups | SecurityGroups | false |
| subnet_id | SubnetId | false |
CRUD operations
Here is a list of endpoints that we use to create, read, update and delete the MountTarget
| Operation | Path | Verb | Description | OperationID |
|---|---|---|---|---|
| Create | /2015-02-01/mount-targets | POST | Creates a mount target for a file system. You can then mount the file system on EC2 instances by using the mount target. You can create one mount target in each Availability Zone in your VPC. All EC2 instances in a VPC within a given Availability Zone share a single mount target for a given file system. If you have multiple subnets in an Availability Zone, you create a mount target in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target in order to access their file system. For more information, see Amazon EFS: How it Works. In the request, you also specify a file system ID for which you are creating the mount target and the file system's lifecycle state must be In the request, you also provide a subnet ID, which determines the following:
After creating the mount target, Amazon EFS returns a response that includes, a Note that you can create mount targets for a file system in only one VPC, and there can be only one mount target per Availability Zone. That is, if the file system already has one or more mount targets created for it, the subnet specified in the request to add another mount target must meet the following requirements:
If the request satisfies the requirements, Amazon EFS does the following:
The We recommend that you create a mount target in each of the Availability Zones. There are cost considerations for using a file system in an Availability Zone through a mount target created in another Availability Zone. For more information, see Amazon EFS. In addition, by always using a mount target local to the instance's Availability Zone, you eliminate a partial failure scenario. If the Availability Zone in which your mount target is created goes down, then you can't access your file system through that mount target. This operation requires permissions for the following action on the file system:
This operation also requires permissions for the following Amazon EC2 actions:
| CreateMountTarget |
| List - list all | /2015-02-01/mount-targets | GET | Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified. This operation requires permissions for the | DescribeMountTargets |
| List - get one | `` | |||
| List - get list using params | /2015-02-01/mount-targets | GET | Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified. This operation requires permissions for the | DescribeMountTargets |
| Update | `` | |||
| Delete | /2015-02-01/mount-targets/{MountTargetId} | DELETE | Deletes the specified mount target. This operation forcibly breaks any mounts of the file system by using the mount target that is being deleted, which might disrupt instances or applications using those mounts. To avoid applications getting cut off abruptly, you might consider unmounting any mounts of the mount target, if feasible. The operation also deletes the associated network interface. Uncommitted writes might be lost, but breaking a mount target using this operation does not corrupt the file system itself. The file system you created remains. You can mount an EC2 instance in your VPC by using another mount target. This operation requires permissions for the following action on the file system:
The The operation also requires permissions for the following Amazon EC2 action on the mount target's network interface:
| DeleteMountTarget |