From fe0483adfb0890c1118f36d9d921c600f0cfd406 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Mon, 10 Jun 2024 12:01:47 +0100 Subject: [PATCH] Fix depreciated identity store filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Warning: Argument is deprecated > > │ > │ with module.aws_organizations_and_sso.data.aws_identitystore_group.aws, > │ on .terraform/modules/aws_organizations_and_sso/sso.tf line 3, in data "aws_identitystore_group" "aws": > │ 3: data "aws_identitystore_group" "aws" { > │ > │ Use the alternate_identifier attribute instead. --- sso.tf | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sso.tf b/sso.tf index 5f7e3de..8493d2d 100644 --- a/sso.tf +++ b/sso.tf @@ -13,9 +13,11 @@ data "aws_identitystore_group" "aws" { identity_store_id = tolist(data.aws_ssoadmin_instances.ssoadmin_instances.identity_store_ids)[0] - filter { - attribute_path = "DisplayName" - attribute_value = each.key + alternate_identifier { + unique_attribute { + attribute_path = "DisplayName" + attribute_value = each.key + } } } @@ -32,9 +34,11 @@ data "aws_identitystore_user" "aws" { identity_store_id = tolist(data.aws_ssoadmin_instances.ssoadmin_instances.identity_store_ids)[0] - filter { - attribute_path = "UserName" - attribute_value = each.key + alternate_identifier { + unique_attribute { + attribute_path = "UserName" + attribute_value = each.key + } } }