Terraform module for AWS VPCs
Go to file
Jakub Sokołowski 229bbe6816
allow public access to IPv6 addresses
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-03-14 13:59:35 +01:00
README.md add support for multiple subnets in different zones 2020-05-19 12:54:52 +02:00
main.tf allow public access to IPv6 addresses 2024-03-14 13:59:35 +01:00
outputs.tf add support for multiple subnets in different zones 2020-05-19 12:54:52 +02:00
variables.tf upgrade provider from 2.46.0 to 3.46.0 2021-06-23 09:35:06 +02:00
versions.tf upgrade provider from 4.67.0 to 5.40.0 2024-03-14 13:25:14 +01:00

README.md

Description

This defines a Terraform module that configures an AWS VPC.

Usage

module "my_network" {
  source = "github.com/status-im/infra-tf-aws-vpc"

  name  = "myfleet"
  stage = "prod"

  /* Firewall */
  open_udp_ports = [ "53", "1234" ]
  open_tcp_ports = [ "22", "80", "443" ]
}

Variables

Here are the variables available in the module:

  • General
    • name - Name to use for VPC elements
    • stage - Stage to use for VPC elements
  • Plumbing
    • zones - Listo of Availability Zones for VPCs and Subnets (Default: ["eu-central-1a", ...])
    • vpc_cidr_block - Classless Inter-Domain Routing address space. (Default: 172.20.0.0/16)
    • subnet_cidr_blocks - List of subnets of the VPC CIDR block address space. (Default: ["172.20.1.0/24", ...])
  • Firewall
    • open_tcp_ports - List of TCP port ranges to open.
    • open_udp_ports - List of UDP port ranges to open.

Outputs

  • vpc - The VPC resoruce
  • subnets - List of Subnet resources
  • secgroup - The Security Group resource