Skip to main content

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​

  1. Set up an AWS Transit Gateway connection in the Integration Account Console. Verify the connection and confirm its status is READY.
  2. In Workflow Studio, add AWS Transit Gateway to a task and select the connection under General > Connection.
  3. Choose an operation and the AWS region. Supply a transit gateway ID to scope the request to one gateway.
  4. Check status before consuming rows. When hasMore is true, pass the returned nextToken to another invocation with the same connection, region, operation, gateway filter, and page size.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringNodescribe_transit_gatewaysChoose describe_transit_gateways or describe_transit_gateway_attachments.
regionstringYes—Commercial AWS or AWS GovCloud region where the EC2 API serves the inventory.
transitGatewayIdstringNo—Limit the request to a gateway ID such as tgw-0123456789abcdef0.
pageSizeintegerNo100Request 5–1,000 results per provider page.
nextTokenstringNo—Opaque continuation token from the previous page, up to 8,192 non-space printable ASCII characters.

Outputs​

OutputMeaning
statussuccess or error.
operation / regionRecognized operation and AWS region when available.
transitGatewaysRows with transitGatewayId and available arn, ownerId, and state.
attachmentsRows with transitGatewayAttachmentId and transitGatewayId, plus available transitGatewayOwnerId, resourceType, resourceId, resourceOwnerId, state, associationRouteTableId, and associationState.
hasMore / nextTokenWhether AWS reports another page and the token for continuing.
requestIdAWS request reference when available.
errorRedacted 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_gateways reads one page of gateway summaries visible to the selected connection. If you supply transitGatewayId, the module requests that specific gateway. AWS DescribeTransitGateways API
  • describe_transit_gateway_attachments reads one page of attachment summaries. Supply transitGatewayId to 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> or AWS_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 persistent EXECUTION_ERROR using 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 hasMore to 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.