Skip to content

Commit

Permalink
chore: Fixes example on privatelink_endpoint_service. (#1926)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosuma committed Feb 8, 2024
1 parent f8fb729 commit f0bc981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/mongodbatlas_privatelink_endpoint/gcp/main.tf
Expand Up @@ -52,10 +52,10 @@ resource "mongodbatlas_privatelink_endpoint_service" "test" {
gcp_project_id = var.gcp_project_id

dynamic "endpoints" {
for_each = mongodbatlas_privatelink_endpoint.test.service_attachment_names
for_each = google_compute_address.default

content {
ip_address = google_compute_address.default[endpoints.key].address
ip_address = endpoints.value["address"]
endpoint_name = google_compute_forwarding_rule.default[endpoints.key].name
}
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/privatelink_endpoint_service.html.markdown
Expand Up @@ -132,10 +132,10 @@ resource "mongodbatlas_privatelink_endpoint_service" "test" {
gcp_project_id = var.gcp_project
dynamic "endpoints" {
for_each = mongodbatlas_privatelink_endpoint.test.service_attachment_names
for_each = google_compute_address.default
content {
ip_address = google_compute_address.default[endpoints.key].address
ip_address = endpoints.value["address"]
endpoint_name = google_compute_forwarding_rule.default[endpoints.key].name
}
}
Expand Down

0 comments on commit f0bc981

Please sign in to comment.