directconnect_gateway
Manage AWS Direct Connect gateway
Collection: community.aws
Full Name: community.aws.directconnect_gateway
Synopsis
Manage AWS Direct Connect gateway
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| amazon_asn | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| direct_connect_gateway_id | str | |||
| endpoint_url | str | |||
| name | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| validate_certs | bool | true | ||
| virtual_gateway_id | str | |||
| wait_timeout | int | 320 |
Example
yaml
- name: Create a new direct connect gateway attached to virtual private gateway
community.aws.directconnect_gateway:
state: present
name: my-dx-gateway
amazon_asn: 7224
virtual_gateway_id: vpg-12345
register: created_dxgw
- name: Create a new unattached dxgw
community.aws.directconnect_gateway:
state: present
name: my-dx-gateway
amazon_asn: 7224
register: created_dxgw