https://pulumi.com logo
#typescript
Title
# typescript
b

brave-alarm-22747

11/24/2023, 6:38 PM
Hi friends!! I am running in a "trouble", I uploaded a p12 file of a certificate to secret-manager and I am trying to retrieve the secret to pulumi using the
Copy code
gcp.secretmanager.getSecretVersion({
    secret: "my-secret",
});
function but seems like pulumi or typescript (still cant figure out who can not), is not able to understand the secret as it is a binary and I am getting this
Copy code
<ref *1> Error: invocation of gcp:secretmanager/getSecretVersion:getSecretVersion returned an error: grpc: error while marshaling: string field contains invalid UTF-8
has anybody faced this issue before? is there a workarround?
2 Views