andrewperlas / gcp-resume

Cloud resume challenge hosted on GCP
0 stars 0 forks source link

terraform apply error: IAM Service Account Credentials API not enabled #2

Closed andrewperlas closed 6 months ago

andrewperlas commented 6 months ago
╷
│ Error: Post "https://storage.googleapis.com/storage/v1/b?alt=json&prettyPrint=false&project=psyched-age-416001": oauth2/google: status code 403: {
│   "error": {
│     "code": 403,
│     "message": "IAM Service Account Credentials API has not been used in project 8882729[47](https://github.com/andrewperlas/gcp-resume/actions/runs/8146837579/job/22266215511#step:9:48)23 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/iamcredentials.googleapis.com/overview?project=88827294723 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
│     "status": "PERMISSION_DENIED",
│     "details": [
│       {
│         "@type": "type.googleapis.com/google.rpc.Help",
│         "links": [
│           {
│             "description": "Google developers console API activation",
│             "url": "https://console.developers.google.com/apis/api/iamcredentials.googleapis.com/overview?project=88827294723"
│           }
│         ]
│       },
│       {
│         "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│         "reason": "SERVICE_DISABLED",
│         "domain": "googleapis.com",
│         "metadata": {
│           "service": "iamcredentials.googleapis.com",
│           "consumer": "projects/88827294723"
│         }
│       }
│     ]
│   }
│ }
│ 
│ 
│   with google_storage_bucket.static_website,
│   on main.tf line 10, in resource "google_storage_bucket" "static_website":
│   10: resource "google_storage_bucket" "static_website" {
│ 
╵
Error: Terraform exited with code 1.
Error: Process completed with exit code 1.
andrewperlas commented 6 months ago

Enabled IAM Service Account Credentials API via gcloud on GCP