Use this action to manage EFS lifecycle management and intelligent tiering. A
LifecycleConfiguration
consists of one or more
LifecyclePolicy
objects that define the following:
- EFS Lifecycle management - When Amazon EFS automatically transitions files in a file system into the lower-cost Infrequent Access (IA) storage class.
To enable EFS Lifecycle management, set the value of
TransitionToIA
to one of the available options. - EFS Intelligent tiering - When Amazon EFS automatically transitions files from IA back into the file system's primary storage class (Standard or One Zone Standard.
To enable EFS Intelligent Tiering, set the value of
TransitionToPrimaryStorageClass
to AFTER_1_ACCESS
.
For more information, see
EFS Lifecycle Management.
Each Amazon EFS file system supports one lifecycle configuration, which applies to all files in the file system. If a
LifecycleConfiguration
object already exists for the specified file system, a
PutLifecycleConfiguration
call modifies the existing configuration. A
PutLifecycleConfiguration
call with an empty
LifecyclePolicies
array in the request body deletes any existing
LifecycleConfiguration
and turns off lifecycle management and intelligent tiering for the file system.
In the request, specify the following:
- The ID for the file system for which you are enabling, disabling, or modifying lifecycle management and intelligent tiering.
- A
LifecyclePolicies
array of LifecyclePolicy
objects that define when files are moved into IA storage, and when they are moved back to Standard storage.
Amazon EFS requires that each LifecyclePolicy
object have only have a single transition, so the LifecyclePolicies
array needs to be structured with separate LifecyclePolicy
objects. See the example requests in the following section for more information.
This operation requires permissions for the
elasticfilesystem:PutLifecycleConfiguration
operation.
To apply a
LifecycleConfiguration
object to an encrypted file system, you need the same Key Management Service permissions as when you created the encrypted file system.