Skip to content

Commit

Permalink
docs: update provider versions and fix transit gateway ID references …
Browse files Browse the repository at this point in the history
…in multi-region and simple examples
  • Loading branch information
tfhartmann committed Dec 6, 2024
1 parent 0dbfd6d commit 4780a98
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 11 deletions.
26 changes: 20 additions & 6 deletions examples/multi-region/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,31 @@
*
*/

terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "6.12.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "6.12.0"
}
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

provider "google" {
project = "project"
region = "us-central1"
version = "3.11.0"
}

provider "google-beta" {
project = "project"
region = "us-central1"
version = "3.13.0"
}

provider "google" {
Expand Down Expand Up @@ -50,8 +65,7 @@ provider "google-beta" {
}

provider "aws" {
region = "us-east-1"
version = "2.51.0"
region = "us-east-1"
}

# N. Virginia / USA
Expand Down Expand Up @@ -87,7 +101,7 @@ module "tgw-us-east-1" {

module "cb-us-east-1" {
source = "github.com/spotify/terraform-google-aws-hybrid-cloud-vpn"
transit_gateway_id = module.tgw-us-east-1.this_ec2_transit_gateway_id
transit_gateway_id = module.tgw-us-east-1.ec2_transit_gateway_id
google_network = "default"
amazon_side_asn = 64512
google_side_asn = 65534
Expand Down Expand Up @@ -126,7 +140,7 @@ module "tgw-eu-central-1" {
}
module "cb-eu-central-1" {
source = "github.com/spotify/terraform-google-aws-hybrid-cloud-vpn"
transit_gateway_id = module.tgw-eu-central-1.this_ec2_transit_gateway_id
transit_gateway_id = module.tgw-eu-central-1.ec2_transit_gateway_id
google_network = "default"
amazon_side_asn = 64513
google_side_asn = 65533
Expand Down
21 changes: 16 additions & 5 deletions examples/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,31 @@
*
*/

terraform {
required_providers {
google-beta = {
source = "hashicorp/google-beta"
version = "6.12.0"
}
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

provider "google-beta" {
project = "project"
region = "us-central1"
version = "3.11.0"
}

provider "aws" {
region = "us-east-1"
version = "2.51.0"
region = "us-east-1"
}

module "tgw-us-east-1" {
source = "terraform-aws-modules/transit-gateway/aws"
version = "1.1.0"
version = "2.12.2"
name = "tgw-example-us-east-1"
description = "TGW example shared with several other AWS accounts"
amazon_side_asn = "64512"
Expand All @@ -38,7 +49,7 @@ module "tgw-us-east-1" {

module "cb-us-east-1" {
source = "github.com/spotify/terraform-google-aws-hybrid-cloud-vpn"
transit_gateway_id = module.tgw-us-east-1.this_ec2_transit_gateway_id
transit_gateway_id = module.tgw-us-east-1.ec2_transit_gateway_id
google_network = default
amazon_side_asn = 64512
google_side_asn = 65534
Expand Down

0 comments on commit 4780a98

Please sign in to comment.