We need a working AWS account with the following resources configured:
- A bucket and a file in it: I will be using a bucket name awsseccookbook with a file named mission-impossible.txt. Replace them with your bucket name and filename.
- A user with administrator permission on S3: We will configure a CLI profile for this user. I will be calling both the user and the CLI profile awssecadmin.
To execute the Python code, we need to install Python and Boto3 in the following order:
- Install python3.
- Install boto3 (if pip3 is installed, you can install boto3 as follows:
pip3 install boto3