Created
June 25, 2020 15:45
-
-
Save yegorkryukov/9f9afe6dcfc806ae451d9adcaaa1c397 to your computer and use it in GitHub Desktop.
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
# 'rootkey.csv' is the file you've downloaded from AWS | |
with open('rootkey.csv', 'r') as f: | |
content = f.readlines() | |
keys = {} | |
for line in content: | |
pair = line.strip().split('=') | |
keys.update({pair[0] : pair[1]}) | |
AWS_ACCESS_KEY_ID = keys['AWSAccessKeyId'] | |
AWS_SECRET_KEY = keys['AWSSecretKey'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment