Skip to content

GCP Ingestion Fails with RESOURCE_PROJECT_INVALID Error #138

@thiago-scherrer

Description

@thiago-scherrer

Description

Hello!

When trying to ingest GCP pricing data using the terracost CLI, the ingestion process fails with a 400 error indicating an invalid resource project.

Steps to Reproduce

  1. Run the following command:
go run terracost.go -ingest -provider gcp -ingest-region us-central1-c

Current Behavior

The ingestion fails with the following error:

Ingestion gcp
[Compute Engine] Ingestion
unexpected ingester error: googleapi: Error 400: Invalid resource field value in the request.
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "domain": "googleapis.com",
    "metadata": {
      "method": "compute.v1.MachineTypesService.List",
      "service": "compute.googleapis.com"
    },
    "reason": "RESOURCE_PROJECT_INVALID"
  }
]
, invalidParameter
exit status 1```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions