-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
adding cli usage for aws efs #9184
base: develop
Are you sure you want to change the base?
Conversation
Added cli examples - to enable lifecycle management - to modify the throughput mode - to list all access points - to enable automatic backups
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.
Hi @advaitpatel,
Thank you for your example submission. There are a few formatting issues that need to be addressed. After you commit these fixes, your PR should be good for maintainer review.
Thanks!
@@ -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.:: |
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.
The following ``put-backup-policy`` example shows how to enable automatic backups for an existing Amazon EFS file system by creating a backup policy.:: | |
The following ``put-backup-policy`` example shows how to enable automatic backups for an existing Amazon EFS file system by creating a backup policy. | |
This command sets the backup policy for the file system with the ID ``fs-4gd2a78et`` to enable automatic backups. :: |
@@ -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.:: |
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.
The following ``describe-access-points`` example lists all access points for a specified file system.:: | |
The following ``describe-access-points`` example lists all access points for a specified file system. | |
This command lists all access points associated with the file system ``fs-4gd2a78et``. :: |
Output:: | ||
|
||
{ | ||
"AccessPoints": [ |
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.
"AccessPoints": [ | |
"AccessPoints": [ |
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.
All your output indenting from this line and below needs to be an additional 4 spaces.
} | ||
} | ||
|
||
This command sets the backup policy for the file system with the ID fs-4gd2a78et to enable automatic backups. |
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.
This command sets the backup policy for the file system with the ID fs-4gd2a78et to enable automatic backups. |
} | ||
|
||
|
||
This command lists all access points associated with the file system fs-4gd2a78et. |
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.
This command lists all access points associated with the file system fs-4gd2a78et. |
@@ -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.:: |
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.
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.:: | |
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. | |
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. :: |
} | ||
|
||
|
||
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. |
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.
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. |
} | ||
|
||
|
||
This command updates the throughput mode of the file system with the ID fs-c7a0456e to provisioned mode with 50 MiB/s of throughput. |
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.
This command updates the throughput mode of the file system with the ID fs-c7a0456e to provisioned mode with 50 MiB/s of throughput. |
@@ -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.:: |
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.
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.:: | |
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. | |
This command updates the throughput mode of the file system with the ID fs-c7a0456e to provisioned mode with 50 MiB/s of throughput. :: |
Issue #, if available:
none
Description of changes:
Added cli examples for EFS
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.