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) }
func connectToCloudFront() { log.Debug("Connecting to CloudFront ...") cfrutil = cfr.New(cfrid, cfrkey, nil) }