Code Challenge: Scripts in Python using boto3, pep8 is a plus, each script must have unit test and a short description and usage information. The aim of this exercise is to check general knowledge related to Python, AWS and boto3, those are some examples you could implement: Check if the s3 buckets have public access, if that is the case remove it to avoid undesired access.
- Clone this repository:
git clone https://github.com/miguelangeltm/boto3codechallenge.git
- Navigate to the project directory:
cd boto3codechallenge
- Install the dependencies:
pip install -r requirements.txt
- Just run the main.py file ;)
python main.py
This is an example with three buckets: two have a public access policy, and the third has no policies at all (e.g., the CloudFormation bucket templates cf-templates-13hdy9bp6587g76-eu-west-1).
Public Access policies looks like this:
After script execution: