Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PatrickDale/321a68360b28632d19a89144199058f3 to your computer and use it in GitHub Desktop.
Save PatrickDale/321a68360b28632d19a89144199058f3 to your computer and use it in GitHub Desktop.
Self-referential error enabling the Service Usage API
{"@level":"info","@message":"module.some_module[\"my-project\"].google_project_service.prerequisites[\"serviceusage.googleapis.com\"]: Creation errored after 7s","@module":"terraform.ui","@timestamp":"2021-07-01T18:31:29.327889Z","hook":{"resource":{"addr":"module.some_module[\"my-project\"].google_project_service.prerequisites[\"serviceusage.googleapis.com\"]","module":"module.some_module[\"my-project\"]","resource":"google_project_service.prerequisites[\"serviceusage.googleapis.com\"]","implied_provider":"google","resource_type":"google_project_service","resource_name":"prerequisites","resource_key":"serviceusage.googleapis.com"},"action":"create","elapsed_seconds":7},"type":"apply_errored"}
{"@level":"error","@message":"Error: Request \"Enable Project Service \\\"serviceusage.googleapis.com\\\" for project \\\"my-project\\\"\" returned error: Error waiting for Enable Project \"my-project\" Services: [serviceusage.googleapis.com]: error while retrieving operation: googleapi: Error 403: Service Usage API has not been used in project <project-number> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=<project-number> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.\nDetails:\n[\n {\n \"@type\": \"type.googleapis.com/google.rpc.Help\",\n \"links\": [\n {\n \"description\": \"Google developers console API activation\",\n \"url\": \"https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=<project-number>\"\n }\n ]\n },\n {\n \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n \"domain\": \"googleapis.com\",\n \"metadata\": {\n \"consumer\": \"projects/<project-number>\",\n \"service\": \"serviceusage.googleapis.com\"\n },\n \"reason\": \"SERVICE_DISABLED\"\n }\n]","@module":"terraform.ui","@timestamp":"2021-07-01T18:31:31.729540Z","diagnostic":{"severity":"error","summary":"Request \"Enable Project Service \\\"serviceusage.googleapis.com\\\" for project \\\"my-project\\\"\" returned error: Error waiting for Enable Project \"my-project\" Services: [serviceusage.googleapis.com]: error while retrieving operation: googleapi: Error 403: Service Usage API has not been used in project <project-number> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=<project-number> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.\nDetails:\n[\n {\n \"@type\": \"type.googleapis.com/google.rpc.Help\",\n \"links\": [\n {\n \"description\": \"Google developers console API activation\",\n \"url\": \"https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=<project-number>\"\n }\n ]\n },\n {\n \"@type\": \"type.googleapis.com/google.rpc.ErrorInfo\",\n \"domain\": \"googleapis.com\",\n \"metadata\": {\n \"consumer\": \"projects/<project-number>\",\n \"service\": \"serviceusage.googleapis.com\"\n },\n \"reason\": \"SERVICE_DISABLED\"\n }\n]","detail":"","address":"module.some_module[\"my-project\"].google_project_service.prerequisites[\"serviceusage.googleapis.com\"]",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment