elb_target
Manage a target in a target group
Collection: community.aws
Full Name: community.aws.elb_target
Synopsis
Manage a target in a target group
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| deregister_unused | bool | false | ||
| endpoint_url | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | yes | ||
| target_az | str | |||
| target_group_arn | str | |||
| target_group_name | str | |||
| target_id | str | yes | ||
| target_port | int | |||
| target_status | str | |||
| target_status_timeout | int | 60 | ||
| validate_certs | bool | true |
Example
yaml
- name: Register an IP address target to a target group
community.aws.elb_target:
target_group_name: myiptargetgroup
target_id: i-1234567
state: present
- name: Register an instance target to a target group
community.aws.elb_target:
target_group_name: mytargetgroup
target_id: i-1234567
state: present
- name: Deregister a target from a target group
community.aws.elb_target:
target_group_name: mytargetgroup
target_id: i-1234567
state: absent
# Modify a target to use a different port
- name: Register a target to a target group
community.aws.elb_target:
target_group_name: mytargetgroup
target_id: i-1234567
target_port: 8080
state: present