From 4f1f860fcaa72c66e407939831ba71000ee33069 Mon Sep 17 00:00:00 2001 From: Maxim Date: Wed, 18 Aug 2021 12:13:53 +0300 Subject: [PATCH] add msk location to s3 storage (#42) --- docs/resources/gcore_storage_s3.md | 2 +- gcore/resource_gcore_storage_s3.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/resources/gcore_storage_s3.md b/docs/resources/gcore_storage_s3.md index 259d858..0bf4a0d 100644 --- a/docs/resources/gcore_storage_s3.md +++ b/docs/resources/gcore_storage_s3.md @@ -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 diff --git a/gcore/resource_gcore_storage_s3.go b/gcore/resource_gcore_storage_s3.go index 584408f..f2cdee3 100644 --- a/gcore/resource_gcore_storage_s3.go +++ b/gcore/resource_gcore_storage_s3.go @@ -61,7 +61,7 @@ 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 @@ -69,7 +69,7 @@ func resourceStorageS3() *schema.Resource { } 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,