Create and manage Amazon VPC Transit Gateways Flow Logs using APIs or the CLI - Amazon VPC
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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

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