Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
pyjwt==1.7.1
Werkzeug==2.2.2