Git Product home page Git Product logo

cloudfront-broker's Introduction

Akkeris AWS Cloudfront Broker

CircleCI Codacy Badge Codacy Badge

Broker to create AWS Cloudfront Distributions for use as a content distribution network(CDN). Broker creates an AWS S3 bucket as the primary origin.

Specifications of created distribution

Cloudfront Distribution

  • HTTP -> HTTPS
  • cloudfront.net Certs

S3 Bucket

  • Bucket policy to only allow associated cloudfront distribution read access
  • IAM api user for managing objects in S3 bucket

Installing

Settings

Environment Variables

Required

  • DATABASE_URL - A postgres database for holding broker information
  • NAME_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 key
  • REGION - AWS Region to create S3 buckets

Optional

  • PORT - Port to listen on, Default 5443
  • WAIT_SECONDS - Number of seconds to wait between tasks run. Default 15
  • MAX_RETRIES - Max retries to wait for an AWS resource. Default 100

Build and test

Build executable

  • make

Build docker image

  • make image

test

  • make test

cloudfront-broker's People

Contributors

cachristopher avatar codacy-badger avatar dependabot-preview[bot] avatar nedhanks avatar trevorlinton avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.