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

make subnetwork region forcenew and update its description #6522

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
3 changes: 3 additions & 0 deletions .changelog/3599.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
compute: fixed issue where trying to update the region of `google_compute_subnetwork` would fail instead of destroying/recreating the subnetwork
```
3 changes: 2 additions & 1 deletion google/resource_compute_subnetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ access Google APIs and services by using Private Google Access.`,
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
DiffSuppressFunc: compareSelfLinkOrResourceName,
Description: `URL of the GCP region for this subnetwork.`,
Description: `The GCP region for this subnetwork.`,
},
"secondary_ip_range": {
Type: schema.TypeList,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/compute_subnetwork.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ The following arguments are supported:

* `region` -
(Optional)
URL of the GCP region for this subnetwork.
The GCP region for this subnetwork.

* `log_config` -
(Optional)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/compute_subnetwork_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ resource "google_compute_subnetwork_iam_member" "member" {
The following arguments are supported:

* `subnetwork` - (Required) Used to find the parent resource to bind the IAM policy to
* `region` - (Optional) URL of the GCP region for this subnetwork.
* `region` - (Optional) The GCP region for this subnetwork.
Used to find the parent resource to bind the IAM policy to. If not specified,
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
region is specified, it is taken from the provider configuration.
Expand Down