How does `aws.Provider` have a `region` output, bu...
# typescript
w
How does
aws.Provider
have a
region
output, but TS throws:
Copy code
2339: Property 'region' does not exist on type 'Provider'.
a
Looking at
@pulumi/aws/provider.d.ts
, the aws.Provider class doesn't expose any of its values as properties. It does register its inputs/outputs in the checkpoint file, which is why region appears there (region is defined in the ProviderArgs interface for input). Unfortunately, in order to actually access these values from external TS code, they would need to be declared in the class. Depending on what you are trying to do, I believe
aws.config.region
can give you the region that is being used.