-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better feedback on python SDK for list requirements #2310
Comments
Please feel free to modify the issue title! |
Reading this - it sounds like we should do a better job of telling the user which field on a resource or data source function is misconfigured, am I reading that right? |
Just chiming in to say that the same vague "Attribute must be a list" error happens if you set aws:allowedAccountIds to a single value instead of a list. Lost an afternoon to that one. |
Thanks @jaxxstorm, this helped me work out that |
I think this issue should be for the entire SDK, I had the same issue with GCP. |
Part of this was a mistake on my end, but I'm intrigued to determine if we can throw a better error or provide better feedback.
I defined an AWS KMS key with a policy, like so:
This passes the MyPy type checker and compiles successfully.
However, there is a mistake here that I only get feedback on when I try to run a preview
The issue itself is actually that I didn't make
principals=
a list, so it should be:This took me ages to figure out.
The text was updated successfully, but these errors were encountered: