https://pulumi.com logo
#general
Title
# general
b

bitter-dentist-28132

01/10/2020, 6:55 PM
is there a way to get a provider's config? e.g. to get a provider's
token
w

white-balloon-205

01/10/2020, 7:08 PM
You can reference
<http://aws.config.xxx|aws.config.xxx>
for configuration inputs - but if you need specific derived outputs of the configuration, you may need to use thing like
aws.getCallerIdentity
(there are other similar things on other platforms depending on exactly what you need).
b

bitter-dentist-28132

01/10/2020, 7:29 PM
i want to get the digitalocean spaces (s3) secret key so i can generate a presigned url. does that mean i could do something like
digitalocean.config.spacesSecretKey
(per https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/digitalocean/config/#spacesSecretKey) ?
g

gentle-diamond-70147

01/10/2020, 9:05 PM
@bitter-dentist-28132 yep, I believe that's what you want.