We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey guys, when activating the s3_only_allow_ssl bot I'm getting a KeyError: 'Statement'
doing a little digging, I can see that policy_bucket = s3_client.get_bucket_policy(Bucket=entity['name'])
returns back a response element, but it does not have a property 'Statement'
'Statement' is instead found under 'Policy'
when i look at policy_bucket['Policy'] the results are a string
so I think maybe this needs to be something like
policy_bucket = s3_client.get_bucket_policy(Bucket=entity['name']) policy = json.loads(policy_bucket['Policy'])
In short, this whole script seems to be keying off a field that has been moved.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey guys, when activating the s3_only_allow_ssl bot I'm getting a KeyError: 'Statement'
doing a little digging, I can see that
policy_bucket = s3_client.get_bucket_policy(Bucket=entity['name'])
returns back a response element, but it does not have a property 'Statement'
'Statement' is instead found under 'Policy'
when i look at policy_bucket['Policy'] the results are a string
so I think maybe this needs to be something like
policy_bucket = s3_client.get_bucket_policy(Bucket=entity['name'])
policy = json.loads(policy_bucket['Policy'])
In short, this whole script seems to be keying off a field that has been moved.
The text was updated successfully, but these errors were encountered: