02/24/2023, 3:21 AM
Hi, I'm setting up pulumi in github actions workflow deploying into gcp and I'm getting: error: failed to load application credentials. pulumi up works fine locally using a gcp credential.json file. i.e. pulumi config set gcp:credentials "~/poc-88ee30ae551c.json" However, this stores the local path which obviously won't work in the action. What I'd like to do is store the contents of the credentials.json file in the pulumi config. But I can't get this to work with a command like this: pulumi config set gcp:credentials '{ "type": "service_account", "project_id": "poc", "private_key_id": "88ee30ae5...ccaa0c565", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIB...KHsvMXd\n-----END PRIVATE KEY-----\n", "client_email": "", "client_id": "116580898...632877949", "auth_uri": "", "token_uri": "", "auth_provider_x509_cert_url": "", "client_x509_cert_url": ""}' --secret I get: error: accepts between 1 and 2 arg(s), received 6 Am I headed in the right direction? Any help is appreciated.


02/24/2023, 5:05 AM
You can use a pipe to resolve this cat credentials.json | pulumi config set gcp:credentials -