Skip to content

Commit

Permalink
Allow sending empty app_engine and serverless google_compute_region_n…
Browse files Browse the repository at this point in the history
…etwork_endpoint_group (GoogleCloudPlatform#10031)
  • Loading branch information
Cheriit authored and balanaguharsha committed Apr 19, 2024
1 parent 1dd7261 commit 33d6933
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mmv1/products/compute/RegionNetworkEndpointGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ examples:
primary_resource_id: 'appengine_neg'
vars:
neg_name: 'appengine-neg'
- !ruby/object:Provider::Terraform::Examples
name: 'region_network_endpoint_group_appengine_empty'
primary_resource_id: 'appengine_neg'
vars:
neg_name: 'appengine-neg'
- !ruby/object:Provider::Terraform::Examples
name: 'region_network_endpoint_group_psc'
primary_resource_id: 'psc_neg'
Expand Down Expand Up @@ -209,6 +214,7 @@ properties:
- cloud_function
- serverless_deployment
allow_empty_object: true
send_empty_value: true
description: |
This field is only used for SERVERLESS NEGs.
Expand Down Expand Up @@ -278,6 +284,7 @@ properties:
- cloud_function
- app_engine
allow_empty_object: true
send_empty_value: true
description: |
This field is only used for SERVERLESS NEGs.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// App Engine Example
resource "google_compute_region_network_endpoint_group" "<%= ctx[:primary_resource_id] %>" {
name = "<%= ctx[:vars]['neg_name'] %>"
network_endpoint_type = "SERVERLESS"
region = "us-central1"
app_engine {
}
}

0 comments on commit 33d6933

Please sign in to comment.