AWS::EC2::FlowLogSpecifies a VPC flow log, which enables you to capture IP traffic for a specific network interface, subnet, or VPC.
12 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ResourceId | string | RequiredCreate-only |
ResourceType | string | RequiredCreate-only |
DeliverCrossAccountRole | string | Create-only |
DeliverLogsPermissionArn | string | Create-only |
DestinationOptions | object | Create-only |
LogDestination | string | Create-only |
LogDestinationType | string | Create-only |
LogFormat | string | Create-only |
LogGroupName | string | Create-only |
MaxAggregationInterval | integer | Create-only |
Tags | Array<Tag> | |
TrafficType | string | Create-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | The Flow Log ID |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::FlowLog
Resources:
MyResource:
Type: AWS::EC2::FlowLog
Properties:
ResourceType: "NetworkInterface"
ResourceId: "my-resourceid"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
ec2:CreateFlowLogsec2:DescribeFlowLogsec2:CreateTagsiam:PassRolelogs:CreateLogDeliverys3:GetBucketPolicys3:PutBucketPolicyec2:DescribeFlowLogsec2:CreateTagsec2:DeleteTagsec2:DescribeFlowLogsec2:DeleteFlowLogsec2:DescribeFlowLogslogs:DeleteLogDeliveryec2:DescribeFlowLogsEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DeliverCrossAccountRoleDeliverLogsPermissionArnLogGroupNameLogDestinationResourceIdTrafficTypeLogDestinationTypeResourceTypeLogFormatMaxAggregationIntervalDestinationOptions