You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google/services/memorystore/resource_memorystore_instance.go
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -908,9 +908,9 @@ DELETING`,
908
908
"desired_psc_auto_connections": {
909
909
Type: schema.TypeList,
910
910
Optional: true,
911
-
Deprecated: "`desired_psc_auto_connections` is deprecatedUse `desired_auto_created_endpoints` instead.",
911
+
Deprecated: "`desired_psc_auto_connections` is deprecated. Use `desired_auto_created_endpoints` instead. `terraform import` will only work with desired_auto_created_endpoints`.",
912
912
ForceNew: true,
913
-
Description: `'desired_psc_auto_connections' is deprecated Use 'desired_auto_created_endpoints' instead.`,
913
+
Description: `'desired_psc_auto_connections' is deprecated Use 'desired_auto_created_endpoints' instead 'terraform import' will only work with desired_auto_created_endpoints'.`,
914
914
Elem: &schema.Resource{
915
915
Schema: map[string]*schema.Schema{
916
916
"network": {
@@ -3371,10 +3371,28 @@ func resourceMemorystoreInstanceDecoder(d *schema.ResourceData, meta interface{}
3371
3371
}
3372
3372
}
3373
3373
}
3374
+
// We want to make these fields detect API-side drift, so if the API returns a value for them and they're set in config, we set them in state.
3375
+
// On import, we only set `desired_auto_created_endpoints` because that's the non-deprecated field.
Copy file name to clipboardExpand all lines: website/docs/r/memorystore_instance.html.markdown
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -501,7 +501,7 @@ The following arguments are supported:
501
501
*`project` - (Optional) The ID of the project in which the resource belongs.
502
502
If it is not provided, the provider project is used.
503
503
504
-
*`desired_psc_auto_connections` - (Optional) `desired_psc_auto_connections` is deprecated Use `desired_auto_created_endpoints` instead.
504
+
*`desired_psc_auto_connections` - (Optional) `desired_psc_auto_connections` is deprecated Use `desired_auto_created_endpoints` instead`terraform import` will only work with desired_auto_created_endpoints`.
505
505
*`desired_auto_created_endpoints` - (Optional) Immutable. User inputs for the auto-created endpoints connections.
0 commit comments