Skip to content

Commit

Permalink
SSO Assignment: Inline policy documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbuckley committed Jan 28, 2024
1 parent c007766 commit 70b4027
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions modules/aws/sso_account_assignment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,28 @@ module "iam_example" {
}
}
```

You can also provide inline IAM policies:

```hcl
data "aws_iam_policy_document" "example" {
statement {
actions = [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation",
]
resources = ["arn:aws:s3:::*"]
}
}
module "iam_example" {
# ...
permission_sets = {
S3BucketAccess = {
inline_policy = data.aws_iam_policy_document.example.json
}
}
}
```

0 comments on commit 70b4027

Please sign in to comment.