Skip to content

Commit

Permalink
* 1.0.2 -- 2023-11-13
Browse files Browse the repository at this point in the history
  - allow users, account_ids to be null
  • Loading branch information
badra001 committed Nov 13, 2023
1 parent 3a28b70 commit 22269e0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
- add ability to grab description, permissionset_name from settings
- find permissionset if arn not found

* 1.0.2 -- 2023-11-13
- allow users, account_ids to be null
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.0.1"
_module_version = "1.0.2"
}
2 changes: 1 addition & 1 deletion group-assignment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_identitystore_group_membership" "group" {
}

resource "aws_ssoadmin_account_assignment" "accounts" {
for_each = toset(local.account_ids)
for_each = var.account_ids != null ? toset(local.account_ids) : toset([])
instance_arn = var.instance_arn
# permission_set_arn = var.permissionset_arn
permission_set_arn = local.permissionset_arn
Expand Down
2 changes: 1 addition & 1 deletion group-assignment/users.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ locals {
}

data "ldap_object" "users" {
for_each = toset(local.users)
for_each = var.users != null ? toset(local.users) : toset([])
provider = ldap

base_dn = local.user_base_dn
Expand Down

0 comments on commit 22269e0

Please sign in to comment.