aws_efs_file_system: Create additional resource for lifecycle policy: aws_efs_file_system_lifecycle_policy #25482
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
new-resource
Introduces a new resource.
service/efs
Issues and PRs that pertain to the efs service.
Community Note
Description
Currently, one can create a EFS filesystem using efs_file_system and attach in the same resource a lifecycle policy. However, in certain cases, such as an aws_sagemaker_domain the EFS is not directly created by TF. In order to avoid manual imports etc., I suggest to create a resource aws_efs_file_system_lifecycle_policy to update the lifecycle policy also for those cases with the same cotnent as lifecycle policy.
New or Affected Resource(s)
Potential Terraform Configuration
More complex example with a AWS Sagemaker Domain
References
The text was updated successfully, but these errors were encountered: