clever-address-74879
06/06/2022, 12:32 PMvar config = new Pulumi.Config();
var name = config.Require("ConnectionString");
echoing-dinner-19531
06/06/2022, 2:33 PMPulumi.Config
is for values you've set with pulumi config
as part of your stack Pulumi.<stack name>.yaml file. It won't pick up env vars.
Just use the standard System.Environment
class to get env vars set by your CI system.clever-address-74879
06/06/2022, 4:56 PMpulumi.<stack-name>.yml
file is used for non-secret environment specific things?damp-honey-93158
06/06/2022, 7:11 PMworried-city-86458
06/06/2022, 7:19 PMechoing-dinner-19531
06/06/2022, 7:29 PMfor non-secret environment specific things? (edited)As the others said you can put secrets in there (and if you tell pulumi it's a secret with --secret they will be encrypted). But it is it's own data source and has no relation to environment variables.
clever-address-74879
06/07/2022, 3:37 PMechoing-dinner-19531
06/07/2022, 3:39 PMpulumi config
or don't read those secrets from the pulumi config but grab them out of the environment variable that CI put it in.clever-address-74879
06/07/2022, 3:40 PMechoing-dinner-19531
06/07/2022, 3:42 PMpulumi.secret
(https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#secret) soon as you've read it from the environment so that pulumi then treats it as a secretclever-address-74879
06/07/2022, 3:45 PMvictorious-ghost-35676
06/15/2022, 6:50 PM