I hereby claim:
- I am jasmor on github.
- I am jasmor (https://keybase.io/jasmor) on keybase.
- I have a public key whose fingerprint is FDC5 AB32 D9D3 5EFE F432 26E5 D682 873E 7AFC 3039
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def sync_to_s3(target_dir, aws_region=AWS_REGION, bucket_name=BUCKET_NAME): | |
if not os.path.isdir(target_dir): | |
raise ValueError('target_dir %r not found.' % target_dir) | |
s3 = boto3.resource('s3', region_name=aws_region) | |
try: | |
s3.create_bucket(Bucket=bucket_name, | |
CreateBucketConfiguration={'LocationConstraint': aws_region}) | |
except ClientError: | |
pass |
I hereby claim:
To claim this, I am signing this object: