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 + } } }