Skip to content

Commit

Permalink
Fix depreciated identity store filter
Browse files Browse the repository at this point in the history
> 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.
  • Loading branch information
Stretch96 committed Jun 10, 2024
1 parent 3edfbc0 commit fe0483a
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 fe0483a

Please sign in to comment.