Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions awscli/examples/efs/create-backup-policy.rst
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.::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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. ::


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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This command sets the backup policy for the file system with the ID fs-4gd2a78et to enable automatic backups.


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.*.
33 changes: 33 additions & 0 deletions awscli/examples/efs/describe-access-points.rst
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.::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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``. ::


aws efs describe-access-points \
--file-system-id fs-4gd2a78et

Output::

{
"AccessPoints": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"AccessPoints": [
"AccessPoints": [

Copy link
Contributor

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.

{
"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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This command lists all access points associated with the file system fs-4gd2a78et.


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.*.
23 changes: 23 additions & 0 deletions awscli/examples/efs/enable-lifecycle-management.rst
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.::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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. ::


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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.


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.*.
23 changes: 23 additions & 0 deletions awscli/examples/efs/modify-throughput-settings.rst
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.::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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. ::


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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This command updates the throughput mode of the file system with the ID fs-c7a0456e to provisioned mode with 50 MiB/s of throughput.


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.*.
Loading