Skip to content

Instantly share code, notes, and snippets.

View jasmor's full-sized avatar

Jason Morris jasmor

View GitHub Profile

Keybase proof

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:

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

Keybase proof

I hereby claim:

  • I am notjasonmorris on github.
  • I am jasonmorris (https://keybase.io/jasonmorris) on keybase.
  • I have a public key whose fingerprint is D462 FAF3 E6A4 9D46 3E89 2761 EFD0 B14A FD0B 3C96

To claim this, I am signing this object: