efs_tag
create and remove tags on Amazon EFS resources
Collection: community.aws
Full Name: community.aws.efs_tag
Synopsis
create and remove tags on Amazon EFS resources
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| profile | str | |||
| purge_tags | bool | false | ||
| region | str | |||
| resource | str | yes | ||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| tags | dict | yes | ||
| validate_certs | bool | true |
Example
yaml
- name: Ensure tags are present on a resource
community.aws.efs_tag:
resource: fs-123456ab
state: present
tags:
Name: MyEFS
Env: Production
- name: Remove the Env tag if it's currently 'development'
community.aws.efs_tag:
resource: fsap-78945ff
state: absent
tags:
Env: development
- name: Remove all tags except for Name
community.aws.efs_tag:
resource: fsap-78945ff
state: absent
tags:
Name: foo
purge_tags: true
- name: Remove all tags
community.aws.efs_tag:
resource: fsap-78945ff
state: absent
tags: {}
purge_tags: true