Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Create and manage Amazon VPC Transit Gateways Flow Logs using APIs or the CLI

Focus mode
Create and manage Amazon VPC Transit Gateways Flow Logs using APIs or the CLI - Amazon VPC

You can perform the tasks described on this page using the command line.

The following limitations apply when using the create-flow-logs command:

  • --resource-ids has a maximum constraint of 25 TransitGateway or TransitGatewayAttachment resource types.

  • --traffic-type is not a required field by default. An error is returned if you provide this for transit gateway resource types. This limit applies only to transit gateway resource types.

  • --max-aggregation-interval has a default value of 60, and is the only accepted value for transit gateway resource types. An error is returned if you try to pass any other value. This limit applies only to transit gateway resource types.

  • --resource-type supports two new resource types, TransitGateway and TransitGatewayAttachment.

  • --log-format includes all log fields for transit gateway resource types if you do not set which fields you want to include. This applies only to transit gateway resource types.

Create a flow log
Describe your flow logs
View your flow log records (log events)
Delete a flow log
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.