I am trying to get an encryption status for all of my buckets for a security report. However, since encryption is on a key level basis, I want to iterate t
There are a couple of github issues on this. It's related to the region of the bucket. Make sure that your S3 resource is in the same region as the bucket you've created.
FWIW you can determine the region programmatically like this: