flow_logs_integration_templates
Creates, updates, deletes, gets or lists a flow_logs_integration_templates resource.
Overview
| Name | flow_logs_integration_templates |
| Type | Resource |
| Id | aws.ec2.flow_logs_integration_templates |
Fields
The following fields are returned by SELECT queries:
- get_flow_logs_integration_template
| Name | Datatype | Description |
|---|---|---|
result | string | The generated CloudFormation template. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_flow_logs_integration_template | select | FlowLogId, ConfigDeliveryS3DestinationArn, IntegrateService, region | DryRun | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
ConfigDeliveryS3DestinationArn | string | To store the CloudFormation template in Amazon S3, specify the location in Amazon S3. |
FlowLogId | string | The ID of the flow log. |
IntegrateService | object | Information about the service integration. |
region | string | AWS region (default: us-east-1) |
DryRun | boolean | 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. |
SELECT examples
- get_flow_logs_integration_template
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 }}'
;