Skip to content

Commit

Permalink
fixes: permadiff issue if event trigger region is not specified (#9989)
Browse files Browse the repository at this point in the history
* fixes: permadiff issue if event trigger region is not specified

- fixes hashicorp/terraform-provider-google#17161

* chore: Updated cloudfunction2 test with no explicit trigger_region
  • Loading branch information
kumadee authored Feb 20, 2024
1 parent a9f2961 commit 02e7199
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions mmv1/products/cloudfunctions2/Function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ properties:
events originating in this region. It can be the same
region as the function, a different region or multi-region, or the global
region. If not provided, defaults to the same region as the function.
default_from_api: true
- !ruby/object:Api::Type::String
name: 'eventType'
description: 'Required. The type of event to observe.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ resource "google_cloudfunctions2_function" "<%= ctx[:primary_resource_id] %>" {
}

event_trigger {
trigger_region = "us-central1" # The trigger must be in the same location as the bucket
event_type = "google.cloud.storage.object.v1.finalized"
retry_policy = "RETRY_POLICY_RETRY"
service_account_email = google_service_account.account.email
Expand Down

0 comments on commit 02e7199

Please sign in to comment.