Skip to content

Commit

Permalink
fix: using 2nd gen cloud function
Browse files Browse the repository at this point in the history
  • Loading branch information
cka-y committed Aug 28, 2023
1 parent 870bba9 commit 80d59f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions infra/batch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ resource "google_storage_bucket_object" "object" {
}
}

resource "google_cloudfunctions_function" "function" {
name = "dataset-batch-function" # TODO this should be a variable
resource "google_cloudfunctions2_function" "function" {

name = "dataset-batch-function-v2" # TODO this should be a variable
description = "Python function"
runtime = "python310" # TODO this should be a variable

Expand Down

0 comments on commit 80d59f2

Please sign in to comment.