https://pulumi.com logo
l

limited-rainbow-51650

01/22/2020, 8:56 AM
The section on
Structured Configuration
shows how to set a secret as part of structured config. But I’m missing what the type should be in my custom TS interface. https://www.pulumi.com/docs/intro/concepts/config/#structured-configuration
m

microscopic-pilot-97530

01/22/2020, 5:17 PM
It would be the underlying type. If you want to treat it as a secret in the Pulumi program code, you'll have to retrieve the whole structure as a secret (
config.requireSecretObject<YourInterface>("yourkey");
)