From 45b5b156fecbbe21f453938eff17762c2ce24178 Mon Sep 17 00:00:00 2001 From: roman Date: Mon, 2 Dec 2024 08:43:00 +0200 Subject: [PATCH 1/2] SCALRCORE-32232 `data.scalr_environments`: changed type of `ids` attribute from TypeList to TypeSet --- CHANGELOG.md | 4 ++++ docs/data-sources/environments.md | 2 +- scalr/data_source_scalr_environments.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44ed8a7c..14117c65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- `data.scalr_environments`: changed type of `ids` attribute from TypeList to TypeSet + ## [2.2.0] - 2024-11-22 ### Added diff --git a/docs/data-sources/environments.md b/docs/data-sources/environments.md index c82ff055..76f246a7 100644 --- a/docs/data-sources/environments.md +++ b/docs/data-sources/environments.md @@ -42,4 +42,4 @@ data "scalr_environments" "all" { ### Read-Only - `id` (String) The ID of this resource. -- `ids` (List of String) The list of environment IDs, in the format [`env-xxxxxxxxxxx`, `env-yyyyyyyyy`]. +- `ids` (Set of String) The list of environment IDs, in the format [`env-xxxxxxxxxxx`, `env-yyyyyyyyy`]. diff --git a/scalr/data_source_scalr_environments.go b/scalr/data_source_scalr_environments.go index e34a2f59..d5a955bd 100644 --- a/scalr/data_source_scalr_environments.go +++ b/scalr/data_source_scalr_environments.go @@ -35,7 +35,7 @@ func dataSourceScalrEnvironments() *schema.Resource { }, "ids": { Description: "The list of environment IDs, in the format [`env-xxxxxxxxxxx`, `env-yyyyyyyyy`].", - Type: schema.TypeList, + Type: schema.TypeSet, Elem: &schema.Schema{Type: schema.TypeString}, Computed: true, }, From e0bb2bb382d70d9cabf0aa5f6b604302e5c88272 Mon Sep 17 00:00:00 2001 From: roman Date: Mon, 2 Dec 2024 08:45:28 +0200 Subject: [PATCH 2/2] SCALRCORE-32232 update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14117c65..75244efd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- `data.scalr_environments`: changed type of `ids` attribute from TypeList to TypeSet +- `data.scalr_environments`: changed type of `ids` attribute from TypeList to TypeSet ([372](https://github.com/Scalr/terraform-provider-scalr/pull/372)) ## [2.2.0] - 2024-11-22