Skip to content

A few error on terraform apply

Hi mate, could you pls help to handle these errors? :)

Error: Error creating Network: googleapi: Error 403: Required 'compute.networks.create' permission for 'projects/spark-workflow-automation-k8s/global/networks/composer-network-project', forbidden

  on composer.tf line 23, in resource "google_compute_network" "network":
  23: resource "google_compute_network" "network" {



Error: Kubernetes cluster unreachable: error loading config file "./config_runner": couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }

  on helm.tf line 7, in resource "helm_release" "runner":
   7: resource "helm_release" "runner" {



Error: Kubernetes cluster unreachable: error loading config file "./config_runner": couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }

  on helm.tf line 14, in resource "helm_release" "runner_spark":
  14: resource "helm_release" "runner_spark" {



Error: Request "Create IAM Members roles/container.admin yes for \"project \\\"spark-workflow-automation-k8s\\\"\"" returned error: Batch request and retried single request "Create IAM Members roles/container.admin yes for \"project \\\"spark-workflow-automation-k8s\\\"\"" both failed. Final error: Error retrieving IAM policy for project "spark-workflow-automation-k8s": googleapi: Error 403: Cloud Resource Manager API has not been used in project 421387816394 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=421387816394 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured

  on iam.tf line 5, in resource "google_project_iam_member" "dataproc_admin_gke_iam":
   5: resource "google_project_iam_member" "dataproc_admin_gke_iam" {



Error: Request "Create IAM Members roles/dataproc.admin yes for \"project \\\"spark-workflow-automation-k8s\\\"\"" returned error: Batch request and retried single request "Create IAM Members roles/dataproc.admin yes for \"project \\\"spark-workflow-automation-k8s\\\"\"" both failed. Final error: Error retrieving IAM policy for project "spark-workflow-automation-k8s": googleapi: Error 403: Cloud Resource Manager API has not been used in project 421387816394 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=421387816394 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured

  on iam.tf line 10, in resource "google_project_iam_member" "dataproc_admin_dataproc_iam":
  10: resource "google_project_iam_member" "dataproc_admin_dataproc_iam" {



Error: Request "Create IAM Members roles/storage.admin yes for \"project \\\"spark-workflow-automation-k8s\\\"\"" returned error: Batch request and retried single request "Create IAM Members roles/storage.admin yes for \"project \\\"spark-workflow-automation-k8s\\\"\"" both failed. Final error: Error retrieving IAM policy for project "spark-workflow-automation-k8s": googleapi: Error 403: Cloud Resource Manager API has not been used in project 421387816394 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=421387816394 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured

  on iam.tf line 15, in resource "google_project_iam_member" "dataproc_admin_storage_iam":
  15: resource "google_project_iam_member" "dataproc_admin_storage_iam" {



Error: Error when reading or editing Project Service : Request "List Project Services spark-workflow-automation-k8s" returned error: Batch request and retried single request "List Project Services spark-workflow-automation-k8s" both failed. Final error: Failed to list enabled services for project spark-workflow-automation-k8s: googleapi: Error 403: The caller does not have permission, forbidden

  on spark_git_k8s.tf line 60, in resource "google_project_service" "composer_api":
  60: resource "google_project_service" "composer_api" {



Error: Error when reading or editing Project Service : Request "List Project Services spark-workflow-automation-k8s" returned error: Batch request and retried single request "List Project Services spark-workflow-automation-k8s" both failed. Final error: Failed to list enabled services for project spark-workflow-automation-k8s: googleapi: Error 403: The caller does not have permission, forbidden

  on spark_git_k8s.tf line 65, in resource "google_project_service" "compute_api":
  65: resource "google_project_service" "compute_api" {



Error: Error when reading or editing Project Service : Request "List Project Services spark-workflow-automation-k8s" returned error: Batch request and retried single request "List Project Services spark-workflow-automation-k8s" both failed. Final error: Failed to list enabled services for project spark-workflow-automation-k8s: googleapi: Error 403: The caller does not have permission, forbidden

  on spark_git_k8s.tf line 70, in resource "google_project_service" "dataproc_api":
  70: resource "google_project_service" "dataproc_api" {



Error: Error when reading or editing Project Service : Request "List Project Services spark-workflow-automation-k8s" returned error: Batch request and retried single request "List Project Services spark-workflow-automation-k8s" both failed. Final error: Failed to list enabled services for project spark-workflow-automation-k8s: googleapi: Error 403: The caller does not have permission, forbidden

  on spark_git_k8s.tf line 75, in resource "google_project_service" "kubernetes_api":
  75: resource "google_project_service" "kubernetes_api" {



Error: googleapi: Error 403: terraform-admin-sa@central-bulwark-288200.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project., forbidden

  on spark_git_k8s.tf line 82, in resource "google_storage_bucket" "input_bucket":
  82: resource "google_storage_bucket" "input_bucket" {



Error: googleapi: Error 403: terraform-admin-sa@central-bulwark-288200.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project., forbidden

  on spark_git_k8s.tf line 87, in resource "google_storage_bucket" "output_bucket":
  87: resource "google_storage_bucket" "output_bucket" {



Error: googleapi: Error 403: terraform-admin-sa@central-bulwark-288200.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project., forbidden

  on spark_git_k8s.tf line 92, in resource "google_storage_bucket" "archive_bucket":
  92: resource "google_storage_bucket" "archive_bucket" {



Error: googleapi: Error 403: terraform-admin-sa@central-bulwark-288200.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project., forbidden

  on spark_git_k8s.tf line 97, in resource "google_storage_bucket" "dataproc_bucket":
  97: resource "google_storage_bucket" "dataproc_bucket" {