This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
60 lines (51 loc) · 1.76 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Create VPC for US-WEST-2
module "vpc-us-west-2" {
source = "./vpc-us-west-2"
region = "us-west-2"
}
# Create VPC for EU-WEST-2
module "vpc-eu-west-1" {
source = "./vpc-eu-west-1"
region = "eu-west-1"
}
# Create VPC for US-EAST-1
module "vpc-us-east-1" {
source = "./vpc-us-east-1"
region = "us-east-1"
}
module "peering-us-east-to-us-west-init" {
source = "./pcx-us-east-to-us-west-init"
request_region = module.vpc-us-west-2.region
request_vpc_id = module.vpc-us-west-2.vpc_id
accept_region = module.vpc-us-east-1.region
accept_vpc_id = module.vpc-us-east-1.vpc_id
}
module "peering-us-east-to-us-west-accept" {
source = "./pcx-us-east-to-us-west-accept"
pcx_id = module.peering-us-east-to-us-west-init.pcx_id
accept_region = module.vpc-us-east-1.region
}
module "peering-us-east-to-eu-west-init" {
source = "./pcx-us-east-to-eu-west-init"
request_region = module.vpc-eu-west-1.region
request_vpc_id = module.vpc-eu-west-1.vpc_id
accept_region = module.vpc-us-east-1.region
accept_vpc_id = module.vpc-us-east-1.vpc_id
}
module "peering-us-east-to-eu-west-accept" {
source = "./pcx-us-east-to-eu-west-accept"
pcx_id = module.peering-us-east-to-eu-west-init.pcx_id
accept_region = module.vpc-us-east-1.region
}
module "peering-us-west-to-eu-west-init" {
source = "./pcx-us-west-to-eu-west-init"
request_region = module.vpc-eu-west-1.region
request_vpc_id = module.vpc-eu-west-1.vpc_id
accept_region = module.vpc-us-west-2.region
accept_vpc_id = module.vpc-us-west-2.vpc_id
}
module "peering-us-west-to-eu-west-accept" {
source = "./pcx-us-west-to-eu-west-accept"
pcx_id = module.peering-us-west-to-eu-west-init.pcx_id
accept_region = module.vpc-us-west-2.region
}