Skip to content

Commit 0be2639

Browse files
Fix ApigeeInstance location to be a region instead of a zone in tests (#5872) (#4193)
Co-authored-by: Stephen Lewis (Burrows) <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
1 parent 7099244 commit 0be2639

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

.changelog/5872.txt

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

google-beta/resource_apigee_instance.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ func resourceApigeeInstance() *schema.Resource {
4141

4242
Schema: map[string]*schema.Schema{
4343
"location": {
44-
Type: schema.TypeString,
45-
Required: true,
46-
ForceNew: true,
47-
Description: `Compute Engine location where the instance resides. For trial organization
48-
subscriptions, the location must be a Compute Engine zone. For paid organization
49-
subscriptions, it should correspond to a Compute Engine region.`,
44+
Type: schema.TypeString,
45+
Required: true,
46+
ForceNew: true,
47+
Description: `Required. Compute Engine location where the instance resides.`,
5048
},
5149
"name": {
5250
Type: schema.TypeString,

google-beta/resource_apigee_instance_attachment_generated_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ resource "google_apigee_organization" "apigee_org" {
109109
110110
resource "google_apigee_instance" "apigee_instance" {
111111
name = "tf-test%{random_suffix}"
112-
location = "us-central1-b"
112+
location = "us-central1"
113113
org_id = google_apigee_organization.apigee_org.id
114114
}
115115

google-beta/resource_apigee_instance_generated_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ resource "google_apigee_organization" "apigee_org" {
109109
110110
resource "google_apigee_instance" "apigee_instance" {
111111
name = "tf-test%{random_suffix}"
112-
location = "us-central1-b"
112+
location = "us-central1"
113113
org_id = google_apigee_organization.apigee_org.id
114114
}
115115
`, context)
@@ -450,7 +450,7 @@ resource "google_apigee_instance" "apigee_instance" {
450450
provider = google-beta
451451
452452
name = "tf-test%{random_suffix}"
453-
location = "us-central1-b"
453+
location = "us-central1"
454454
description = "Terraform-managed Apigee Instance"
455455
display_name = "tf-test%{random_suffix}"
456456
org_id = google_apigee_organization.apigee_org.id

website/docs/r/apigee_instance.html.markdown

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ resource "google_apigee_organization" "apigee_org" {
6464
6565
resource "google_apigee_instance" "apigee_instance" {
6666
name = "tf-test%{random_suffix}"
67-
location = "us-central1-b"
67+
location = "us-central1"
6868
org_id = google_apigee_organization.apigee_org.id
6969
}
7070
```
@@ -101,7 +101,7 @@ resource "google_apigee_organization" "apigee_org" {
101101
102102
resource "google_apigee_instance" "apigee_instance" {
103103
name = "tf-test%{random_suffix}"
104-
location = "us-central1-b"
104+
location = "us-central1"
105105
org_id = google_apigee_organization.apigee_org.id
106106
peering_cidr_range = "SLASH_22"
107107
}
@@ -139,7 +139,7 @@ resource "google_apigee_organization" "apigee_org" {
139139
140140
resource "google_apigee_instance" "apigee_instance" {
141141
name = "tf-test%{random_suffix}"
142-
location = "us-central1-b"
142+
location = "us-central1"
143143
org_id = google_apigee_organization.apigee_org.id
144144
ip_range = "10.87.8.0/22"
145145
}
@@ -213,8 +213,8 @@ resource "google_apigee_organization" "apigee_org" {
213213
214214
resource "google_apigee_instance" "apigee_instance" {
215215
name = "tf-test%{random_suffix}"
216-
location = "us-central1-b"
217-
description = "Terraform-managed Apigee Runtime Instance"
216+
location = "us-central1"
217+
description = "Terraform-managed Apigee Runtime Instance"
218218
display_name = "tf-test%{random_suffix}"
219219
org_id = google_apigee_organization.apigee_org.id
220220
disk_encryption_key_name = google_kms_crypto_key.apigee_key.id
@@ -232,9 +232,7 @@ The following arguments are supported:
232232

233233
* `location` -
234234
(Required)
235-
Compute Engine location where the instance resides. For trial organization
236-
subscriptions, the location must be a Compute Engine zone. For paid organization
237-
subscriptions, it should correspond to a Compute Engine region.
235+
Required. Compute Engine location where the instance resides.
238236

239237
* `org_id` -
240238
(Required)

website/docs/r/apigee_instance_attachment.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ resource "google_apigee_organization" "apigee_org" {
9191
9292
resource "google_apigee_instance" "apigee_ins" {
9393
name = "tf-test%{random_suffix}"
94-
location = "us-central1-b"
94+
location = "us-central1"
9595
org_id = google_apigee_organization.apigee_org.id
9696
}
9797

0 commit comments

Comments
 (0)