Configures VPC flow logs for the given VPC.
Creates the following resources:
- CloudWatch log group.
- IAM role.
- VPC Flow Log.
module "vpc_flow_logs" {
source = "trussworks/vpc-flow-logs/aws"
vpc_name = local.vpc_name
vpc_id = module.vpc.vpc_id
logs_retention = local.cloudwatch_logs_retention
}
Name | Version |
---|---|
terraform | ~> 0.12.0 |
aws | ~> 2.70 |
Name | Version |
---|---|
aws | ~> 2.70 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
logs_retention | Number of days you want to retain log events in the log group. | number |
90 |
no |
vpc_id | VPC ID to attach to. | string |
n/a | yes |
vpc_name | The VPC name is used to name the flow log resources. | string |
n/a | yes |
No output.