|
2 | 2 |
|
3 | 3 | Testing is crucial in any software project. When shifting to a serverless world, we need to accept and embrace multiple paradigm shifts, which also affect how we can test our applications. By doing so on multiple layers, we can drastically increase our confidence of releasing code and having minimal impact on the service availability and stability of the software we develop.
|
4 | 4 |
|
5 |
| -This workshop consists of multiple independent modules which can be done in any order. The modules are |
| 5 | +This workshop consists of multiple independent modules which can be done in any order. The modules are: |
6 | 6 |
|
7 | 7 | - [Unit Tests](#unit-tests)
|
8 | 8 | - [Local Testing](#local-testing)
|
@@ -50,7 +50,7 @@ In Node.js, [Express](https://expressjs.com/) is a popular framework for buildin
|
50 | 50 | 1. Read up on [`serverless-http`](https://github.com/dougmoscrop/serverless-http) and understand how it works
|
51 | 51 | 1. Check out the example application in [local-testing](./local-testing) and investigate how it uses the serverless-http framework
|
52 | 52 | 1. Run the application locally by running `npm install` and then `npm start`
|
53 |
| -1. Send an HTTP request to the app (e.g. using `curl localhost:8080`) |
| 53 | +1. Send an HTTP request to the app (e.g., using `curl localhost:8080`) |
54 | 54 | 1. Deploy the app to AWS Lambda and hook it up with API Gateway.
|
55 | 55 | 1. Research how you could do something similar with the web framework and programming language of your choice
|
56 | 56 |
|
@@ -114,7 +114,7 @@ Many FaaS platforms allow performing canary deployments. By doing so, we don't r
|
114 | 114 | 1. Change something about the function code and apply again to publish a new version (notice the `publish: true` flag in `function.tf`)
|
115 | 115 | 1. Visit the [CodeDeploy UI](https://console.aws.amazon.com/codesuite/codedeploy/applications)
|
116 | 116 | 1. Choose your application
|
117 |
| -1. Click "Create deployment" and choose "Use AppSpec editor" with "YAML" |
| 117 | +1. Click "Create deployment" and pick "Use AppSpec editor" with "YAML" |
118 | 118 | 1. Enter the following code into the text field (replacing `RESOURCE_SUFFIX` with the suffix you chose):
|
119 | 119 |
|
120 | 120 | ```yml
|
|
0 commit comments