diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e33407f4..7c997dd30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ nav_order: 1 - Fix `aiven_kafka_schema` JSON object diff suppress function - Add new user config generator - Use `TypeSet` for `ip_filter`, `ip_filter_string` fields - +- Fix `aiven_organization_user_group` resource - `description` field is required ## [4.13.3] - 2024-01-29 diff --git a/docs/resources/organization_user_group.md b/docs/resources/organization_user_group.md index fb731add2..4d0518524 100644 --- a/docs/resources/organization_user_group.md +++ b/docs/resources/organization_user_group.md @@ -17,11 +17,11 @@ Creates and manages a user group in an organization. ### Required +- `description` (String) The description of the user group. This property cannot be changed, doing so forces recreation of the resource. - `organization_id` (String) The ID of the organization. This property cannot be changed, doing so forces recreation of the resource. ### Optional -- `description` (String) The description of the user group. This property cannot be changed, doing so forces recreation of the resource. - `name` (String) The name of the user group. This property cannot be changed, doing so forces recreation of the resource. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) diff --git a/internal/sdkprovider/service/organization/organization_user_group.go b/internal/sdkprovider/service/organization/organization_user_group.go index 910175476..b423d9e64 100644 --- a/internal/sdkprovider/service/organization/organization_user_group.go +++ b/internal/sdkprovider/service/organization/organization_user_group.go @@ -26,7 +26,7 @@ var aivenOrganizationUserGroupSchema = map[string]*schema.Schema{ }, "description": { Type: schema.TypeString, - Optional: true, + Required: true, Description: userconfig.Desc("The description of the user group.").ForceNew().Build(), }, "create_time": {