Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-icon_docs
file-type-iconnetwork-acl-inbound
file-type-iconnetwork-acl-outbound
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconvars.tf
file-type-iconvpc-app-network-acls
file-type-iconvpc-app
file-type-iconvpc-dns-forwarder-rules
file-type-iconvpc-dns-forwarder
file-type-iconvpc-flow-logs
file-type-iconvpc-interface-endpoint
file-type-iconvpc-mgmt-network-acls
file-type-iconvpc-mgmt
file-type-iconvpc-peering-external
file-type-iconvpc-peering
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

Browse the Repo

file-type-icon.circleci
file-type-iconexamples
file-type-iconmodules
file-type-icon_docs
file-type-iconnetwork-acl-inbound
file-type-iconnetwork-acl-outbound
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconvars.tf
file-type-iconvpc-app-network-acls
file-type-iconvpc-app
file-type-iconvpc-dns-forwarder-rules
file-type-iconvpc-dns-forwarder
file-type-iconvpc-flow-logs
file-type-iconvpc-interface-endpoint
file-type-iconvpc-mgmt-network-acls
file-type-iconvpc-mgmt
file-type-iconvpc-peering-external
file-type-iconvpc-peering
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
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

vars.tf

down
  • # ----------------------------------------------------------------------------------------------------------------------
  • # MODULE PARAMETERS
  • # These variables are expected to be passed in by the operator when calling this terraform module.
  • # ----------------------------------------------------------------------------------------------------------------------
  • variable "outbound_from_port" {
  • description = "Allow all outbound traffic on ports between var.outbound_from_port and var.outbound_to_port, inclusive"
  • type = number
  • }
  • variable "outbound_to_port" {
  • description = "Allow all outbound traffic on ports between var.outbound_from_port and var.outbound_to_port, inclusive"
  • type = number
  • }
  • variable "outbound_cidr_blocks" {
  • description = "A list of CIDR blocks to which outbound connections should be allowed at var.outbound_ports"
  • type = list(string)
  • }
  • variable "num_outbound_cidr_blocks" {
  • description = "The number of CIDR blocks in var.outbound_cidr_blocks. We should be able to compute this automatically, but due to a Terraform limitation, we can't: https://github.com/hashicorp/terraform/issues/14677#issuecomment-302772685"
  • type = number
  • }

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?