https://pulumi.com logo
g

great-sunset-355

06/06/2023, 10:57 AM
Hi I am trying to get the image value of cloudrun Job and then pass it as
pulumi.output(..)
however However, despite having set the
application-default
credentials, the client is trying to hit some different project/s and fails to authenticate. can anyone point out what am I doing wrong?
Copy code
const client = new cloudrun.v2.JobsClient({projectId:gcpProjectName});
    const promise = client.getJob({name})
    const currentimg = promise.then(job=>job[0].template?.template?.containers?.at(0)?.image)