Skip to content

Commit 06b49df

Browse files
committed
Replace deprecated filters with alternate_identifier
1 parent 588d998 commit 06b49df

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

main.tf

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ data "aws_identitystore_group" "groups" {
5353

5454
identity_store_id = var.identity_store_id
5555

56-
filter {
57-
attribute_path = "DisplayName"
58-
attribute_value = each.value
56+
alternate_identifier {
57+
unique_attribute {
58+
attribute_path = "DisplayName"
59+
attribute_value = each.value
60+
}
5961
}
6062
}
6163

@@ -64,9 +66,11 @@ data "aws_identitystore_user" "users" {
6466

6567
identity_store_id = var.identity_store_id
6668

67-
filter {
68-
attribute_path = "UserName"
69-
attribute_value = each.value
69+
alternate_identifier {
70+
unique_attribute {
71+
attribute_path = "UserName"
72+
attribute_value = each.value
73+
}
7074
}
7175
}
7276

0 commit comments

Comments
 (0)