Esempio n. 1
0
func getCfr() *cloudfront.CloudFront {
	cfrid := os.Getenv("CFR_ID")
	cfrkey := os.Getenv("CFR_KEY")
	if cfrid == "" || cfrkey == "" {
		log.Fatalf("You need to set CFR_ID and CFR_KEY environment variables (e.g. `source <too-few-secrets>/envvars.bash`)")
	}
	return cfr.New(cfrid, cfrkey, nil)
}
Esempio n. 2
0
func connectToCloudFront() {
	log.Debug("Connecting to CloudFront ...")
	cfrutil = cfr.New(cfrid, cfrkey, nil)
}