Skip to content

Commit f7fd40c

Browse files
committed
Testing gcp
1 parent 69075bc commit f7fd40c

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

  • examples
    • cloud_function2_gcs_source
    • cloud_function2_pubsub_trigger

examples/cloud_function2_gcs_source/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ resource "google_storage_bucket_object" "function-source" {
2828
}
2929

3030
module "cloud_functions2" {
31-
source = "../../"
31+
source = "GoogleCloudPlatform/cloud-functions/google"
32+
version = "~> 0.7"
3233

3334
project_id = var.project_id
3435
function_name = "function2-gcs-source-py"
35-
location = var.location
36+
function_location = var.location
3637
runtime = "python310"
3738
entrypoint = "hello_http"
3839
storage_source = {

examples/cloud_function2_pubsub_trigger/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ module "pubsub" {
3636
}
3737

3838
module "cloud_functions2" {
39-
source = "../../"
39+
source = "GoogleCloudPlatform/cloud-functions/google"
40+
version = "~> 0.7"
4041

4142
project_id = var.project_id
4243
function_name = "function2-pubsub-trigger-py"
43-
location = var.location
44+
function_location = var.location
4445
runtime = "python310"
4546
entrypoint = "hello_http"
4647
storage_source = {

0 commit comments

Comments
 (0)