This is the code that have been used in the following presentations:
- 2019-11-15 "LatencyConf 2019"
- 2019-08-26 "Melbourne AWS User Group Monthly Meetup"
- 2019-03-21 "Real World Serverless: making and breaking, betting and banking"
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.
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:
-
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
-
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. -
Run the
init.sh
to deploy everything (typically takes 5 minutes to fully deploy everything). This is based off of an "Inception Pipeline" -
Once everything is build and deployed, launch the game
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