sparse-intern-71089
08/14/2020, 2:40 PMhundreds-musician-51496
08/14/2020, 4:58 PMprovider
to create the resource in that region. Here is an example of creating a us-east-1 provider in TypeScript:
const useast1 = await (async () => {
const provider = new aws.Provider("useast1", { region: "us-east-1"})
await ProviderResource.register(provider)
return provider
})()
little-cartoon-10569
08/14/2020, 10:14 PMconst usEast1 = new aws.Provider("useast1", { region: "us-east-1"});
const vpc = new awsx.ec2.Vpc("vpcInUsEast1", { /* ... */ }, { [provider: usEast1});
Is this the wrong thing to do? What am I missing out on by not using ProviderResource.register
?hundreds-musician-51496
08/15/2020, 3:57 PM