https://pulumi.com logo
r

red-football-97286

12/10/2019, 11:38 AM
Hi, is there a way with python and aws, to create two vpc's in different regions? Or do I need to create separate stacks to do this?
b

broad-dog-22463

12/10/2019, 11:41 AM
Hi @red-football-97286, you can create different providers within the code that have different regions assigned
and then attach that provider to a resource using CustomResourceOptions
let me see if I can find an example for you
r

red-football-97286

12/10/2019, 11:42 AM
OK, thank you Paul. I'll take a look at the documentation 👍
b

broad-dog-22463

12/10/2019, 11:45 AM
In an Azure example, we do this
notice how we declare a provider (in your case it would be an AWS provider) and then we pass the provider to the resource as opts
r

red-football-97286

12/10/2019, 11:51 AM
Thank you, this is really helpful, Paul.
Hi @broad-dog-22463, thank you for your help, manage to get it all working.
b

broad-dog-22463

12/10/2019, 1:44 PM
great news!!
r

red-football-97286

12/10/2019, 8:17 PM
👍