Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

region NEG moved to TPG #4139

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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