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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| bandwidth | str | |||
| connection_id | str | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| forced_update | bool | false | ||
| link_aggregation_group | str | |||
| location | str | |||
| name | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | yes | ||
| validate_certs | bool | true |
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