cold-coat-35200
11/27/2018, 12:56 PMproviders = {
aws.eu_central_1 = "aws"
aws.eu_west_1 = "aws.eu-west-1"
}
where "aws" means the default aws providerwhite-balloon-205
aws.Provider.default
or aws.defaultProvider
.
In the meantime, it looks like this is a way you can get to it if you really need it (a little roundabout):
import * as aws from "@pulumi/aws";
import * as pulumi from "@pulumi/pulumi";
class Foo extends pulumi.ComponentResource {
provider?: pulumi.ProviderResource;
constructor(name: string) {
super("default:provider", name);
this.provider = this.getProvider("aws");
}
}
let foo = new Foo("foo");
export let callerIdentity = aws.getCallerIdentity({ provider: foo.provider });
cold-coat-35200
11/27/2018, 1:49 PM