Skip to content

Commit

Permalink
Merge pull request #53 from chris-qa-org/fix-depreciated-identity-sto…
Browse files Browse the repository at this point in the history
…re-filter

Fix depreciated identity store filter
  • Loading branch information
Stretch96 authored Jun 10, 2024
2 parents 3edfbc0 + fe0483a commit a936b4e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions sso.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand All @@ -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
}
}
}

Expand Down

0 comments on commit a936b4e

Please sign in to comment.