From 96332b9b00b32615a4fcce840a1488434409888e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Gergely?= Date: Thu, 1 Aug 2024 09:28:47 +0200 Subject: [PATCH] CDPCP-12211 - mismatch between struct and object: Struct defines fields not found in object: availability_zones --- docs/resources/datahub_aws_cluster.md | 1 + resources/datahub/common_schema.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/resources/datahub_aws_cluster.md b/docs/resources/datahub_aws_cluster.md index f2ce0d2a..ee63eaad 100644 --- a/docs/resources/datahub_aws_cluster.md +++ b/docs/resources/datahub_aws_cluster.md @@ -322,6 +322,7 @@ Required: Optional: +- `availability_zones` (Set of String) The set of availability zones that are going to be used for cluster creation on the given instance group. - `recipes` (Set of String) The set of recipe names that are going to be applied on the given instance group. diff --git a/resources/datahub/common_schema.go b/resources/datahub/common_schema.go index 3a13ed0b..2db4c8d3 100644 --- a/resources/datahub/common_schema.go +++ b/resources/datahub/common_schema.go @@ -160,6 +160,11 @@ var instanceGroupSchemaAttributes = map[string]schema.Attribute{ ElementType: types.StringType, Optional: true, }, + "availability_zones": schema.SetAttribute{ + MarkdownDescription: "The set of availability zones that are going to be used for cluster creation on the given instance group.", + ElementType: types.StringType, + Optional: true, + }, "attached_volume_configuration": schema.ListNestedAttribute{ Required: true, MarkdownDescription: "Configuration regarding the attached volume to the specific instance group.",