hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

Error while updating cloudfunction configuration: Error waiting for Updating CloudFunctions Function: Error code 3, message: Build failed: ...5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, esnext │ default: es3 #14456

Closed mrkhoiit closed 1 year ago

mrkhoiit commented 1 year ago

Terraform Version

Terraform v1.4.6

Affected Resource(s)

resource "google_cloudfunctions_function" "firebaseAuth" {
  name                = "firebaseAuth"
  description         = "firebaseAuth"
  runtime             = var.runtime
  available_memory_mb = 256
  max_instances       = 3000

  source_archive_bucket = var.gcp_bucket_name
  source_archive_object = var.gcp_bucket_object.firebase_auth
  # timeout               = 60
  trigger_http = true
  entry_point  = "firebaseAuth"

  environment_variables = {
    GCLOUD_PROJECT             = var.project
    FIREBASE_CONFIG            = var.firebase_config
    GOOGLE_OAUTH_CLIENT_ID     = var.GOOGLE_OAUTH_CLIENT_ID
    GOOGLE_OAUTH_CLIENT_SECRET = var.GOOGLE_OAUTH_CLIENT_SECRET
    GOOGLE_OAUTH_REDIRECT_URL  = var.GOOGLE_OAUTH_REDIRECT_URL
  }

  timeouts {
    create = "10m"
    update = "10m"
    delete = "10m"
  }
}

Last deploy still success. But yesterday and today i deploy allway error. Seem code is run build again because not deploy success. Please help !

edwardmedia commented 1 year ago

@mrkhoiit I have just tested deploying google_cloudfunctions_function and no issue is found. Possible reason for you is that the api was experiencing a difficulty during the time you encountered the failure. If you still see the problem, could you share all the values for the variables and the debug log?

I have never seen below error. Was that from the GCP?

Error code 3, message: Build failed: ...5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, esnext │ default: es3
edwardmedia commented 1 year ago

@mrkhoiit is this still an issue?

mrkhoiit commented 1 year ago

@edwardmedia Thank you so much. This is problem from me. For other user if see this error , now google default run : npm run build in package.json. Because need delete scripts.build

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.