fierce-memory-34976
09/23/2020, 10:25 AMpulumi stack init dev --secrets-provider="gcpkms://<redacted>"
and in my code I have:
var config = new Config();
and later in code in an env var definition:
Value = config.RequireSecret("dev-db-connection-string")
and when i try pulumi up i still get:
Missing Required configuration variable 'projectName:dev-db-connection-string'
`please set a value using the command `pulumi config set projectName:dev-db-connection-string <value>``
the secret in GCP is called obviously dev-db-connection-string
what am I missing?green-school-95910
09/23/2020, 11:39 AMfierce-memory-34976
09/23/2020, 11:46 AMgreen-school-95910
09/23/2020, 1:31 PMgetSecretVersion
function, which gets a secret that already exists.fierce-memory-34976
09/24/2020, 12:02 PMValue = Output.Create(Pulumi.Gcp.SecretManager.GetSecretVersion.InvokeAsync(new Pulumi.Gcp.SecretManager.GetSecretVersionArgs
{
Secret = "projects/<some_id>/secrets/<secret_name>"
})).Apply(x => x.SecretData)
green-school-95910
09/24/2020, 1:52 PM