Broker to create AWS Cloudfront Distributions for use as a content distribution network(CDN). Broker creates an AWS S3 bucket as the primary origin.
- HTTP -> HTTPS
- cloudfront.net Certs
- Bucket policy to only allow associated cloudfront distribution read access
- IAM api user for managing objects in S3 bucket
Environment Variables
Required
DATABASE_URL
- A postgres database for holding broker informationNAME_PREFIX
- Prefix added to name used for bucket and IAM user.AWS_ACCESS_KEY
- Access key with permissions for cloudfront and s3.AWS_SECRET_ACCESS_KEY
- Secret key for Access keyREGION
- AWS Region to create S3 buckets
Optional
PORT
- Port to listen on, Default 5443WAIT_SECONDS
- Number of seconds to wait between tasks run. Default 15MAX_RETRIES
- Max retries to wait for an AWS resource. Default 100
- make
- make image
- make test