Closed rodolphoescobar closed 1 year ago
i think i know the reason, this is a grammar thing we didn't catch.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1692382781340",
"Action": [
"sns:AddPermission"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
^ that's the modern policy generated by the policy generator. but Statement in the past can simply be a dict and not a list. i will cut a bug fix release now
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html
I am able to reproduce this issue with this inline policy:
{
"Statement": {
"Sid": "Statement1",
"Effect": "Deny",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": "*"
}
}
Describe the bug iambic import resources not work with AWS Organizations
To Reproduce Steps to reproduce the behavior:
Error log