PARALLAX

directconnect_connection

Creates, deletes, modifies a DirectConnect connection

Collection: community.aws

Full Name: community.aws.directconnect_connection

Synopsis

Creates, deletes, modifies a DirectConnect connection

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
bandwidthstr
connection_idstr
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
forced_updateboolfalse
link_aggregation_groupstr
locationstr
namestr
profilestr
regionstr
secret_keystr
session_tokenstr
statestryes
validate_certsbooltrue

Example

yaml
# create a Direct Connect connection
- name: Creates, deletes, modifies a DirectConnect connection
  community.aws.directconnect_connection:
    name: ansible-test-connection
    state: present
    location: EqDC2
    link_aggregation_group: dxlag-xxxxxxxx
    bandwidth: 1Gbps
  register: dc

# disassociate the LAG from the connection
- name: Creates, deletes, modifies a DirectConnect connection
  community.aws.directconnect_connection:
    state: present
    connection_id: dc.connection.connection_id
    location: EqDC2
    bandwidth: 1Gbps

# replace the connection with one with more bandwidth
- name: Creates, deletes, modifies a DirectConnect connection
  community.aws.directconnect_connection:
    state: present
    name: ansible-test-connection
    location: EqDC2
    bandwidth: 10Gbps
    forced_update: true

# delete the connection
- name: Creates, deletes, modifies a DirectConnect connection
  community.aws.directconnect_connection:
    state: absent
    name: ansible-test-connection
Search
    ↑ ↓ move↵ openesc close