Open jaxxstorm opened 1 year ago
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 identifiers
within principals
also need to be a list - from the same obscure error
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.
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.