Skip to content

Commit 423b7d9

Browse files
committed
Add depends_on to update CF on code update
1 parent a07eadb commit 423b7d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ resource "google_cloudfunctions_function" "main" {
7070
project = "${var.project_id}"
7171
region = "${var.region}"
7272
service_account_email = "${var.function_service_account_email}"
73+
depends_on = ["google_storage_bucket_object.main"]
7374
}
7475

7576
data "archive_file" "main" {

0 commit comments

Comments
 (0)