worried-xylophone-86184
09/13/2022, 8:42 AMpulumi config set --path --secret endpoints[0].token accesstokenvalue
Now, if we wish to access this secret within the Pulumi script, I am not certain if we can access it directly like the usual way mentioned in the docs:
import pulumi
config = pulumi.Config()
print(config.require_secret('dbPassword'))
victorious-dusk-75271
09/13/2022, 10:15 AMconfig.require_secret('endpoints').apply(a => a[0].token)