Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconvpc-app-no-nat-gateway
file-type-iconvpc-app-subnets-disabled
file-type-iconvpc-app-with-endpoint
file-type-iconvpc-app-with-inbound-network
file-type-iconvpc-app
file-type-iconvpc-custom-cidr-blocks
file-type-iconvpc-flow-logs
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconvpc-mgmt-no-nat-gateway
file-type-iconvpc-mgmt
file-type-iconvpc-network-acls
file-type-iconvpc-peering-cross-accounts
file-type-iconvpc-peering-external
file-type-iconvpc-peering
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...

Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconvpc-app-no-nat-gateway
file-type-iconvpc-app-subnets-disabled
file-type-iconvpc-app-with-endpoint
file-type-iconvpc-app-with-inbound-network
file-type-iconvpc-app
file-type-iconvpc-custom-cidr-blocks
file-type-iconvpc-flow-logs
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
file-type-iconvpc-mgmt-no-nat-gateway
file-type-iconvpc-mgmt
file-type-iconvpc-network-acls
file-type-iconvpc-peering-cross-accounts
file-type-iconvpc-peering-external
file-type-iconvpc-peering
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
file-type-iconterraform-cloud-enterprise-private-module-...
Virtual Private Cloud (VPC)

Virtual Private Cloud (VPC)

Create a Virtual Private Cloud (VPC). Includes multiple subnet tiers, NACLs, NAT gateways, Internet Gateways, and VPC peering.

Code Preview

Preview the Code

mobile file icon

README.md

down

VPC Flow Logs examples

This shows examples of how to use the vpc-flow-logs module to log IP network traffic to and from your VPCs, subnets, and Elastic Network Interfaces (ENIs). For further details on VPC Flow Logs, see the vpc-flow-logs module and the AWS VPC flow logs documentation.

We include two examples. In the first, we show how to use the module to publish logs to CloudWatch Logs. In the second, we show how to publish to S3.

Quick start

To try these templates out you must have Terraform installed (minimum version: 0.12):

  1. Open variables.tf, set the environment variables specified at the top of the file, and fill in any other variables that don't have a default.
  2. Run terraform init.
  3. Run terraform plan.
  4. If the plan looks good, run terraform apply.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?