Skip to content

Commit

Permalink
fix: fix s3 upload script to use iam role (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpagtakhan authored May 31, 2022
1 parent 67748c6 commit a453dc3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/deploy_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ def main():
parser.add_argument('--version', '-v', required=True,
help='Version to deploy')
args = parser.parse_args()
s3 = Session(
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID'),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY'),
region_name=os.environ.get('AWS_REGION'),
).resource('s3')
s3 = Session().resource('s3')
bucket = s3.Bucket(os.environ.get('S3_BUCKET_NAME'))

files = [
Expand Down

0 comments on commit a453dc3

Please sign in to comment.