To perform the following example, you will need an AWS account and have access to secret keys for use in your Python code. They will be unique to your account. We will use the boto3 library for S3 access. You can install this using pip install boto3. Also, you will need to have environment variables set to authenticate. These will look like the following:
AWS_ACCESS_KEY_ID=AKIAIDCQ5PH3UMWKZEWA AWS_SECRET_ACCESS_KEY=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
These are available in the AWS portal under IAM (Identity Access Management) portion of the portal.