Got RESOURCE_ERROR with stock "hello world" node.js example on Google cloud

Any idea?
Deployment failed: RESOURCE_ERROR

 {"ResourceType":"cloudfunctions.v1beta2.function","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"The request has errors","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"field":"region","description":"region us-east-1 is not supported."}]}],"statusMessage":"Bad Request","requestPath":"https://cloudfunctions.googleapis.com/v1beta2/projects/xrp2-sls-test1/locations/us-east-1/functions","httpMethod":"POST"}}

Never mind, I figured out.

How did you solve for this?

1 Like

this worked for me.

provider:
  name: google
  region: asia-northeast1