From 45b7c3178aecbad9ebfde643d5022ec569e2115f Mon Sep 17 00:00:00 2001 From: Jim Forsyth Date: Wed, 19 Jul 2017 19:06:27 +0100 Subject: [PATCH] services.deploy-info.md Be sure to 'cd' into the relevant service directory before running the 'deploy' command, otherwise you'll likely see the following error message: "Avoid the following error: "This command can only be run inside a service directory". --- docs/providers/aws/guide/services.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/providers/aws/guide/services.md b/docs/providers/aws/guide/services.md index dd96c4c24..2c7e4c1f1 100644 --- a/docs/providers/aws/guide/services.md +++ b/docs/providers/aws/guide/services.md @@ -160,7 +160,13 @@ Create this file and add event data so you can invoke your function with the dat When you deploy a Service, all of the Functions, Events and Resources in your `serverless.yml` are translated to an AWS CloudFormation template and deployed as a single CloudFormation stack. -To deploy a service, use the `deploy` command: +To deploy a service, first 'cd' into the relevant service directory: + +```bash +cd myService +``` + +Then use the `deploy` command: ```bash serverless deploy