https://pulumi.com logo
#aws
Title
# aws
v

victorious-dusk-75271

08/05/2022, 8:11 PM
is there any multi region vpc example?
s

salmon-account-74572

08/05/2022, 8:13 PM
I don’t have an example handy, but you should be able to do this with different providers configured for each region.
v

victorious-dusk-75271

08/05/2022, 8:14 PM

https://puu.sh/JeKlW/5085584d4e.png

something like this?
I dont know how to do the peering though
s

salmon-account-74572

08/05/2022, 8:17 PM
I do have an example of VPC Peering, but it’s in Golang: https://blog.scottlowe.org/2021/08/26/establishing-vpc-peering-with-pulumi-and-go/
v

victorious-dusk-75271

08/05/2022, 8:17 PM
Thats ok. i know golang. Thank you
s

salmon-account-74572

08/05/2022, 8:18 PM
No problem, happy to help!
v

victorious-dusk-75271

08/05/2022, 8:18 PM
Should i create different project for each region?
s

salmon-account-74572

08/05/2022, 8:21 PM
WRT to VPC peering, I created a single project with a different stack for each pair of VPCs (i.e., one stack for the peering relationship between us-west-2 and us-east-2, one stack for the relationship between us-east-2 and ca-central-1, etc.).
That arrangement seemed to make the most sense to me.
v

victorious-dusk-75271

08/05/2022, 8:22 PM
right thats a good idea
i found this example and i really like it
s

salmon-account-74572

08/05/2022, 11:42 PM
Oh, good find! I hadn’t seen that one. I’ll bookmark it for the next time someone asks about examples of VPC peering. 🙂
👍 1
34 Views