cloudposse / terraform-aws-iam-policy

Create an IAM policy from Terraform input
https://cloudposse.com/accelerate
Apache License 2.0
19 stars 15 forks source link

Create a policy json based on a map of statements instead of a list of statements #10

Closed nitrocode closed 2 years ago

nitrocode commented 2 years ago

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Create a policy based on a iam policy map instead of a list of statements. This prevents duplicated policies and then there is reason to use flatten().

We would need to wrap a try around the flatten and update the docs to show a map passed in instead of a list.