AWS Site-to-Site VPN ExecModule
Overview
AwsSiteToSiteVpnModule reads regional AWS Site-to-Site VPN connections and customer gateway resources. Use it to compare AWS inventory with a change ticket, verify which gateway a connection references, or collect a consistent regional inventory for a review.
The VPN connection links the customer side to an AWS-side endpoint. The customer gateway is the AWS resource that represents the device or application on the customer side. Connection and gateway states describe those AWS resources. Use tunnel telemetry separately when you need to assess connectivity. AWS Site-to-Site VPN concepts
Usage
- Set up an AWS Site-to-Site VPN connection in the Integration Account Console. Verify it and confirm its status is
READY. - In Workflow Studio, add AWS Site-to-Site VPN to a task and choose the connection under General > Connection.
- Select the operation and the region where AWS records the resources. For a targeted check, enter the ID of the connection or customer gateway.
- Check
statusbefore comparing the result with your inventory or passing rows to another task.
Inputs
| Input | Type | Required | Default | Purpose |
|---|---|---|---|---|
operation | string | No | describe_vpn_connections | Choose describe_vpn_connections or describe_customer_gateways. |
region | string | Yes | — | Commercial AWS or AWS GovCloud region for the EC2 request, such as us-west-2 or us-gov-west-1. |
resourceId | string | No | — | Supply one vpn- ID for VPN connection inventory or one cgw- ID for customer gateway inventory. Leave empty to describe resources visible to the connection in the selected region. |
Outputs
| Output | Meaning |
|---|---|
status | success or error. |
operation / region | Recognized operation and selected AWS region when available. |
vpnConnections | Rows with vpnConnectionId and available customerGatewayId, vpnGatewayId, transitGatewayId, state, and staticRoutesOnly. vpnGatewayId identifies a virtual private gateway when AWS supplies it. |
customerGateways | Rows with customerGatewayId and available state and type. |
requestId | AWS request reference when available. |
error | Redacted object with code, message, retryable, and an optional httpStatus. |
A successful response returns the collection for the chosen operation. An empty collection is valid. Join rows on customerGatewayId to combine the views. Workflow output excludes customer gateway configuration XML, tunnel pre-shared keys, endpoint addresses, and raw AWS payloads.
IntegrationAccount Requirements
Use a verified READY IntegrationAccount with account name AWS. Store the access key pair in the protected AWS Access Key ID and AWS Secret Access Key fields. The module signs regional EC2 requests with AWS Signature Version 4. This connection uses static access key pairs without a session token.
Grant ec2:DescribeVpnConnections for VPN connection inventory and ec2:DescribeCustomerGateways for customer gateway inventory. Include only the actions the workflow uses. Both actions use Resource: "*" and support the ec2:Region condition for regional scoping. Amazon EC2 service authorization
Configuration
The module selects the standard regional EC2 HTTPS endpoint. Set up a task invocation for each account and region you need to review. Keep AWS keys in the protected connection fields. Restrict access to workflow results because identifiers and gateway relationships describe your network.
Operations
describe_vpn_connectionsreads the connection inventory and the customer and AWS gateway IDs that AWS provides. To check a single connection, setresourceIdto itsvpn-ID. AWS DescribeVpnConnections APIdescribe_customer_gatewaysreads customer gateway resource IDs, states, and types. To check the gateway referenced by a connection, pass the returnedcustomerGatewayIdasresourceIdto a second invocation with the same AWS connection and region. AWS DescribeCustomerGateways API
Errors and Failure Modes
- For
VALIDATION_ERROR, check the operation, region, and whether the supplied resource ID matches the operation. - For
INTEGRATION_ACCOUNT_ERROR, verify the AWS connection, its readiness, and its protected key fields. - For
DESTINATION_DENIED, check the region and workflow network policy. - For
AWS_EC2_HTTP_<status>orAWS_EC2_ERROR, check the AWS account, region, and permissions for the selected action. UserequestIdwhen available to investigate the provider request. - For
INVALID_PROVIDER_RESPONSEor persistentEXECUTION_ERROR, inspect the workflow run and its error code. For a retryable failure, such as throttling or a transientNETWORK_ERROR, back off before repeating the workflow.
Example
Before a branch office cutover, look up the VPN connection from the change ticket in its recorded region.
{
"operation": "describe_vpn_connections",
"region": "us-west-2",
"resourceId": "vpn-0123456789abcdef0"
}
A successful inventory result for a transit gateway connection could look like this.
{
"status": "success",
"operation": "describe_vpn_connections",
"region": "us-west-2",
"vpnConnections": [
{
"vpnConnectionId": "vpn-0123456789abcdef0",
"customerGatewayId": "cgw-023456789abcdef01",
"transitGatewayId": "tgw-03456789abcdef012",
"state": "available",
"staticRoutesOnly": false
}
]
}
Compare the gateway IDs with the change ticket. If the customer gateway needs a second check, pass cgw-023456789abcdef01 to describe_customer_gateways. A workflow can route a mismatch for review with the connection ID, region, and observed gateway IDs.
Notes
- Each invocation issues one Describe call before retries. The connector exposes neither pagination nor state filters. Filter returned rows in the workflow when you need to focus on a resource state.
- The connector allows up to two standard read retries within a 50-second call timeout and a 15-second attempt timeout. Pace scans across accounts and regions to respect EC2 request quotas. Allow time for recent changes to appear in the inventory. AWS EC2 API throttling
- Both operations are read-only and safe to repeat. Tunnel telemetry, BGP status, route verification, and VPN changes are outside this connector's scope.