Skip to content

Commit f2df0c1

Browse files
feat: (storage) remove validation of max 2 items for data_locations in custom_placement_config field (#13261) (#21878)
[upstream:5636bb88f36bad52ba88a1c0dcf57a5070a8b526] Signed-off-by: Modular Magician <[email protected]>
1 parent fd2192f commit f2df0c1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changelog/13261.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
storage: lowered the minimum required items for `custom_placement_config.data_locations` from 2 to 1, and removed the Terraform-enforced maximum item limit for the field in `google_storage_bucket`
3+
```

google/services/storage/resource_storage_bucket.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func ResourceStorageBucket() *schema.Resource {
135135
StateFunc: func(s interface{}) string {
136136
return strings.ToUpper(s.(string))
137137
},
138-
Description: `The Google Cloud Storage location`,
138+
Description: `The Google Cloud Storage location or region.`,
139139
},
140140

141141
"project": {
@@ -503,8 +503,7 @@ func ResourceStorageBucket() *schema.Resource {
503503
Type: schema.TypeSet,
504504
Required: true,
505505
ForceNew: true,
506-
MaxItems: 2,
507-
MinItems: 2,
506+
MinItems: 1,
508507
Elem: &schema.Schema{
509508
Type: schema.TypeString,
510509
StateFunc: func(s interface{}) string {

0 commit comments

Comments
 (0)