From 02822bdf933f3dd043a6019786cae7f854589855 Mon Sep 17 00:00:00 2001 From: Poyan Nabati Date: Tue, 8 Oct 2019 07:45:59 +0300 Subject: [PATCH 1/3] Update quick-start.md Clarify additional required steps to follow along. --- docs/providers/aws/guide/quick-start.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/providers/aws/guide/quick-start.md b/docs/providers/aws/guide/quick-start.md index 8faca44b5..b5bd38adb 100644 --- a/docs/providers/aws/guide/quick-start.md +++ b/docs/providers/aws/guide/quick-start.md @@ -71,6 +71,21 @@ The `serverless` command will guide you through creating a new Node or Python Se Looking to get started with something other than Node or Python? No problem. You can use the[`create` command](https://serverless.com/framework/docs/providers/aws/cli-reference/create/) to get started with a variety of other languages. +### Set up an endpoint + +An Event is anything that can trigger your serverless functions. In this case, you need to define a endpoint in your `serverless.yml` that will trigger your serverless function. + +``` +functions: + hello: + handler: handler.hello + # Add the following lines: + events: + - http: + path: hello + method: post +``` + ### Deploy the Service Use this command to deploy your service for the first time and after you make changes to your Functions, Events or Resources in `serverless.yml` and want to deploy all changes within your Service at the same time. From 6aa1e497cad2fdc350c7f25a89685a8fa60d9a95 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Tue, 8 Oct 2019 11:48:14 +0200 Subject: [PATCH 2/3] Run Prettier --- docs/providers/aws/guide/quick-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/providers/aws/guide/quick-start.md b/docs/providers/aws/guide/quick-start.md index b5bd38adb..63f228c70 100644 --- a/docs/providers/aws/guide/quick-start.md +++ b/docs/providers/aws/guide/quick-start.md @@ -73,7 +73,7 @@ Looking to get started with something other than Node or Python? No problem. You ### Set up an endpoint -An Event is anything that can trigger your serverless functions. In this case, you need to define a endpoint in your `serverless.yml` that will trigger your serverless function. +An Event is anything that can trigger your serverless functions. In this case, you need to define a endpoint in your `serverless.yml` that will trigger your serverless function. ``` functions: From 8ea9a322048cf05098cb3bb52285e9701821df76 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Tue, 8 Oct 2019 11:49:59 +0200 Subject: [PATCH 3/3] Add YAML directive --- docs/providers/aws/guide/quick-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/providers/aws/guide/quick-start.md b/docs/providers/aws/guide/quick-start.md index 63f228c70..692fd652c 100644 --- a/docs/providers/aws/guide/quick-start.md +++ b/docs/providers/aws/guide/quick-start.md @@ -75,7 +75,7 @@ Looking to get started with something other than Node or Python? No problem. You An Event is anything that can trigger your serverless functions. In this case, you need to define a endpoint in your `serverless.yml` that will trigger your serverless function. -``` +```yaml functions: hello: handler: handler.hello