Skip to content

Project code used in the "Serverless-to-Observerless" presentation.

License

Notifications You must be signed in to change notification settings

mechanicalpete/serverless-to-observerless

Repository files navigation

Rock Paper Scissors

This is the code that have been used in the following presentations:

  1. 2019-11-15 "LatencyConf 2019"
  2. 2019-08-26 "Melbourne AWS User Group Monthly Meetup"
  3. 2019-03-21 "Real World Serverless: making and breaking, betting and banking"

Elevator Pitch

Cutting through the BS to seed, build, deploy and then crash a Serverless application in 30ish minutes or less (or your runtime is free). A live presentation in three parts where I will seed and deploy the CI/CD pipeline for a Serverless application. Next, I will deploy the application code and take it for a spin. Finally, I'll overload the API and see what's broken using AWS X-Ray.

Taking it for a Spin

If you've attended one of the above presentations and/or would like to try the code out, you "should" just need to do the following:

  1. Clone this repository (and then delete the .git folder)

    git clone https://github.com/mechanicalpete/serverless-to-observerless.git
    cd serverless-to-observerless
    rm -rf .git
  2. Perform a global search and replace on the following buckets (remember; all S3 bucket names have to be universally unique):

    Value Description
    @@AwsCliProfile@@ The AWS Profile to use for deploying this project
    @@AwsRegion@@ The AWS region you want deploy into
    @@bucket-prefix@@ This is prefix used to name any S3 bucket that need to be created. This needs to be lower case.
    @@PipelineName@@ This is prefix used to name any other resources that are created.
  3. Run the init.sh to deploy everything (typically takes 5 minutes to fully deploy everything). This is based off of an "Inception Pipeline"

  4. Once everything is build and deployed, launch the game

Potential Issues

Issue #1

This project creates a CodeCommit repository in your AWS Account. As part of executing the init.sh script, all the code will be pushed to this repository. To allow this you may need to add the following snippet to your ~/.gitconfig file:

[credential "https://git-codecommit.@@AwsRegion@@.amazonaws.com/v1/repos/@@PipelineName@@"]
    helper = !aws --profile @@AwsCliProfile@@ codecommit credential-helper $@
    UseHttpPath = true

About

Project code used in the "Serverless-to-Observerless" presentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •