Skip to content

Instantly share code, notes, and snippets.

View viatcheslavmogilevsky's full-sized avatar

Vyatcheslav Mogilevsky viatcheslavmogilevsky

View GitHub Profile
@viatcheslavmogilevsky
viatcheslavmogilevsky / s3update.py
Created May 16, 2017 17:57 — forked from nateware/s3update.py
Check local files vs what's on S3, and upload any that have changed.
#!/usr/bin/env python
# Compare a file on S3 to see if we have the latest version
# If not, upload it and invalidate CloudFront
import fnmatch
import os
import boto
import pprint
import re