Skip to content

Commit 9b7a970

Browse files
committed
chore: Add VPC route to example
1 parent 0f882d2 commit 9b7a970

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

examples/complete/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ module "transit_gateway_route_table" {
9898
}
9999
}
100100

101+
vpc_routes = {
102+
vpc1 = {
103+
destination_cidr_block = module.vpc2.vpc_cidr_block
104+
route_table_id = element(module.vpc1.private_route_table_ids, 0)
105+
}
106+
vpc2 = {
107+
destination_cidr_block = module.vpc1.vpc_cidr_block
108+
route_table_id = element(module.vpc2.private_route_table_ids, 0)
109+
}
110+
}
111+
101112
tags = local.tags
102113
}
103114

examples/multi-account/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Note that this example may create resources which cost money. Run `terraform des
4646
|------|------|
4747
| [random_pet.this](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | resource |
4848
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source |
49+
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
4950
| [aws_iam_policy_document.flow_log_s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
5051

5152
## Inputs

examples/multi-account/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ provider "aws" {
88
alias = "peer"
99
}
1010

11+
data "aws_caller_identity" "current" {}
12+
1113
locals {
1214
name = "ex-tgw-${replace(basename(path.cwd), "_", "-")}"
1315
region = "eu-west-1"

0 commit comments

Comments
 (0)