Skip to content

Commit a936b4e

Browse files
authored
Merge pull request #53 from chris-qa-org/fix-depreciated-identity-store-filter
Fix depreciated identity store filter
2 parents 3edfbc0 + fe0483a commit a936b4e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

sso.tf

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ data "aws_identitystore_group" "aws" {
1313

1414
identity_store_id = tolist(data.aws_ssoadmin_instances.ssoadmin_instances.identity_store_ids)[0]
1515

16-
filter {
17-
attribute_path = "DisplayName"
18-
attribute_value = each.key
16+
alternate_identifier {
17+
unique_attribute {
18+
attribute_path = "DisplayName"
19+
attribute_value = each.key
20+
}
1921
}
2022
}
2123

@@ -32,9 +34,11 @@ data "aws_identitystore_user" "aws" {
3234

3335
identity_store_id = tolist(data.aws_ssoadmin_instances.ssoadmin_instances.identity_store_ids)[0]
3436

35-
filter {
36-
attribute_path = "UserName"
37-
attribute_value = each.key
37+
alternate_identifier {
38+
unique_attribute {
39+
attribute_path = "UserName"
40+
attribute_value = each.key
41+
}
3842
}
3943
}
4044

0 commit comments

Comments
 (0)