Skip to content

Commit

Permalink
fix: update to just use shortname and prefix specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMacP committed Mar 14, 2024
1 parent 7ef4ec9 commit 54c1e8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/aws/permission_sets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module "permission_sets" {
description = <VALUE>
identity_store_arn = <VALUE>
inline_policies = ARRAY(<INLINE_POLICY>)
managed_policies = ARRAY(<MANAGED_POLICY>)
managed_policies = ARRAY(<MANAGED_POLICY_NAME>)
}
```

Expand All @@ -25,7 +25,7 @@ This module expects the variables to conform to the following:
- `description` - Must be a string between 1 and 256 characters.
- `identity_store_arn` - Must be a valid Identity Store ARN.
- `inline_policies` - Must be a list of objects that conforms to [Inline Policy](#inline-policy) schema. Can be empty.
- `managed_policies` - Must be a list of strings that are valid managed policy ARNs. Can be empty.
- `managed_policies` - Must be a list of strings that are valid managed policy names. Can be empty.

### Inline Policy

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/permission_sets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "aws_ssoadmin_permission_set_inline_policy" "permission_set_inline_poli
resource "aws_ssoadmin_managed_policy_attachment" "permission_set_managed_policy" {
for_each = toset(var.managed_policies)

managed_policy_arn = each.value
managed_policy_arn = "arn:aws:iam::aws:policy/${each.value}"
permission_set_arn = aws_ssoadmin_permission_set.identity_store_permission_set.arn
instance_arn = var.identity_store_arn
}

0 comments on commit 54c1e8b

Please sign in to comment.