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

More useful error message if input can be parsed but doesn't contain essential information #49

Closed flosell closed 2 years ago

flosell commented 2 years ago

Brought up in #48: Input a snippet of CloudFormation JSON which was perfectly parseable but has a different format so nothing could be converted to terraform - the result is simply empty which doesn't give the user a lot of information what's wrong.

Instead, we should raise some sort of warning that indicates that this isn't a valid IAM policy.

flosell commented 2 years ago

Fixed - adding specific error messages