Skip to content

Commit

Permalink
Update pinning in readme and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
John Titus committed Jan 7, 2020
1 parent 74ba766 commit eabac77
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module sets up basic network components for an account in a specific region

```
module "vpc" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.0.10"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.12.0"
vpc_name = "MyVPC"
}
Expand All @@ -24,6 +24,18 @@ By default only `vpc_name` is required to be set. Unless changed `aws_region` de
- EIPs will be created in all public subnets for NAT gateways to use
- Route Tables, including routes to NAT gateways if applicable

## Terraform 0.12 upgrade

Several changes were required while adding terraform 0.12 compatibility. The following changes should
made when upgrading from a previous release to version 0.12.0 or higher.

### Module variables

The following module variables were updated to better meet current Rackspace style guides:

- `custom_tags` -> `tags`
- `vpc_name` -> `name`

## Inputs

| Name | Description | Type | Default | Required |
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_usage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider "aws" {
}

module "vpc" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.0.10"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.12.0"

name = "MyVPC"
}
2 changes: 1 addition & 1 deletion examples/custom_azs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider "aws" {
}

module "vpc" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.0.10"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.12.0"

name = "MyVPC"
custom_azs = ["us-west-2a", "us-west-2b"]
Expand Down
2 changes: 1 addition & 1 deletion examples/vpn_provided.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider "aws" {
}

module "vpc" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.0.10"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.12.0"

name = "MyVPC"
build_vpn = true
Expand Down
16 changes: 14 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
*```
*module "vpc" {
* source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.0.10"
* source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.12.0"
*
* vpc_name = "MyVPC"
*}
Expand All @@ -24,7 +24,19 @@
* - NAT Gateways will be created in each AZ's first public subnet
* - EIPs will be created in all public subnets for NAT gateways to use
* - Route Tables, including routes to NAT gateways if applicable
*/
*
*## Terraform 0.12 upgrade
*
*Several changes were required while adding terraform 0.12 compatibility. The following changes should be
*made when upgrading from a previous release to version 0.12.0 or higher.
*
*### Module variables
*
*The following module variables were updated to better meet current Rackspace style guides:
*
*- `custom_tags` -> `tags`
*- `vpc_name` -> `name`
*/

terraform {
required_version = ">= 0.12"
Expand Down

0 comments on commit eabac77

Please sign in to comment.