Skip to content

Instantly share code, notes, and snippets.

@K-Mistele
Created December 22, 2020 22:21
Show Gist options
  • Save K-Mistele/fc67afcd8d1d7b7686452f6b7de32dd8 to your computer and use it in GitHub Desktop.
Save K-Mistele/fc67afcd8d1d7b7686452f6b7de32dd8 to your computer and use it in GitHub Desktop.
An example of the AWS S3 Client I wrote for CodeLighthouse
import s3_bucket as S3
import os
# get your key data from environment variables
AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY')
# initialize the package
S3.Bucket.prepare(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment