navaati / terraform-aws-vpc-flow-logs

Configures VPC flow logs for the given VPC.

Home Page:https://registry.terraform.io/modules/trussworks/vpc-flow-logs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configures VPC flow logs for the given VPC.

Creates the following resources:

  • CloudWatch log group.
  • IAM role.
  • VPC Flow Log.

Usage

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
}

Requirements

Name Version
terraform ~> 0.12.0
aws ~> 2.70

Providers

Name Version
aws ~> 2.70

Inputs

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

Outputs

No output.

About

Configures VPC flow logs for the given VPC.

https://registry.terraform.io/modules/trussworks/vpc-flow-logs

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:HCL 100.0%