Created
June 13, 2018 20:25
-
-
Save AaronBurchfield/f0b63733fae70982440e5ee6ae6c4e7a to your computer and use it in GitHub Desktop.
test middleware_cloudfront
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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