Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct exit code for failed function invocation #2836

Closed
wants to merge 199 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
e724b81
adding replaceAll to turn any escaped single quotes back to regular s…
Nov 27, 2016
5a1539f
Fix #2784 - slstats error
paulofla Nov 27, 2016
665400e
fix #2784 - fixing lint errors
paulofla Nov 27, 2016
edd923f
fix bug in event source mapping with custom IAM role
Nov 28, 2016
0e274d4
Add support for directories in url of install command
horike37 Nov 28, 2016
c7c3218
remove request and response config when using proxy integration
dougmoscrop Nov 26, 2016
b05cac7
Add core metrics plugin
pmuens Nov 29, 2016
83900b3
Add AwsMetrics plugin
pmuens Nov 29, 2016
ba27669
Add plugins to Plugins.json file
pmuens Nov 29, 2016
2f4b510
Add documentation
pmuens Nov 29, 2016
80b12f6
Add automatic Period setting and remove period option
pmuens Nov 29, 2016
f249fa1
Fix typo in test description
pmuens Nov 29, 2016
628a55e
Add translation of human friendly startTime syntax
pmuens Dec 1, 2016
45b6695
Update docs about startTime and endTime
pmuens Dec 1, 2016
5994360
Update tests for default value setting of startTime and endTime
pmuens Dec 1, 2016
d074078
Update documentation for default valued of startTime and endTime
pmuens Dec 1, 2016
af35ee3
add init command for easy onboarding
ac360 Sep 18, 2016
3814837
fix tests
ac360 Sep 18, 2016
42ee9eb
fix linting issues
ac360 Sep 18, 2016
efdbe2a
fix linting error
ac360 Sep 18, 2016
693fceb
remove unused dependency
ac360 Sep 19, 2016
da19c9e
add support for setting multiple profiles
ac360 Sep 19, 2016
08769fc
fix linting errors
ac360 Sep 19, 2016
db23598
fix linting error
ac360 Sep 19, 2016
6cbe7d8
Rename from init to setup
pmuens Nov 23, 2016
88ce330
Split up setup into two plugins
pmuens Nov 23, 2016
3377108
Add validation and test coverage for setup plugin
pmuens Nov 23, 2016
ce82aae
Add tests for constructor of AwsSetup
pmuens Nov 23, 2016
114f54e
Minor refactorings
pmuens Nov 24, 2016
1bfa6a9
Add tests for setupAws() method
pmuens Nov 24, 2016
f6b7dd7
Add documentation
pmuens Nov 24, 2016
eaef9e6
Add link to CLI command in main docs README.md file
pmuens Nov 24, 2016
38e5f3f
Correct exit code for failed function invocation
JoeStanton Dec 1, 2016
f36c119
Change plugin structure from „setup“ to „config credentials“
pmuens Dec 1, 2016
0baf2eb
Update documentation to use the new „config credentials“ commands
pmuens Dec 1, 2016
5e4ad45
Fix date parsing bug
pmuens Dec 1, 2016
5ffd70e
Fix comment
pmuens Dec 1, 2016
9fc5dc8
update lifecycle event
nikgraf Dec 1, 2016
29cdbd6
fix missing lifecycle updates
nikgraf Dec 1, 2016
a949cd9
Merge pull request #2160 from serverless/init-command
nikgraf Dec 1, 2016
e439587
add Support for resources as an array
dougmoscrop Dec 2, 2016
031841e
Updates according to PR review
pmuens Dec 2, 2016
ca5b9e1
fix returning error from local invocation
Dec 2, 2016
b708f66
Merge pull request #2819 from serverless/add-metrics-plugin
nikgraf Dec 2, 2016
21ef1cd
Reject promise and handle exit code in the wrapper
JoeStanton Dec 2, 2016
5ddd8d7
remove the lifecycle event from config to hide it in the command list
nikgraf Dec 2, 2016
23f3f59
Merge pull request #2847 from serverless/hide-config
nikgraf Dec 2, 2016
d376c69
Refactor codebase to make it easier to understand
pmuens Nov 25, 2016
12161f2
Add metric retrieval (invocations, throttles, errors and duration) an…
pmuens Nov 25, 2016
e06364b
Remove x after invocations and throttles messages
pmuens Nov 28, 2016
3410b75
Refactor info plugin and add tests
pmuens Nov 28, 2016
06a103e
Add documentation
pmuens Nov 28, 2016
8d4ce41
Add dot at the end of average abbreviation
pmuens Nov 28, 2016
ebd4286
Fix test descriptions
pmuens Nov 29, 2016
f4ddd0a
bump version to 1.3.0
eahefnawy Dec 2, 2016
1ca5a32
1.3 shrinkwrap
eahefnawy Dec 2, 2016
f7f15bb
Remove metrics fetching from info plugin
pmuens Dec 2, 2016
5ab3a62
Merge pull request #2850 from serverless/1.3-version-bump
eahefnawy Dec 2, 2016
e581f03
update CHANGELOG.md
Dec 2, 2016
4ff35d7
Merge pull request #2851 from serverless/changelog-update
mthenw Dec 2, 2016
189843c
Fix the --timestamp parameter description
brunobelotti Dec 2, 2016
b494005
fix setting exit code
Dec 2, 2016
ade4684
Merge pull request #2852 from brunobelotti/patch-1
mthenw Dec 2, 2016
63787df
Merge pull request #2845 from serverless/fix-local-invoke-error
mthenw Dec 2, 2016
e08af13
Fixed issues pointed out
horike37 Dec 3, 2016
92d4a2a
add the test conde
horike37 Dec 3, 2016
c927e34
fixed the docs
horike37 Dec 4, 2016
b69790e
Adding named IAM capability to initial stack creation
surfacedstudio Dec 4, 2016
cf2f7f1
add integration test for deploying with --noDeploy flag
laardee Dec 4, 2016
75e610c
Fixed unit test
surfacedstudio Dec 4, 2016
20e0520
Linting fixes
surfacedstudio Dec 4, 2016
1f2f3ad
Update displaying of function ARNs
pmuens Dec 5, 2016
3710740
fixed typo
horike37 Dec 5, 2016
45ec9eb
update shrinkwrap with production only packages
Dec 5, 2016
67f9603
Merge pull request #2859 from serverless/update-shrinkwrap
pmuens Dec 5, 2016
8ee9884
Update RELEASE_CHECKLIST.md file
pmuens Dec 5, 2016
2fc8aa1
Merge pull request #2860 from serverless/update-release-checklist
pmuens Dec 5, 2016
945e091
Merge pull request #2854 from surfacedstudio/features/add-named-iam-c…
mthenw Dec 5, 2016
da3356b
Rename provider name from 'ibm' to 'openwhisk'.
Dec 5, 2016
7eb9335
add doc generation dep
DavidWells Dec 5, 2016
c5c910d
add transform function to keep plugins up to date
DavidWells Dec 5, 2016
4a718b6
update plugin list pulling from plugin repo
DavidWells Dec 5, 2016
1f1b8a9
fix linting
DavidWells Dec 5, 2016
829a8a5
update linting
DavidWells Dec 5, 2016
afd8397
fix linting.... ⊂◉‿◉つ
DavidWells Dec 5, 2016
e46a236
add agent for serverless context
DavidWells Dec 6, 2016
28c4135
fix lint ⊂◉‿◉つ
DavidWells Dec 6, 2016
5c480d1
change to userAgent
DavidWells Dec 6, 2016
1e2e196
Merge pull request #2870 from serverless/updateSegment
pmuens Dec 6, 2016
c9d2faf
add a dotnet core csharp template
jimmyp Dec 4, 2016
c58ccd5
fix naming, changed from aws-dotnet-csharp to aws-csharp
jimmyp Dec 5, 2016
7f46bbf
add unit test for create csharp
jimmyp Dec 5, 2016
b667d6d
add hello world documentation for csharp template
jimmyp Dec 5, 2016
cc8bd58
fix copy pasta errors in helloworld csharp doco
jimmyp Dec 6, 2016
31682f9
add aws-csharp to aws cli create doco
jimmyp Dec 6, 2016
74a0c4d
Missing indentation for Fn::Join params
sime Dec 6, 2016
486df0c
simplified the IAM role check + added tests
Dec 6, 2016
609632c
Merge pull request #2874 from sime/patch-1
pmuens Dec 6, 2016
ada411f
add aws-csharp to services.md doco
jimmyp Dec 6, 2016
6bf53ab
Add detection of Jenkins
pmuens Dec 7, 2016
6743df4
Merge pull request #2866 from jthomas/master
pmuens Dec 7, 2016
f8dc248
added default lambda env vars to local invoke
eahefnawy Dec 5, 2016
9bcde02
lowercase MemorySize in invoke local
eahefnawy Dec 7, 2016
1395eaa
reverted change in formating as some people parse it
nikgraf Dec 7, 2016
bcecad3
Merge branch 'master' into add-metrics-to-info-plugin
nikgraf Dec 7, 2016
5ddaded
fix tests
nikgraf Dec 7, 2016
343439f
removed double default region setting
eahefnawy Dec 7, 2016
0657f48
Merge pull request #2881 from serverless/add-detection-of-jenkins
mthenw Dec 7, 2016
1b5f25a
consitent code style in display
nikgraf Dec 7, 2016
1f2fd1b
Update warning message
pmuens Dec 7, 2016
6ddc705
Merge pull request #2794 from serverless/add-metrics-to-info-plugin
pmuens Dec 7, 2016
570d23d
Merge pull request #2799 from dougmoscrop/fix_proxy_parameters
mthenw Dec 7, 2016
a4be376
updates invoke local test
eahefnawy Dec 7, 2016
79874bd
rename directory
nikgraf Dec 7, 2016
57246fd
cleanup package test and add it to integration testsuite
nikgraf Dec 7, 2016
d41b733
simplify test
nikgraf Dec 7, 2016
f58f133
Merge pull request #2865 from serverless/invoke-local-env-var
mthenw Dec 7, 2016
fd33f98
Merge pull request #2855 from laardee/2739-nodeploy-integration-test
nikgraf Dec 7, 2016
fd4c6e9
Missing escapes for backslashes required in VTL template
Dec 7, 2016
dbb50b1
add prepublish script
DavidWells Dec 8, 2016
bdca0b9
update script
DavidWells Dec 8, 2016
8603144
add examples auto generate snippet
DavidWells Dec 8, 2016
ff6f2ec
add community examples
DavidWells Dec 8, 2016
52f5296
fix readme formatting
DavidWells Dec 8, 2016
2b04cac
update doc tables
DavidWells Dec 8, 2016
404c56d
update readme with fancy tables ⊂◉‿◉つ
DavidWells Dec 8, 2016
936ba11
update readme
DavidWells Dec 8, 2016
625be97
linter....... ⊂◉‿◉つ
DavidWells Dec 8, 2016
45b4f86
travisss!
DavidWells Dec 8, 2016
7cf4425
remove prepublish because travis breaks
DavidWells Dec 8, 2016
0ed6513
Merge pull request #2868 from serverless/addBetterPluginList
DavidWells Dec 8, 2016
e611e4b
Fix linting error
pmuens Dec 8, 2016
cb9f818
Merge pull request #2808 from evilantnie/master
pmuens Dec 8, 2016
adea45e
Temporarily remove provider.variableSyntax during variable population
johncmckim Dec 8, 2016
197e989
Fix credentials setup bug
pmuens Dec 8, 2016
5a978af
add support for stdin in invoke command
Nov 30, 2016
84fdbd3
Merge pull request #2893 from serverless/fix-credentials-setup-bug
mthenw Dec 8, 2016
b78f7ac
remove duplicated tests
Dec 8, 2016
ab6d5c4
Merge pull request #2894 from serverless/add-stdin
mthenw Dec 8, 2016
b6683d9
Merge pull request #2842 from dougmoscrop/array_resources
pmuens Dec 8, 2016
75f7fe7
rename example page
Dec 8, 2016
dc1ba7d
Merge pull request #2863 from jimmyp/csharp_dotnetcore_template
mthenw Dec 8, 2016
3ab58d4
Merge pull request #2891 from johncmckim/issue-2890
eahefnawy Dec 8, 2016
24ad264
add examples to links
ac360 Dec 8, 2016
80daa32
remove build script for csharp example
Dec 8, 2016
fe42d33
Tiny typo
pizza Dec 8, 2016
7a23cba
Merge pull request #2896 from serverless/cleanup-csharp
mthenw Dec 8, 2016
164c720
Merge pull request #2897 from pizza/patch-1
pmuens Dec 8, 2016
2a79fed
add other examples
DavidWells Dec 8, 2016
82cfc21
update hello world readme
DavidWells Dec 8, 2016
1ac5b72
delete examples that moved to examples/examples repo
DavidWells Dec 8, 2016
c3a7a33
fixed the flow of processing
horike37 Dec 9, 2016
55e0d54
Merge pull request #2899 from serverless/updateExamples
pmuens Dec 9, 2016
5e62370
Merge pull request #2809 from paulofla/slstatsfix
pmuens Dec 9, 2016
818c824
Merge pull request #2814 from PetrKohut/fixed-event-source-mapping-wi…
pmuens Dec 9, 2016
ac92c2e
Fix tests and add some minor fixes
pmuens Dec 9, 2016
c3091f9
update example link
mthenw Dec 9, 2016
e5eec0f
Merge pull request #2816 from horike37/issue-2721
mthenw Dec 9, 2016
c0a83ee
Upgrade AWS SDK shrinkwrap version
sime Dec 9, 2016
0acaaa0
Merge pull request #2904 from sime/aws-sdk-update
mthenw Dec 9, 2016
0141456
Update incorrect text for example
pmuens Dec 9, 2016
328c3f5
Merge pull request #2908 from serverless/fix-install-docs
pmuens Dec 9, 2016
ee19ce6
add serverless.yml to table of contents
ac360 Dec 10, 2016
fdb5407
Add CloudWatchEvent rule name and description fields
horike37 Dec 10, 2016
0ff6761
fix aws metrics plugin lint issues
laardee Dec 11, 2016
4c96e20
Merge pull request #2915 from laardee/fix-aws-metrics-plugin-lint
pmuens Dec 11, 2016
720e41e
update aws-sdk version
Dec 9, 2016
ca1c6de
Merge pull request #2905 from serverless/update-aws-sdk
pmuens Dec 11, 2016
ed1a674
Merge branch 'master' into issue-2832
pmuens Dec 12, 2016
7067680
fixed the docs
horike37 Dec 12, 2016
45ac811
Merge branch 'issue-2832' of github.com:horike37/serverless into issu…
horike37 Dec 12, 2016
9686a92
fixed typo
horike37 Dec 12, 2016
e2f5c06
Merge pull request #2910 from horike37/issue-2832
mthenw Dec 12, 2016
441ae76
Fix order of CLI docs
pmuens Dec 12, 2016
dfac939
Merge pull request #2920 from serverless/fix-order-of-cli-docs
pmuens Dec 12, 2016
577f379
added a note about deploying function versions
eahefnawy Dec 12, 2016
c27e01f
separate commands into separate pages
ac360 Dec 13, 2016
c41a39c
Merge pull request #2926 from serverless/doc-updates
ac360 Dec 13, 2016
4ffa47f
Merge pull request #2923 from serverless/eahefnawy-patch-1
eahefnawy Dec 13, 2016
5e9116d
Add service wide metrics support
pmuens Dec 12, 2016
fd03e55
Split up config CLI doc
pmuens Dec 13, 2016
cf18127
Merge pull request #2927 from serverless/split-up-config-cli-doc
pmuens Dec 13, 2016
142946e
fixed bug where you can now invoke without any input data
eahefnawy Dec 13, 2016
08009c2
handling strings
eahefnawy Dec 13, 2016
cee63f1
Merge pull request #2928 from serverless/invoke-stdin-bug
eahefnawy Dec 13, 2016
df8997e
Update examples with more "real world" dates
pmuens Dec 13, 2016
a8540b3
Refactor functions into reusable util functions
pmuens Dec 13, 2016
443865f
Remove utils file and move helper functions into class file
pmuens Dec 13, 2016
007be3d
Merge pull request #2922 from serverless/add-service-wide-metrics-sup…
mthenw Dec 13, 2016
52de4e6
update csharp example
Dec 13, 2016
e069536
Fix stdin docs for invoke
pmuens Dec 13, 2016
0a032f4
Merge pull request #2932 from serverless/update-csharp
mthenw Dec 13, 2016
2bdb312
Merge pull request #2933 from serverless/fix-stdin-docs-for-invoke
pmuens Dec 13, 2016
876c1d8
Update apigateway.md
nicka Dec 13, 2016
cde9c2d
Updating section on AWS pricing
TheMcMurder Dec 13, 2016
16ac810
Merge pull request #2934 from nicka/patch-3
pmuens Dec 14, 2016
ed591ff
Merge pull request #2935 from TheMcMurder/patch-1
pmuens Dec 14, 2016
c55a3af
Merge branch 'invoke-exit-code' of https://github.com/redbadger/serve…
Dec 14, 2016
be06c47
fix lint errors
Dec 14, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 45 additions & 3 deletions CHANGELOG.md
@@ -1,7 +1,45 @@
# 1.1.0 (02.11.2016)
# 1.3.0 (02.12.2016)

* [Github Milestone](https://github.com/serverless/serverless/milestone/15)
* [Comparison since last release](https://github.com/serverless/serverless/compare/v1.0.3...v1.1.0)
## Features
* [Metrics support](https://serverless.com/framework/docs/providers/aws/cli-reference/metrics/) (#1650)
* [AWS credential setup command](https://serverless.com/framework/docs/providers/aws/cli-reference/config/) (#2623)
* Lambda versioning on each deploy (#2676)

## Improvements
* Documentation improvements with `serverless.yml` file reference (#2703)
* Display info how to use SLS_DEBUG (#2690)
* Drop `event.json` file on service creation (#2786)
* Refactored test structure (#2464)
* Automatic test detection (#1337)

## Bug Fixes
* Add DependsOn for Lamda functions and IamPolicyLambdaExecution (#2743)
* Add JSON data parsing for invoke command (#2685)
* Internal refactoring

## Meta
* [Github Milestone](https://github.com/serverless/serverless/milestone/17?closed=1)
* [Comparison since last release](https://github.com/serverless/serverless/compare/v1.2.1...v1.3.0)

# 1.2.0 (22.11.2016)

## Features
* [Lambda environment variables support](https://serverless.com/framework/docs/providers/aws/guide/functions#environment-variables) (#2748)
* [Load Serverless variables from javascript files](https://serverless.com/framework/docs/providers/aws/guide/variables#reference-variables-in-javascript-files) (#2495)
* [Add support for setting custom IAM roles for functions](https://serverless.com/framework/docs/providers/aws/guide/iam#custom-iam-roles-for-each-function) (#1807)
* Lambda environment variables support in Invoke Local (#2757)
* Tighter and secure permissions for event sources (#2023)

## Bug Fixes
* Fix `--noDeploy` flag to generate deployment files offline without needing internet connection (#2648)
* Bring back the `include` packaging feature with the help of globs (#2460)
* Internal refactoring

## Meta
* [Github Milestone](https://github.com/serverless/serverless/milestone/16?closed=1)
* [Comparison since last release](https://github.com/serverless/serverless/compare/v1.1.0...v1.2.0)

# 1.1.0 (02.11.2016)

## Future breaking changes
We will include the LogGroup for your Lambda function in the CloudFormation template in the future. This will break deployments to existing applications because the log group was already created. You will get a warning about this if you deploy currently. We will force this behaviour in a future release, for now you can set it through the `cfLogs: true` parameter in your provider config. This change will also limit the logging rights to only this LogGroup, which should have no impact on your environment. You can read more in [our docs](https://serverless.com/framework/docs/providers/aws/guide/functions#log-group-resources).
Expand All @@ -26,6 +64,10 @@ We will include the LogGroup for your Lambda function in the CloudFormation temp
## Other
* [Large documentation refactoring](https://serverless.com/framework/docs/) (#2527)

## Meta
* [Github Milestone](https://github.com/serverless/serverless/milestone/15)
* [Comparison since last release](https://github.com/serverless/serverless/compare/v1.0.3...v1.1.0)

# 1.0.3 (21.10.2016)

Following is a selection of features, bug fixes and other changes we did since 1.0.2.
Expand Down
167 changes: 112 additions & 55 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion RELEASE_CHECKLIST.md
Expand Up @@ -7,6 +7,7 @@ This checklist should be worked through when releasing a new Serverless version.
milestone if still open
- [ ] Look through all closed issues and PRs of that milestone to see what has changed. Run `./scripts/pr-since-last tag` or if you want to run against a specific tag `./scripts/pr-since-last tag v1.0.3` to get a list of all merged PR's since a specific tag.
- [ ] Create Changelog for this new release
- [ ] Update CHANGELOG.md
- [ ] Close milestone on Github
- [ ] Create a new release in GitHub for Release Notes.

Expand All @@ -20,7 +21,7 @@ milestone if still open
## Prepare Package
- [ ] Create a new branch to bump version in package.json
- [ ] Install the latest NPM version or Docker container with latest Node and NPM
- [ ] Bump version in package.json, remove `node_modules` folder and run `npm install` and `npm shrinkwrap`
- [ ] Bump version in package.json, remove `node_modules` folder and run `npm install` and `npm prune --production && npm shrinkwrap`
- [ ] Make sure all files that need to be pushed are included in `package.json->files`
- [ ] Send PR and merge PR with new version to be released
- [ ] Go back to branch you want to release from (e.g. master or v1) and pull bumped version changes from Github
Expand Down
5 changes: 4 additions & 1 deletion bin/serverless
Expand Up @@ -17,4 +17,7 @@ process.noDeprecation = true;
});

return serverless.init().then(() => serverless.run());
}).catch(e => logError(e)))();
}).catch(e => {
process.exitCode = 1;
logError(e);
}))();
4 changes: 4 additions & 0 deletions docker-compose.yml
Expand Up @@ -32,3 +32,7 @@ services:
image: hseeberger/scala-sbt
volumes:
- ./tmp/serverless-integration-test-aws-scala-sbt:/app
aws-csharp:
image: microsoft/dotnet:1.0.1-sdk-projectjson
volumes:
- ./tmp/serverless-integration-test-aws-csharp:/app
6 changes: 6 additions & 0 deletions docs/README.md
Expand Up @@ -35,6 +35,7 @@ The Serverless Framework allows you to deploy auto-scaling, pay-per-execution, e
<li><a href="./providers/aws/guide/iam.md">IAM</a></li>
<li><a href="./providers/aws/guide/plugins.md">Plugins</a></li>
<li><a href="./providers/aws/guide/workflow.md">Workflow</a></li>
<li><a href="./providers/aws/guide/serverless.yml.md">Serverless.yml</a></li>
</ul>
</div>
</div>
Expand All @@ -47,11 +48,16 @@ The Serverless Framework allows you to deploy auto-scaling, pay-per-execution, e
</div>
<div>
<ul>
<li><a href="./providers/aws/cli-reference/config-credentials.md">Config Credentials</a></li>
<li><a href="./providers/aws/cli-reference/create.md">Create</a></li>
<li><a href="./providers/aws/cli-reference/install.md">Install</a></li>
<li><a href="./providers/aws/cli-reference/deploy.md">Deploy</a></li>
<li><a href="./providers/aws/cli-reference/deploy-function.md">Deploy Function</a></li>
<li><a href="./providers/aws/cli-reference/deploy-list.md">Deploy List</a></li>
<li><a href="./providers/aws/cli-reference/invoke.md">Invoke</a></li>
<li><a href="./providers/aws/cli-reference/invoke-local.md">Invoke Local</a></li>
<li><a href="./providers/aws/cli-reference/logs.md">Logs</a></li>
<li><a href="./providers/aws/cli-reference/metrics.md">Metrics</a></li>
<li><a href="./providers/aws/cli-reference/info.md">Info</a></li>
<li><a href="./providers/aws/cli-reference/rollback.md">Rollback</a></li>
<li><a href="./providers/aws/cli-reference/remove.md">Remove</a></li>
Expand Down
46 changes: 46 additions & 0 deletions docs/providers/aws/cli-reference/config-credentials.md
@@ -0,0 +1,46 @@
<!--
title: Serverless Framework Commands - AWS Lambda - Config Credentials
menuText: Config Credentials
menuOrder: 1
description: Configure Serverless credentials
layout: Doc
-->

<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/aws/cli-reference/config-credentials)
<!-- DOCS-SITE-LINK:END -->

# Config Credentials

```bash
serverless config credentials --provider provider --key key --secret secret
```

## Options

- `--provider` or `-p` The provider (in this case `aws`). **Required**.
- `--key` or `-k` The `aws_access_key_id`. **Required**.
- `--secret` or `-s` The `aws_secret_access_key`. **Required**.
- `--profile` or `-n` The name of the profile which should be created.

## Provided lifecycle events

- `config:credentials:config`

## Examples

### Configure the `default` profile

```bash
serverless config credentials --provider aws --key 1234 --secret 5678
```

This example will configure the `default` profile with the `aws_access_key_id` of `1234` and the `aws_secret_access_key` of `5678`.

### Configure a custom profile

```bash
serverless config credentials --provider aws --key 1234 --secret 5678 --profile custom-profile
```

This example create and configure a `custom-profile` profile with the `aws_access_key_id` of `1234` and the `aws_secret_access_key` of `5678`.
3 changes: 2 additions & 1 deletion docs/providers/aws/cli-reference/create.md
@@ -1,7 +1,7 @@
<!--
title: Serverless Framework Commands - AWS Lambda - Create
menuText: Create
menuOrder: 1
menuOrder: 2
description: Creates a new Service in your current working directory
layout: Doc
-->
Expand Down Expand Up @@ -45,6 +45,7 @@ Most commonly used templates:
- aws-java-maven
- aws-java-gradle
- aws-scala-sbt
- aws-csharp
- plugin

## Examples
Expand Down
38 changes: 38 additions & 0 deletions docs/providers/aws/cli-reference/deploy-function.md
@@ -0,0 +1,38 @@
<!--
title: Serverless Framework Commands - AWS Lambda - Deploy Function
menuText: Deploy Function
menuOrder: 5
description: Deploy your AWS Lambda functions quickly without cloudformation
layout: Doc
-->

<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/aws/cli-reference/deploy-function)
<!-- DOCS-SITE-LINK:END -->

# Deploy Function

The `sls deploy function` command deploys an individual function without AWS CloudFormation. This command simply swaps out the zip file that your CloudFormation stack is pointing toward. This is a much faster way of deploying changes in code.

```bash
serverless deploy function -f functionName
```

## Options
- `--function` or `-f` The name of the function which should be deployed
- `--stage` or `-s` The stage in your service that you want to deploy to.
- `--region` or `-r` The region in that stage that you want to deploy to.

## Examples

### Deployment without stage and region options

```bash
serverless deploy function --function helloWorld
```

### Deployment with stage and region options

```bash
serverless deploy function --function helloWorld --stage dev --region us-east-1
```
32 changes: 32 additions & 0 deletions docs/providers/aws/cli-reference/deploy-list.md
@@ -0,0 +1,32 @@
<!--
title: Serverless Framework Commands - AWS Lambda - Deploy List
menuText: Deploy List
menuOrder: 6
description: List your previous CloudFormation deployments
layout: Doc
-->

<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/aws/cli-reference/deploy-list)
<!-- DOCS-SITE-LINK:END -->

# Deploy List

The `sls deploy list` command will list your recent deployments available in your S3 deployment bucket. It will use stage and region from the provider config and show the timestamp of each deployment so you can roll back if necessary using `sls rollback`.

## Options

- `--stage` or `-s` The stage in your service that you want to deploy to.
- `--region` or `-r` The region in that stage that you want to deploy to.

## Artifacts

After the `serverless deploy` command runs all created deployment artifacts are placed in the `.serverless` folder of the service.

## Examples

### List existing deploys

```bash
serverless deploy list --stage dev --region us-east-1
```
24 changes: 2 additions & 22 deletions docs/providers/aws/cli-reference/deploy.md
@@ -1,7 +1,7 @@
<!--
title: Serverless Framework Commands - AWS Lambda - Deploy
menuText: Deploy
menuOrder: 3
menuOrder: 4
description: Deploy your service to the specified provider
layout: Doc
-->
Expand All @@ -12,25 +12,13 @@ layout: Doc

# Deploy

The `sls deploy` command deploys your service or an individual function.

**Deploy entire service:**
The `sls deploy` command deploys your entire service via CloudFormation. Run this command when you have made infrastructure changes (i.e., you edited `serverless.yml`). Use `serverless deploy function -f myFunction` when you have made code changes and you want to quickly upload your updated code to AWS Lambda.

```bash
serverless deploy
```

**Deploy a single function:**

```bash
serverless deploy function -f functionName
```

**Note:** `sls deploy function` is faster than a full service deploy and recommended for a faster development flow

## Options
- `--function` or `-f` The name of the function which should be deployed (**Note:** only available when running
`serverless deploy function`)
- `--stage` or `-s` The stage in your service that you want to deploy to.
- `--region` or `-r` The region in that stage that you want to deploy to.
- `--noDeploy` or `-n` Skips the deployment steps and leaves artifacts in the `.serverless` directory
Expand Down Expand Up @@ -60,14 +48,6 @@ serverless deploy --stage production --region eu-central-1
With this example we've defined that we want our service to be deployed to the `production` stage in the region
`eu-central-1`.

## List existing deploys

```bash
serverless deploy list
```

Running this command will list your recent deployments available in your S3 deployment bucket. It will use stage and region from the provider config and show the timestamp of each deployment so you can roll back if necessary.

## Provided lifecycle events
- `deploy:cleanup`
- `deploy:initialize`
Expand Down
4 changes: 2 additions & 2 deletions docs/providers/aws/cli-reference/info.md
@@ -1,7 +1,7 @@
<!--
title: Serverless Framework Commands - AWS Lambda - Info
menuText: Info
menuOrder: 6
menuOrder: 11
description: Display information about your deployed service and the AWS Lambda Functions, Events and AWS Resources it contains.
layout: Doc
-->
Expand Down Expand Up @@ -76,4 +76,4 @@ CreateThumbnailsLambdaFunctionArn: arn:aws:lambda:us-east-1:377024778620:functio
TakeScreenshotLambdaFunctionArn: arn:aws:lambda:us-east-1:377024778620:function:lambda-screenshots-dev-takeScreenshot
ServiceEndpoint: https://12341jc801.execute-api.us-east-1.amazonaws.com/dev
ServerlessDeploymentBucketName: lambda-screenshots-dev-serverlessdeploymentbucket-15b7pkc04f98a
```
```
14 changes: 11 additions & 3 deletions docs/providers/aws/cli-reference/install.md
@@ -1,7 +1,7 @@
<!--
title: Serverless Framework Commands - AWS Lambda - Install
menuText: Install
menuOrder: 2
menuOrder: 3
description: Install pre-written AWS Lambda Functions, Events and Resources with the Serverless Framework
layout: Doc
-->
Expand Down Expand Up @@ -29,7 +29,15 @@ serverless install --url https://github.com/some/service
### Installing a service from a GitHub URL

```bash
serverless install --url https://github.com/johndoe/authentication
serverless install --url https://github.com/pmuens/serverless-crud
```

This example will download the .zip file of the `authentication` service from GitHub, create a new directory with the name `authentication` in the current working directory and unzips the files in this directory.
This example will download the .zip file of the `serverless-crud` service from GitHub, create a new directory with the name `serverless-crud` in the current working directory and unzips the files in this directory.

### Installing a service from a directory in a GitHub URL

```bash
serverless install --url https://github.com/serverless/examples/tree/master/rest-api-with-dynamodb
```

This example will download the `rest-api-with-dynamodb` service from GitHub.