Code Monkey home page Code Monkey logo

cloud-resume-challenge-aws's Introduction

Cloud Resume Challenge (AWS, Cloudflare, Pulumi)

This repo represents my implementation of the Cloud Resume Challenge!

screenshot.png

I mostly followed the AWS path, with a few minor tweaks:

  • CloudFlare for DNS instead of Route53
  • Pulumi for IaC instead of AWS Serverless Application Model

Repo Layout

Client

  • Minimal html, js, and css files
  • Deployed to S3 bucket fronted by Cloudfront CDN

Server

  • DynamoDB table uses an environment key with a view_count value
  • Python AWS Lambda function defines a single API route handler which increments the view count for the relevant environment and returns that incremented value.
  • Deployed via AWS Lambda + API Gateway

Pulumi

  • Infrastructure as code configuration for all resources:
    • s3.py - Bucket to store client files
    • s3_objects.py - Client files
    • dynamodb.py - Database to persist view_count
    • lambda_fn.py - Serverless api handler
    • api_gateway.py - HTTP API routing to Lambda
    • dns.py - Cloudflare DNS records to set up custom domain
    • cloudfront.py - CDN definition

Challenges:

  • Pulumi doesn't wait for the SSL certificate to be issued, but it must be active before using it in the API gateway and Cloudfront distribution
  • The Pulumi AWS provider does not support adding cache invalidations for cloudfront distributions so I ended up using the pulumi-command package to call out to the AWS CLI

TODO:

  • Execute python tests in github action workflow
  • Add separate dev/staging/production Pulumi stacks

cloud-resume-challenge-aws's People

Contributors

sidpalas 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.