Skip to content

Commit

Permalink
Update compute_global_network_endpoint.html.markdown (#6827)
Browse files Browse the repository at this point in the history
make the example more practical
  • Loading branch information
hyww authored Jul 23, 2020
1 parent 4a12005 commit d81af62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/r/compute_global_network_endpoint.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ To get more information about GlobalNetworkEndpoint, see:

```hcl
resource "google_compute_global_network_endpoint" "default-endpoint" {
global_network_endpoint_group = google_compute_network_endpoint_group.neg.name
global_network_endpoint_group = google_compute_global_network_endpoint_group.neg.name
fqdn = "www.example.com"
port = google_compute_network_endpoint_group.neg.default_port
port = google_compute_global_network_endpoint_group.neg.default_port
ip_address = google_compute_instance.endpoint-instance.network_interface[0].network_ip
}
resource "google_compute_global_network_endpoint_group" "group" {
resource "google_compute_global_network_endpoint_group" "neg" {
name = "my-lb-neg"
network = google_compute_network.default.id
default_port = "90"
network_endpoint_type = "INTERNET_IP_PORT"
}
resource "google_compute_network" "default" {
Expand Down

0 comments on commit d81af62

Please sign in to comment.