Skip to main content

flow_logs_integration_templates

Creates, updates, deletes, gets or lists a flow_logs_integration_templates resource.

Overview

Nameflow_logs_integration_templates
TypeResource
Idaws.ec2.flow_logs_integration_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resultstringThe generated CloudFormation template.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_flow_logs_integration_templateselectFlowLogId, ConfigDeliveryS3DestinationArn, IntegrateService, regionDryRunGenerates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ConfigDeliveryS3DestinationArnstringTo store the CloudFormation template in Amazon S3, specify the location in Amazon S3.
FlowLogIdstringThe ID of the flow log.
IntegrateServiceobjectInformation about the service integration.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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.

SELECT examples

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.

SELECT
result
FROM aws.ec2.flow_logs_integration_templates
WHERE FlowLogId = '{{ FlowLogId }}' -- required
AND ConfigDeliveryS3DestinationArn = '{{ ConfigDeliveryS3DestinationArn }}' -- required
AND IntegrateService = '{{ IntegrateService }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;