library
turbot/aws
Get Involved
Version
Pipeline: Create VPC Flow Logs
Sets up flow logs for a specified VPC to monitor its network traffic.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run aws.pipeline.create_vpc_flow_logs \ --arg 'region=<string>' \ --arg 'vpc_id=<string>' \ --arg 'log_group_name=<string>' \ --arg 'iam_role_arn=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = aws.pipeline.create_vpc_flow_logs args = { region = <string> vpc_id = <string> log_group_name = <string> iam_role_arn = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
region | string | Yes | The name of the Region. | - |
conn | connection.aws | Yes | Name of AWS connection to use. If not provided, the default AWS connection will be used. | connection.aws.default |
vpc_id | string | Yes | The ID of the VPC for which to enable flow logs. | - |
log_group_name | string | Yes | The name of the CloudWatch Logs log group where the flow logs will be stored. | - |
traffic_type | string | Yes | The type of traffic to log. Valid values are 'ACCEPT', 'REJECT', or 'ALL'. | ALL |
iam_role_arn | string | Yes | The ARN of the IAM role that has permission to create flow logs. | - |
Outputs
Name | Description |
---|---|
flow_log_creation | Details about the creation of VPC flow logs. |