diff --git a/main.tf b/main.tf index 4c2adb3..08f26da 100644 --- a/main.tf +++ b/main.tf @@ -568,7 +568,7 @@ resource "google_storage_bucket_object" "zip" { # Create the Cloud function triggered by a `Finalize` event on the bucket resource "google_cloudfunctions_function" "backend-function" { name = "backend-function" - runtime = "python37" + runtime = "python39" source_archive_bucket = google_storage_bucket.function_bucket.name source_archive_object = google_storage_bucket_object.zip.name @@ -700,7 +700,7 @@ resource "google_storage_bucket_object" "object" { # Create Cloud Function resource "google_cloudfunctions_function" "function" { name = "blogapp-${random_id.bucket_prefix.hex}" - runtime = "nodejs12" # Switch to a different runtime if needed + runtime = "nodejs20" # Switch to a different runtime if needed project = google_project.my_project.project_id available_memory_mb = 128 source_archive_bucket = google_storage_bucket.bucket.name diff --git a/modules/module-1/resources/cloud_function/data/requirements.txt b/modules/module-1/resources/cloud_function/data/requirements.txt index fd75531..8d7c8a1 100644 --- a/modules/module-1/resources/cloud_function/data/requirements.txt +++ b/modules/module-1/resources/cloud_function/data/requirements.txt @@ -2,4 +2,5 @@ google-cloud-storage==2.6.0 google-cloud-firestore==2.7.2 flask==2.2.2 bcrypt==4.0.1 -pyjwt==1.7.1 \ No newline at end of file +pyjwt==1.7.1 +Werkzeug==2.2.2