ec2_customer_gateway
Manage an AWS customer gateway
Collection: community.aws
Full Name: community.aws.ec2_customer_gateway
Synopsis
Manage an AWS customer gateway
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| bgp_asn | int | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| ip_address | str | yes | ||
| name | str | yes | ||
| profile | str | |||
| region | str | |||
| routing | str | dynamic | ||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| validate_certs | bool | true |
Example
yaml
- name: Create Customer Gateway
community.aws.ec2_customer_gateway:
bgp_asn: 12345
ip_address: 1.2.3.4
name: IndianapolisOffice
region: us-east-1
register: cgw
- name: Delete Customer Gateway
community.aws.ec2_customer_gateway:
ip_address: 1.2.3.4
name: IndianapolisOffice
state: absent
region: us-east-1
register: cgw