Skip to content

Commit

Permalink
region NEG moved to TPG (#4139)
Browse files Browse the repository at this point in the history
  • Loading branch information
venkykuberan authored Oct 23, 2020
1 parent 120b651 commit bf7b9d4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7743,7 +7743,6 @@ objects:
kind: 'compute#networkEndpointGroup'
base_url: 'projects/{{project}}/regions/{{region}}/networkEndpointGroups'
input: true
min_version: beta
has_self_link: true
collection_url_key: 'items'
references: !ruby/object:Api::Resource::ReferenceLinks
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// App Engine Example
resource "google_compute_region_network_endpoint_group" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['neg_name'] %>"
network_endpoint_type = "SERVERLESS"
region = "us-central1"
Expand All @@ -11,7 +10,6 @@ resource "google_compute_region_network_endpoint_group" "<%= ctx[:primary_resour
}

resource "google_app_engine_flexible_app_version" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
version_id = "v1"
service = "default"
runtime = "nodejs"
Expand Down Expand Up @@ -61,12 +59,10 @@ resource "google_app_engine_flexible_app_version" "<%= ctx[:primary_resource_id]
}

resource "google_storage_bucket" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['neg_name'] %>"
}

resource "google_storage_bucket_object" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "hello-world.zip"
bucket = google_storage_bucket.<%= ctx[:primary_resource_id] %>.name
source = "./test-fixtures/appengine/hello-world.zip"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Cloud Run Example
resource "google_compute_region_network_endpoint_group" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['neg_name'] %>"
network_endpoint_type = "SERVERLESS"
region = "us-central1"
Expand All @@ -10,7 +9,6 @@ resource "google_compute_region_network_endpoint_group" "<%= ctx[:primary_resour
}

resource "google_cloud_run_service" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['neg_name'] %>"
location = "us-central1"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Cloud Functions Example
resource "google_compute_region_network_endpoint_group" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['neg_name'] %>"
network_endpoint_type = "SERVERLESS"
region = "us-central1"
Expand All @@ -10,7 +9,6 @@ resource "google_compute_region_network_endpoint_group" "<%= ctx[:primary_resour
}

resource "google_cloudfunctions_function" "<%= ctx[:primary_resource_id] %>" {
provider = google-beta
name = "<%= ctx[:vars]['neg_name'] %>"
description = "My function"
runtime = "nodejs10"
Expand All @@ -24,12 +22,10 @@ resource "google_cloudfunctions_function" "<%= ctx[:primary_resource_id] %>" {
}

resource "google_storage_bucket" "bucket" {
provider = google-beta
name = "<%= ctx[:vars]['bucket_name'] %>"
}

resource "google_storage_bucket_object" "archive" {
provider = google-beta
name = "index.zip"
bucket = google_storage_bucket.bucket.name
source = "<%= ctx[:vars]['zip_path'] %>"
Expand Down

0 comments on commit bf7b9d4

Please sign in to comment.