This is a reusable Terraform module for setting up VPC flow logs in Amazon Web Services.
module "flow_logs" {
source = "github.com/GSA/terraform-vpc-flow-log"
vpc_id = "${aws_vpc.main.id}"
}
Name | Version |
---|---|
terraform | >= 0.13 |
Name | Version |
---|---|
aws | n/a |
template | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
log_group_name | Defaults to $${default_log_group_name} |
string |
"" |
no |
prefix | The prefix for the resource names. You will probably want to set this to the name of your VPC, if you have multiple. | string |
"vpc" |
no |
tags | A map containing tags to apply to the cloudwatch_log_group | map |
{} |
no |
traffic_type | https://www.terraform.io/docs/providers/aws/r/flow_log.html#traffic_type | string |
"ALL" |
no |
vpc_id | n/a | any |
n/a | yes |
Name | Description |
---|---|
log_group_name | The name of the created cloudwatch log group |