AWS Transit Gateway ExecModule
Overview
AwsTransitGatewayModule reads AWS transit gateways and their resource attachments in one region. Use it to collect the AWS-reported state of a gateway before a change review, compare observed attachments with approved inventory, or investigate an attachment that is awaiting acceptance.
Transit gateways connect networks such as VPCs and VPNs through a regional hub. The connector reports attachment relationships and route table association summaries when AWS supplies them. A reported association alone cannot establish that traffic can reach a destination. AWS Transit Gateway concepts
Usage
- Set up an AWS Transit Gateway connection in the Integration Account Console. Verify the connection and confirm its status is
READY. - In Workflow Studio, add AWS Transit Gateway to a task and select the connection under General > Connection.
- Choose an operation and the AWS region. Supply a transit gateway ID to scope the request to one gateway.
- Check
statusbefore consuming rows. WhenhasMoreis true, pass the returnednextTokento another invocation with the same connection, region, operation, gateway filter, and page size.
Inputs
| Input | Type | Required | Default | Purpose |
|---|---|---|---|---|
operation | string | No | describe_transit_gateways | Choose describe_transit_gateways or describe_transit_gateway_attachments. |
region | string | Yes | — | Commercial AWS or AWS GovCloud region where the EC2 API serves the inventory. |
transitGatewayId | string | No | — | Limit the request to a gateway ID such as tgw-0123456789abcdef0. |
pageSize | integer | No | 100 | Request 5–1,000 results per provider page. |
nextToken | string | No | — | Opaque continuation token from the previous page, up to 8,192 non-space printable ASCII characters. |
Outputs
| Output | Meaning |
|---|---|
status | success or error. |
operation / region | Recognized operation and AWS region when available. |
transitGateways | Rows with transitGatewayId and available arn, ownerId, and state. |
attachments | Rows with transitGatewayAttachmentId and transitGatewayId, plus available transitGatewayOwnerId, resourceType, resourceId, resourceOwnerId, state, associationRouteTableId, and associationState. |
hasMore / nextToken | Whether AWS reports another page and the token for continuing. |
requestId | AWS request reference when available. |
error | Redacted object with code, message, retryable, and an optional httpStatus. |
A successful response includes the row collection for the chosen operation. An empty collection is valid. Join gateway and attachment rows on transitGatewayId when the workflow needs both views.
IntegrationAccount Requirements
Use a verified READY IntegrationAccount with account name AWS. Store the key pair in the protected AWS Access Key ID and AWS Secret Access Key fields. The module signs its EC2 requests with AWS Signature Version 4 using this key pair. The connection uses access key pairs without a session token.
Grant ec2:DescribeTransitGateways for gateway inventory and ec2:DescribeTransitGatewayAttachments for attachment inventory, according to the operations the workflow uses. These actions use Resource: "*" in IAM policies and support the ec2:Region condition for restricting allowed regions. Amazon EC2 service authorization
Configuration
Use the standard regional EC2 HTTPS endpoint selected by the module. Run separate inventories for each approved region and AWS connection. Keep keys in the protected account fields and restrict workflow outputs to authorized recipients. Owner IDs and attachment relationships describe your network inventory.
Operations
describe_transit_gatewaysreads one page of gateway summaries visible to the selected connection. If you supplytransitGatewayId, the module requests that specific gateway. AWS DescribeTransitGateways APIdescribe_transit_gateway_attachmentsreads one page of attachment summaries. SupplytransitGatewayIdto filter attachments to that gateway. When AWS supplies an association, the result includes its route table ID and association state. AWS DescribeTransitGatewayAttachments API
Errors and Failure Modes
- For
VALIDATION_ERROR, check the operation, region, gateway ID, page size, and continuation token. - For
INTEGRATION_ACCOUNT_ERROR, verify the connection's provider, readiness, and protected key fields. - For
DESTINATION_DENIED, check the selected region and the workflow's network policy. - For
AWS_EC2_HTTP_<status>orAWS_EC2_ERROR, check AWS permissions, account, and region. Use the AWS request ID for investigation when available. - For
INVALID_PROVIDER_RESPONSE, inspect the workflow run before repeating the page. - For a retryable failure, such as throttling or a transient
NETWORK_ERROR, back off before retrying the workflow. Investigate persistentEXECUTION_ERRORusing the workflow run and its error code.
Example
A scheduled workflow can read the attachments of a gateway before a change window and flag any pending acceptance for review.
{
"operation": "describe_transit_gateway_attachments",
"region": "us-west-2",
"transitGatewayId": "tgw-0123456789abcdef0",
"pageSize": 25
}
A successful final page might look like this.
{
"status": "success",
"operation": "describe_transit_gateway_attachments",
"region": "us-west-2",
"attachments": [
{
"transitGatewayAttachmentId": "tgw-attach-023456789abcdef01",
"transitGatewayId": "tgw-0123456789abcdef0",
"resourceType": "vpc",
"resourceId": "vpc-03456789abcdef012",
"state": "pendingAcceptance"
}
],
"hasMore": false
}
Read all pages before evaluating the inventory. A workflow branch can route a pending attachment to the network owner with the gateway, attachment, and region identifiers.
Notes
- AWS can return fewer rows than requested. Use
hasMoreto decide whether to continue even when a page is empty. - 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. Recent changes can take time to appear in inventory. AWS EC2 API throttling
- Both operations are read-only and safe to repeat. Route and route table inventory, reachability testing, and attachment changes are outside this connector's scope.