PARALLAX

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

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
deregister_unusedboolfalse
endpoint_urlstr
profilestr
regionstr
secret_keystr
session_tokenstr
statestryes
target_azstr
target_group_arnstr
target_group_namestr
target_idstryes
target_portint
target_statusstr
target_status_timeoutint60
validate_certsbooltrue

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
Search
    ↑ ↓ move↵ openesc close