Skip to main content

customer_gateways

Creates, updates, deletes or gets a customer_gateway resource or lists customer_gateways in a region

Overview

Namecustomer_gateways
TypeResource
DescriptionSpecifies a customer gateway.
Idawscc.ec2.customer_gateways

Fields

NameDatatypeDescription
typestringThe type of VPN connection that this customer gateway supports (``ipsec.1``).
customer_gateway_idstring
ip_addressstringThe IP address for the customer gateway device's outside interface. The address must be static. If ``OutsideIpAddressType`` in your VPN connection options is set to ``PrivateIpv4``, you can use an RFC6598 or RFC1918 private IPv4 address. If ``OutsideIpAddressType`` is set to ``Ipv6``, you can use an IPv6 address.
bgp_asn_extendednumberFor customer gateway devices that support BGP, specify the device's ASN. You must specify either &#96;&#96;BgpAsn&#96;&#96; or &#96;&#96;BgpAsnExtended&#96;&#96; when creating the customer gateway. If the ASN is larger than &#96;&#96;2,147,483,647&#96;&#96;, you must use &#96;&#96;BgpAsnExtended&#96;&#96;.<br />Valid values: &#96;&#96;2,147,483,648&#96;&#96; to &#96;&#96;4,294,967,295&#96;&#96;
bgp_asnintegerFor customer gateway devices that support BGP, specify the device's ASN. You must specify either &#96;&#96;BgpAsn&#96;&#96; or &#96;&#96;BgpAsnExtended&#96;&#96; when creating the customer gateway. If the ASN is larger than &#96;&#96;2,147,483,647&#96;&#96;, you must use &#96;&#96;BgpAsnExtended&#96;&#96;.<br />Default: 65000<br />Valid values: &#96;&#96;1&#96;&#96; to &#96;&#96;2,147,483,647&#96;&#96;
tagsarrayOne or more tags for the customer gateway.
certificate_arnstringThe Amazon Resource Name (ARN) for the customer gateway certificate.
device_namestringThe name of customer gateway device.
regionstringAWS region.

For more information, see AWS::EC2::CustomerGateway.

Methods

NameResourceAccessible byRequired Params
create_resourcecustomer_gatewaysINSERTIpAddress, Type, region
delete_resourcecustomer_gatewaysDELETEIdentifier, region
update_resourcecustomer_gatewaysUPDATEIdentifier, PatchDocument, region
list_resourcescustomer_gateways_list_onlySELECTregion
get_resourcecustomer_gatewaysSELECTIdentifier, region

SELECT examples

Gets all properties from an individual customer_gateway.

SELECT
region,
type,
customer_gateway_id,
ip_address,
bgp_asn_extended,
bgp_asn,
tags,
certificate_arn,
device_name
FROM awscc.ec2.customer_gateways
WHERE
region = 'us-east-1' AND
Identifier = '{{ customer_gateway_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new customer_gateway resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.ec2.customer_gateways (
Type,
IpAddress,
region
)
SELECT
'{{ type }}',
'{{ ip_address }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a customer_gateway resource, using stack-deploy.

/*+ update */
UPDATE awscc.ec2.customer_gateways
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ customer_gateway_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.customer_gateways
WHERE
Identifier = '{{ customer_gateway_id }}' AND
region = 'us-east-1';

Permissions

To operate on the customer_gateways resource, the following permissions are required:

ec2:DescribeCustomerGateways