Skip to content

Instantly share code, notes, and snippets.

@yegorkryukov
Created June 25, 2020 15:45
Show Gist options
  • Save yegorkryukov/9f9afe6dcfc806ae451d9adcaaa1c397 to your computer and use it in GitHub Desktop.
Save yegorkryukov/9f9afe6dcfc806ae451d9adcaaa1c397 to your computer and use it in GitHub Desktop.
# '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