/terraform-aws-vpc

My reusable module to deploy the AWS VPC resource, includes tests for common scenarios.

Primary LanguageGo

AWS VPC

Background

This module deploys the AWS VPC Resource

usage

This is the simplest possible usage of the module.

module "vpc" {
  source  = "bytejunkie/vpc/aws"
  version = "1.0.0"
  # insert the 1 required variable here
  cidr_block = "10.0.0.0/24"
}

Required Parameters

variable "cidr_block" {
  type        = string
  description = "(Required) The CIDR block for the VPC"
}

Optional Parameters

variable "instance_tenancy" {
  type        = string
  description = "(Optional) A tenancy option for instances launched into the VPC. Default is default, which makes your instances shared on the host. Using either of the other options (dedicated or host) costs at least $2/hr"
  default     = "default"
}

variable "enable_dns_support" {
  type        = string
  description = "(Optional) A boolean flag to enable/disable DNS support in the VPC. Defaults true"
  default     = "true"
}

variable "enable_dns_hostnames" {
  type        = string
  description = "(Optional) A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false"
  default     = "false"
}

variable "enable_classiclink" {
  type        = string
  description = "(Optional) A boolean flag to enable/disable ClassicLink for the VPC. Only valid in regions and accounts that support EC2 Classic. See the ClassicLink documentation for more information. Defaults false"
  default     = "false"
}

variable "enable_classiclink_dns_support" {
  type        = string
  description = "(Optional) A boolean flag to enable/disable ClassicLink DNS Support for the VPC. Only valid in regions and accounts that support EC2 Classic"
  default     = "false"
}

variable "assign_generated_ipv6_cidr_block" {
  type        = string
  description = "(Optional) Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false"
  default     = "false"
}

variable "tags" {
  type        = map(any)
  description = "(Optional) A map of tags to assign to the resource."
  default     = {}
}