Skip to content

Commit 773a8e1

Browse files
authored
Merge pull request #11 from speee/replace-deprecated-filter
Replace deprecated filters with alternate_identifier
2 parents 588d998 + 9027e5c commit 773a8e1

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ module "account_assignments" {
6969
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
7070
## Requirements
7171

72-
| Name | Version |
73-
|------|---------|
72+
| Name | Version |
73+
|------|-----------|
7474
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.7 |
75-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.24.0 |
75+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.40.0 |
7676

7777
## Providers
7878

7979
| Name | Version |
8080
|------|---------|
81-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 3.24.0 |
81+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.40.0 |
8282

8383
## Modules
8484

examples/all-in-one/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">=3.24.0"
7+
version = ">=4.40.0"
88
}
99
}
1010
}

examples/module-per-organizations-unit/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">=3.24.0"
7+
version = ">=4.40.0"
88
}
99
}
1010
}

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

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.24.0"
7+
version = ">= 4.40.0"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)