aws.ec2.get_flow_logs_integration_template
Example SQL Queries
SELECT * FROMaws.ec2.get_flow_logs_integration_templateWHERE"flow_log_id" = 'VALUE'AND "config_delivery_s3_destination_arn" = 'VALUE'AND "integrate_services" = 'VALUE';Description
Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. This make it easier for you to query and gain insights from VPC flow logs data. Based on the information that you provide, we configure resources in the template to do the following:
Create a table in Athena that maps fields to a custom log format
Create a Lambda function that updates the table with new partitions on a daily, weekly, or monthly basis
Create a table partitioned between two timestamps in the past
Create a set of named queries in Athena that you can use to get started quickly
GetFlowLogsIntegrationTemplate does not support integration between Amazon Web Services Transit Gateway Flow Logs and Amazon Athena.
Table Definition
| Column Name | Column Data Type |
|---|---|
| config_delivery_s3_destination_arn Required Input Column To store the CloudFormation template in Amazon S3, specify the location in Amazon S3. | VARCHAR |
| flow_log_id Required Input Column The ID of the flow log. | VARCHAR |
| integrate_services Required Input Column Information about the service integration. | STRUCT( |
Show child fields
| |
| dry_run Input Column Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. | BOOLEAN |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| result The generated CloudFormation template. | VARCHAR |