Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
add msk location to s3 storage (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubinmi authored Aug 18, 2021
1 parent e225f6c commit 4f1f860
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/resources/gcore_storage_s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "gcore_storage_s3" "example_s3" {

### Required

- **location** (String) A location of new storage resource. One of (s-ed1, s-darz1, s-ws1)
- **location** (String) A location of new storage resource. One of (s-ed1, s-darz1, s-ws1, s-dt2)
- **name** (String) A name of new storage resource.

### Optional
Expand Down
4 changes: 2 additions & 2 deletions gcore/resource_gcore_storage_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ func resourceStorageS3() *schema.Resource {
ForceNew: true,
ValidateDiagFunc: func(v interface{}, path cty.Path) diag.Diagnostics {
val := v.(string)
allowed := []string{"s-ed1", "s-darz1", "s-ws1"}
allowed := []string{"s-ed1", "s-darz1", "s-ws1", "s-dt2"}
for _, el := range allowed {
if el == val {
return nil
}
}
return diag.Errorf(`must be one of %+v`, allowed)
},
Description: "A location of new storage resource. One of (s-ed1, s-darz1, s-ws1)",
Description: "A location of new storage resource. One of (s-ed1, s-darz1, s-ws1, s-dt2)",
},
StorageS3SchemaGenerateAccessKey: {
Type: schema.TypeString,
Expand Down

0 comments on commit 4f1f860

Please sign in to comment.