Anyone have a strategy to get the region a `pulumi...
# aws
m
Anyone have a strategy to get the region a
pulumi.ComponentResource
is currently deploying in? The best I can come up with is something like this:
Copy code
const provider = this.getProvider('aws::') as any;
      (provider.region as pulumi.Output<string>).apply(console.log);
However
getProvider('aws::')
does not seem to work when the resource is just using the default provider. I mentioned this here as well: https://github.com/pulumi/pulumi/issues/2246