Created
December 22, 2020 22:21
-
-
Save K-Mistele/fc67afcd8d1d7b7686452f6b7de32dd8 to your computer and use it in GitHub Desktop.
An example of the AWS S3 Client I wrote for CodeLighthouse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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