Make sure you are using Python3 and Boto3. If you dont have the entire code samples, you can get them here:



I build to read from a file.

This code won’t Likely work if you are running it a browser because there will be no authentication credentials. Boto3 uses the same credential structure as the AWS CLI. Hope that helps.

Chris is the co-author of seven books and author of more than 70 articles and book chapters in technical, management, and information security publications.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store