-
Notifications
You must be signed in to change notification settings - Fork 4.4k
adding cli usage for aws efs #9184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,20 @@ | ||||
| **To enable automatic backups for a file system** | ||||
|
|
||||
| The following ``put-backup-policy`` example shows how to enable automatic backups for an existing Amazon EFS file system by creating a backup policy.:: | ||||
|
|
||||
| aws efs put-backup-policy \ | ||||
| --file-system-id fs-4gd2a78et \ | ||||
| --backup-policy Status=ENABLED | ||||
|
|
||||
|
|
||||
| Output:: | ||||
|
|
||||
| { | ||||
| "BackupPolicy": { | ||||
| "Status": "ENABLED" | ||||
| } | ||||
| } | ||||
|
|
||||
| This command sets the backup policy for the file system with the ID fs-4gd2a78et to enable automatic backups. | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
|
|
||||
| For more information, see `Amazon EFS Backup Policies <https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html>`__ in the *Amazon Elastic File System User Guide.*. | ||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,33 @@ | ||||||||||
| **To list all access points for a file system** | ||||||||||
|
|
||||||||||
| The following ``describe-access-points`` example lists all access points for a specified file system.:: | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| aws efs describe-access-points \ | ||||||||||
| --file-system-id fs-4gd2a78et | ||||||||||
|
|
||||||||||
| Output:: | ||||||||||
|
|
||||||||||
| { | ||||||||||
| "AccessPoints": [ | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All your output indenting from this line and below needs to be an additional 4 spaces. |
||||||||||
| { | ||||||||||
| "AccessPointId": "fsap-0123456789abcdef0", | ||||||||||
| "FileSystemId": "fs-4gd2a78et", | ||||||||||
| "Name": "MyAccessPoint", | ||||||||||
| "OwnerId": "123456789012", | ||||||||||
| "LifeCycleState": "available", | ||||||||||
| "RootDirectory": { | ||||||||||
| "Path": "/my-app-data", | ||||||||||
| "CreationInfo": { | ||||||||||
| "OwnerUid": 1001, | ||||||||||
| "OwnerGid": 1001, | ||||||||||
| "Permissions": "0755" | ||||||||||
| } | ||||||||||
| } | ||||||||||
| } | ||||||||||
| ] | ||||||||||
| } | ||||||||||
|
|
||||||||||
|
|
||||||||||
| This command lists all access points associated with the file system fs-4gd2a78et. | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| For more information, see `Amazon EFS Access Points <https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html>`__ in the *Amazon Elastic File System User Guide.*. | ||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | ||||||||||
| **To enable lifecycle management for a file system** | ||||||||||
|
|
||||||||||
| The following ``put-lifecycle-configuration`` example enables lifecycle management on an existing file system to transition files to the Infrequent Access (IA) storage class after 30 days of non-access.:: | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| aws efs put-lifecycle-configuration \ | ||||||||||
| --file-system-id fs-4gd2a78et \ | ||||||||||
| --lifecycle-policies TransitionToIA=AFTER_30_DAYS | ||||||||||
|
|
||||||||||
|
|
||||||||||
| Output:: | ||||||||||
|
|
||||||||||
| { | ||||||||||
| "LifecyclePolicies": [ | ||||||||||
| { | ||||||||||
| "TransitionToIA": "AFTER_30_DAYS" | ||||||||||
| } | ||||||||||
| ] | ||||||||||
| } | ||||||||||
|
|
||||||||||
|
|
||||||||||
| This command sets a lifecycle policy for the file system with the ID fs-4gd2a78et, transitioning files to IA storage after 30 days of inactivity. | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| For more information, see `EFS Lifecycle Management <https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management.html>`__ in the *Amazon Elastic File System User Guide.*. | ||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | ||||||||||||
| **To modify the throughput mode of a file system** | ||||||||||||
|
|
||||||||||||
| The following ``update-file-system`` example changes the throughput mode of an existing file system to provisioned and sets the provisioned throughput to 50 MiB/s.:: | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
|
||||||||||||
| aws efs update-file-system \ | ||||||||||||
| --file-system-id fs-4gd2a78et \ | ||||||||||||
| --throughput-mode provisioned \ | ||||||||||||
| --provisioned-throughput-in-mibps 50 | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
| Output:: | ||||||||||||
|
|
||||||||||||
| { | ||||||||||||
| "FileSystemId": "fs-4gd2a78et", | ||||||||||||
| "LifeCycleState": "available", | ||||||||||||
| "ThroughputMode": "provisioned", | ||||||||||||
| "ProvisionedThroughputInMibps": 50.0 | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
| This command updates the throughput mode of the file system with the ID fs-c7a0456e to provisioned mode with 50 MiB/s of throughput. | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
|
||||||||||||
| For more information, see `Amazon EFS Performance <https://docs.aws.amazon.com/efs/latest/ug/performance.html>`__ in the *Amazon Elastic File System User Guide.*. | ||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.