GithubHelp home page GithubHelp logo

fuzzy_lambda_pulumi's Introduction

Fuzzy Service Infrastructure

Pulumi code to set up fuzzy-as-a-service.

Tentative End State

I am still learning Pulumi, and also learning AWS' public offerings, so this will be very rough to start with. In the long run, the plan is to implement the following:

  1. Host a fuzzy service using lambda. This gives me hosting, as well as availability, scalability, and load balancing.
  2. Changes to the service are driven by AWS CodePipeline. Combined with specific build/deploy/test steps, this:
    1. picks up changes in GitHub,
    2. builds and unit tests them,
    3. deploys in dev while monitoring alarms,
    4. runs integration tests in dev, and finally
    5. deploys in prod while monitoring alarms.
  3. TODO: still not sure of the best way to run a canary.
  4. API Gateway provides an internet-facing API, handling:
    1. authentication/authorisation,
    2. throttling,
    3. usage plans for (purely hypothetical!) paying customers,
    4. hooking into AWS Cert Manager for SSL.
  5. CloudWatch to collect metrics, display dashboards, and generate alarms.
  6. TODO: still not sure of the best way to implement an Andon cord.
  7. Use multiple accounts and IAM roles to control access to resources.
    1. I’ll try to imagine I have a team of developers with a rotating ops role who can access prod.
  8. AWS Budgets alert on costs, and ideally trigger the Andon cord if necessary.

Manual actions required along the way

Ideally we would find solutions to minimize the following, or at least reduce any risk:

  1. Pulumi is running as a user with manually granted permissions.
  2. Finish setting up codestar connection for pipeline source stage.
  3. Running pulumi up after every config change.

Minor TODOs

  1. Pipeline
    1. TODO: lifecycle rule for pipeline bucket.

fuzzy_lambda_pulumi's People

Contributors

samroberts avatar

Watchers

 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.