ecs_attribute
Manage attributes on ECS container instances
Collection: community.aws
Full Name: community.aws.ecs_attribute
Synopsis
Manage attributes on ECS container instances
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| attributes | list | yes | ||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| cluster | str | yes | ||
| debug_botocore_endpoint_logs | bool | false | ||
| ec2_instance_id | str | yes | ||
| endpoint_url | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| validate_certs | bool | true |
Example
yaml
- name: Set attributes
community.aws.ecs_attribute:
state: present
cluster: test-cluster
ec2_instance_id: "{{ ec2_id }}"
attributes:
- flavor: test
- migrated
delegate_to: localhost
- name: Delete attributes
community.aws.ecs_attribute:
state: absent
cluster: test-cluster
ec2_instance_id: "{{ ec2_id }}"
attributes:
- flavor: test
- migrated
delegate_to: localhost