Skip to content

Commit

Permalink
chore: Add VPC route to example
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed Dec 27, 2024
1 parent 0f882d2 commit 9b7a970
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions examples/multi-account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions examples/multi-account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9b7a970

Please sign in to comment.