Thread
#gcp
    g

    great-sunset-355

    1 month ago
    Hi I keep getting 404 after
    pulumi up
    with google native while trying to deploy Cloud Run Job
    import * as gcp from "@pulumi/google-native"
    
    const region = "europe-west3"  // Frankfurt, Germany
    const project = "my-gcp-project"
    const appName = "my-app"
    
    const provider = new gcp.Provider(
      "jan-provider",
      {
        project: project, 
        region: region, 
      }
    )
    
    const reg = new gcp.artifactregistry.v1.Repository(
      "repo",
      {
        description: "Hello repo world",
        format: "DOCKER",
        repositoryId: "rid"
      },
      {provider}
    )
    
    const job = new gcp.run.v2.Job(
      "job",
      {
        jobId: 'myjob',
        template: {
          taskCount: 1,
          template: {
            maxRetries: 0,
            timeout: "600s",
            containers: [
              {
                image: `${region}-docker.pkg.dev/${project}/rid/${appName}:1-amd64`,
              }
            ]
          }
        },
      },
      {provider}
    )
    Can anyone tell me what am I doing wrong?
    error: error sending request: googleapi: Error 404: Requested entity was not found.:
     "<https://run.googleapis.com/v2/projects/my-gcp-project/locations/europe-west3/jobs?jobId=myjob>"
      map[__autonamed:true jobId:myjob location:europe-west3 name:projects/my-gcp-project/locations/europe-west3/jobs/job-255417b
      project:my-gcp-project template:map[taskCount:1 template:map[containers:[map[image:europe-west3-docker.pkg.dev/my-gcp-project/rid/my-app:1-amd64]] maxRetries:0 timeout:600s]]]
    b

    billowy-army-68599

    1 month ago
    projects/my-gcp-project/
    Does a project called
    my-gcp-project
    exist?
    g

    great-sunset-355

    1 month ago
    yes it does, I created an issue in the native provider and it got accepted.