Hi, I'm setting up pulumi in github actions workfl...
# getting-started
b
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": "pulumi@poc.iam.gserviceaccount.com", "client_id": "116580898...632877949", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/pulumi%40poc.iam.gserviceaccount.com"}' --secret I get: error: accepts between 1 and 2 arg(s), received 6 Am I headed in the right direction? Any help is appreciated.
b
You can use a pipe to resolve this cat credentials.json | pulumi config set gcp:credentials -