This message was deleted.
# google-cloud
s
This message was deleted.
f
does this only provide the key to encrypt the secrets and the secrets are/should be still kept by pulumi?
g
You are using Pulumi Config, which reads from the stack config file
f
great, thanks!
@green-school-95910 is there perhaps somewhere an example how this is used in C#
What I mean - is there a way to read existing secrets in GCP from Pulumi? All I see is ways to create a new secret..
g
I don't think there is an example of this particular resource on any oss repo. But at the lower in the page there is the
getSecretVersion
function, which gets a secret that already exists.
f
finally got it to work with
Copy code
Value = Output.Create(Pulumi.Gcp.SecretManager.GetSecretVersion.InvokeAsync(new Pulumi.Gcp.SecretManager.GetSecretVersionArgs
                                   {
                                       Secret = "projects/<some_id>/secrets/<secret_name>"
                                   })).Apply(x => x.SecretData)
g
Oh, right.... I should have asked which language you are using and pointed to the specific docs
Sorry about that