diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 3fff136..3896fb7 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -98,6 +98,17 @@ module "transit_gateway_route_table" { } } + vpc_routes = { + vpc1 = { + destination_cidr_block = module.vpc2.vpc_cidr_block + route_table_id = element(module.vpc1.private_route_table_ids, 0) + } + vpc2 = { + destination_cidr_block = module.vpc1.vpc_cidr_block + route_table_id = element(module.vpc2.private_route_table_ids, 0) + } + } + tags = local.tags } diff --git a/examples/multi-account/README.md b/examples/multi-account/README.md index 5823afb..7b4c68a 100644 --- a/examples/multi-account/README.md +++ b/examples/multi-account/README.md @@ -46,6 +46,7 @@ Note that this example may create resources which cost money. Run `terraform des |------|------| | [random_pet.this](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | resource | | [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source | +| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | | [aws_iam_policy_document.flow_log_s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | ## Inputs diff --git a/examples/multi-account/main.tf b/examples/multi-account/main.tf index 9d8dbb1..537ef36 100644 --- a/examples/multi-account/main.tf +++ b/examples/multi-account/main.tf @@ -8,6 +8,8 @@ provider "aws" { alias = "peer" } +data "aws_caller_identity" "current" {} + locals { name = "ex-tgw-${replace(basename(path.cwd), "_", "-")}" region = "eu-west-1"