Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from hashicorp/master
Browse files Browse the repository at this point in the history
pull changes in from upstream
  • Loading branch information
ausfestivus authored Nov 7, 2019
2 parents 27be825 + 1886d80 commit 568ee74
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions examples/bootstrap-aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ This will create a VPC with subnets, and can create a Route53 zone.
| cidr\_block | CIDR block range to use for the network. | string | `"10.0.0.0/16"` | no |
| domain\_name | The domain to create a route53 zone for. (eg. `tfe.example.com`), will not create if left empty. | string | `""` | no |
| prefix | The prefix to use on all resources, will generate one if not set. | string | `""` | no |
| private\_subnet\_cidr\_block | CIDR block range to use for the private subnet. | string | `"10.0.128.0/17"` | no |
| public\_subnet\_cidr\_block | CIDR block range to use for the public subnet. | string | `"10.0.0.0/17"` | no |
| private\_subnet\_cidr\_blocks | CIDR block range to use for the private subnet. | list| `["10.0.11.0/24", "10.0.12.0/24", "10.0.13.0/24"]` | no |
| public\_subnet\_cidr\_blocks | CIDR block range to use for the public subnet. | list | `["10.0.21.0/24", "10.0.22.0/24", "10.0.23.0/24"]` | no |

## Outputs

Expand Down
6 changes: 3 additions & 3 deletions examples/bootstrap-aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ resource "random_pet" "prefix" {
module "new_vpc" {
# 2.X.X versions of this module are for 0.12+ terraform
source = "terraform-aws-modules/vpc/aws"
version = "1.67.0"
version = "1.72.0"

name = "${local.prefix}-vpc"
cidr = "${var.cidr_block}"
azs = ["${var.availability_zones}"]
private_subnets = ["${var.private_subnet_cidr_block}"]
public_subnets = ["${var.public_subnet_cidr_block}"]
private_subnets = ["${var.private_subnet_cidr_blocks}"]
public_subnets = ["${var.public_subnet_cidr_blocks}"]
default_vpc_tags = "${local.tags}"
private_subnet_tags = "${local.tags}"
public_subnet_tags = "${local.tags}"
Expand Down
15 changes: 9 additions & 6 deletions examples/bootstrap-aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ variable "cidr_block" {
default = "10.0.0.0/16"
}

variable "public_subnet_cidr_block" {
description = "CIDR block range to use for the public subnet."
default = "10.0.0.0/17"
variable "public_subnet_cidr_blocks" {
type = "list"
description = "CIDR block ranges to use for the public subnets."
default = ["10.0.21.0/24", "10.0.22.0/24", "10.0.23.0/24"]
}

variable "private_subnet_cidr_block" {
description = "CIDR block range to use for the private subnet."
default = "10.0.128.0/17"
variable "private_subnet_cidr_blocks" {
type = "list"
description = "CIDR block ranges to use for the private subnets."
default = ["10.0.11.0/24", "10.0.12.0/24", "10.0.13.0/24"]
}

variable "additional_tags" {
Expand All @@ -20,6 +22,7 @@ variable "additional_tags" {
}

variable "availability_zones" {
type = "list"
description = "List of the Availability zones to use."
default = ["us-east-2a", "us-east-2b", "us-east-2c"]
}
Expand Down

0 comments on commit 568ee74

Please sign in to comment.