Skip to content

Commit b06c600

Browse files
Fix TestAccApigeeEndpointAttachment_apigeeEndpointAttachmentBasicTestExample (#12793) (#20957)
[upstream:69ff67650bd6216d74809baa51d20e6264f55c23] Signed-off-by: Modular Magician <[email protected]>
1 parent 9f7d85b commit b06c600

File tree

3 files changed

+5
-56
lines changed

3 files changed

+5
-56
lines changed

.changelog/12793.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/services/apigee/resource_apigee_endpoint_attachment_generated_test.go renamed to google/services/apigee/resource_apigee_endpoint_attachment_test.go

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
3-
4-
// ----------------------------------------------------------------------------
5-
//
6-
// *** AUTO GENERATED CODE *** Type: MMv1 ***
7-
//
8-
// ----------------------------------------------------------------------------
9-
//
10-
// This file is automatically generated by Magic Modules and manual
11-
// changes will be clobbered when the file is regenerated.
12-
//
13-
// Please read more about how to change this file in
14-
// .github/CONTRIBUTING.md.
15-
//
16-
// ----------------------------------------------------------------------------
17-
183
package apigee_test
194

205
import (
@@ -177,7 +162,7 @@ resource "google_compute_subnetwork" "psc_ilb_producer_subnetwork" {
177162
region = "us-west2"
178163
179164
network = google_compute_network.psc_ilb_network.id
180-
ip_cidr_range = "10.0.0.0/16"
165+
ip_cidr_range = "10.0.1.0/24"
181166
182167
project = google_project.project.project_id
183168
}
@@ -188,7 +173,7 @@ resource "google_compute_subnetwork" "psc_ilb_nat" {
188173
189174
network = google_compute_network.psc_ilb_network.id
190175
purpose = "PRIVATE_SERVICE_CONNECT"
191-
ip_cidr_range = "10.1.0.0/16"
176+
ip_cidr_range = "10.0.1.0/24"
192177
193178
project = google_project.project.project_id
194179
}

website/docs/r/apigee_endpoint_attachment.html.markdown

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -28,45 +28,6 @@ To get more information about EndpointAttachment, see:
2828
* How-to Guides
2929
* [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
3030

31-
## Example Usage - Apigee Endpoint Attachment Basic
32-
33-
34-
```hcl
35-
data "google_client_config" "current" {}
36-
37-
resource "google_compute_network" "apigee_network" {
38-
name = "apigee-network"
39-
}
40-
41-
resource "google_compute_global_address" "apigee_range" {
42-
name = "apigee-range"
43-
purpose = "VPC_PEERING"
44-
address_type = "INTERNAL"
45-
prefix_length = 16
46-
network = google_compute_network.apigee_network.id
47-
}
48-
49-
resource "google_service_networking_connection" "apigee_vpc_connection" {
50-
network = google_compute_network.apigee_network.id
51-
service = "servicenetworking.googleapis.com"
52-
reserved_peering_ranges = [google_compute_global_address.apigee_range.name]
53-
}
54-
55-
resource "google_apigee_organization" "apigee_org" {
56-
analytics_region = "us-central1"
57-
project_id = data.google_client_config.current.project
58-
authorized_network = google_compute_network.apigee_network.id
59-
depends_on = [google_service_networking_connection.apigee_vpc_connection]
60-
}
61-
62-
resource "google_apigee_endpoint_attachment" "apigee_endpoint_attachment" {
63-
org_id = google_apigee_organization.apigee_org.id
64-
endpoint_attachment_id = "test1"
65-
location = "{google_compute_service_attachment location}"
66-
service_attachment = "{google_compute_service_attachment id}"
67-
}
68-
```
69-
7031
## Argument Reference
7132

7233
The following arguments are supported:

0 commit comments

Comments
 (0)