Amazon Elastic File System Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Amazon Elastic File System#Subjects|Amazon Elastic File System]] | * [[Amazon Elastic File System#Subjects|Amazon Elastic File System]] | ||
=Get Information= | |||
==List Mount Targets== | |||
<syntaxhighlight lang='bash'> | |||
aws efs describe-mount-targets --file-system-id fs-33333333 | |||
</syntaxhighlight> | |||
=Mount an EFS File System on an EC2 Instance= | =Mount an EFS File System on an EC2 Instance= | ||
Line 21: | Line 29: | ||
{{External|https://docs.aws.amazon.com/efs/latest/ug/mounting-fs.html}} | {{External|https://docs.aws.amazon.com/efs/latest/ug/mounting-fs.html}} | ||
=Delete a File System= | =Delete a File System= |
Revision as of 06:20, 9 August 2020
Internal
Get Information
List Mount Targets
aws efs describe-mount-targets --file-system-id fs-33333333
Mount an EFS File System on an EC2 Instance
Install 'amazon-efs-utils' package:
sudo yum install -y amazon-efs-utils
More details:
Mount the file system:
sudo mount -t efs fs-12345678:/ /mnt/efs
More details:
Delete a File System
Delete a Mount Target
First all mount targets need to be deleted:
aws efs delete-mount-target --mount-target-id fsmt-11111111
Delete the File System
aws efs delete-file-system --file-system-id fs-33333333