Skip to content

Instantly share code, notes, and snippets.

@AaronBurchfield
Created June 13, 2018 20:25
Show Gist options
  • Save AaronBurchfield/f0b63733fae70982440e5ee6ae6c4e7a to your computer and use it in GitHub Desktop.
Save AaronBurchfield/f0b63733fae70982440e5ee6ae6c4e7a to your computer and use it in GitHub Desktop.
test middleware_cloudfront
#!/usr/bin/python
import sys
sys.path.append('/usr/local/munki')
import middleware_cloudfront
# Update this to your cloudfront distribution id
cfdistribution = 'aaabbbcccddd'
# if your munki repo is not served from the root, update the path
url = 'https://' + cfdistribution + '.cloudfront.net/catalogs/all'
signed_url = middleware_cloudfront.generate_cloudfront_url(url)
# visit this generated link
print signed_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment