efs
create and maintain EFS file systems
Collection: community.aws
Full Name: community.aws.efs
Synopsis
create and maintain EFS file systems
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| encrypt | bool | false | ||
| endpoint_url | str | |||
| id | str | |||
| kms_key_id | str | |||
| name | str | |||
| performance_mode | str | general_purpose | ||
| profile | str | |||
| provisioned_throughput_in_mibps | float | |||
| purge_tags | bool | true | ||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| tags | dict | |||
| targets | list | [] | ||
| throughput_mode | str | |||
| transition_to_ia | str | |||
| validate_certs | bool | true | ||
| wait | bool | false | ||
| wait_timeout | int | 0 |
Example
yaml
- name: EFS provisioning
community.aws.efs:
state: present
name: myTestEFS
tags:
Name: myTestNameTag
purpose: file-storage
targets:
- subnet_id: subnet-748c5d03
security_groups: ["sg-1a2b3c4d"]
- name: Modifying EFS data
community.aws.efs:
state: present
name: myTestEFS
tags:
name: myAnotherTestTag
targets:
- subnet_id: subnet-7654fdca
security_groups: ["sg-4c5d6f7a"]
- name: Set a lifecycle policy
community.aws.efs:
state: present
name: myTestEFS
transition_to_ia: 7
targets:
- subnet_id: subnet-7654fdca
security_groups: ["sg-4c5d6f7a"]
- name: Remove a lifecycle policy
community.aws.efs:
state: present
name: myTestEFS
transition_to_ia: None
targets:
- subnet_id: subnet-7654fdca
security_groups: ["sg-4c5d6f7a"]
- name: Deleting EFS
community.aws.efs:
state: absent
name: myTestEFS