Showing
1 changed file
with
5 additions
and
1 deletions
| 1 | import boto3 | 1 | import boto3 |
| 2 | import json | 2 | import json |
| 3 | +from dcloud import aws_conf | ||
| 3 | 4 | ||
| 4 | -S3 = boto3.client('s3') | 5 | +S3 = boto3.client( |
| 6 | + 's3', | ||
| 7 | + aws_access_key_id=aws_conf.AWS_ACCESS_KEY_ID, | ||
| 8 | + aws_secret_access_key=aws_conf.AWS_SECRET_ACCESS_KEY) | ||
| 5 | BUCKET = '2018-dcloud' | 9 | BUCKET = '2018-dcloud' |
| 6 | 10 | ||
| 7 | 11 | ... | ... |
-
Please register or login to post a comment