Skip to content

drewmullen/tfc-buildtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create VPC flow logs

This example builds a VPC with public and private subnets in 3 availability zones, creates a nat gateway in each AZ and appropriately routes from each private to the nat gateway. It creates an internet gateway and appropriately routes subnet traffic from "0.0.0.0/0" to the IGW. It creates encrypted VPC Flow Logs that are sent to cloud-watch and retained for 180 days.

At this point, only cloud-watch logs are support, pending: aws-ia/terraform-aws-vpc#35

Requirements

Name Version
terraform >= 1.3.0
aws >= 3.73.0

Providers

Name Version
aws >= 3.73.0

Modules

Name Source Version
vpc aws-ia/vpc/aws >= 3.0.2

Resources

Name Type
aws_availability_zones.current data source

Inputs

Name Description Type Default Required
kms_key_id KMS Key ID string null no
vpc_flow_logs Whether or not to create VPC flow logs and which type. Options: "cloudwatch", "s3", "none".
object({
log_destination = optional(string)
iam_role_arn = optional(string)
kms_key_id = optional(string)

log_destination_type = string
retention_in_days = optional(number)
tags = optional(map(string))
traffic_type = optional(string)
destination_options = optional(object({
file_format = optional(string)
hive_compatible_partitions = optional(bool)
per_hour_partition = optional(bool)
}))
})
{
"kms_key_id": null,
"log_destination_type": "cloud-watch-logs",
"retention_in_days": 180
}
no

Outputs

Name Description
private_subnets Map of private subnet attributes grouped by az.
private_subnets_tags_length Count of private subnet tags for a single az.
public_subnets Map of public subnet attributes grouped by az.
public_subnets_tags_length Count of public subnet tags for a single az.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages