flosell / iam-policy-json-to-terraform

Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document
https://flosell.github.io/iam-policy-json-to-terraform/
Apache License 2.0
774 stars 58 forks source link

Support CloudFormation snippets as input? #50

Open flosell opened 2 years ago

flosell commented 2 years ago

This was raised in #48 where the @joemilacek tried to input a snippet of CloudFormation JSON which is currently not supported (we only support plain IAM policy documents). However, the use-case doesn't seem too far-fetched. It's likely a significant piece of work though so I probably won't work on it unless there's significant need for this feature.

As a start, we could introduce a specific error message that allows us to put analytics on how often this use-case happens.

If you have additional comments on the need for this feature, feel free to comment below.