You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a boilerplate for [AWS Lambda](https://aws.amazon.com/lambda/) Node.js 6.10.0 functions, which allows you to use the latest JavaScript [ES2017/ES8 features](https://hackernoon.com/es8-was-released-and-here-are-its-main-new-features-ee9c394adf66). The boilerplate also allows you to test your function in a Docker container (thanks to [docker-lambda](https://github.com/lambci/docker-lambda)), and also includes common configurations for CI/CD, for both [Travis CI](https://travis-ci.org/) and [AWS CodeBuild](https://aws.amazon.com/codebuild/) + [AWS CloudFormation](https://aws.amazon.com/cloudformation/).
7
+
This is a boilerplate for [AWS Lambda](https://aws.amazon.com/lambda/) Node.js 6.10.0 functions, which allows you to use the latest JavaScript [ES2016](http://2ality.com/2016/01/ecmascript-2016.html), [ES2017](http://2ality.com/2016/02/ecmascript-2017.html)and[ES2018](http://2ality.com/2017/02/ecmascript-2018.html) features. The boilerplate also allows you to test your function in a Docker container (thanks to [docker-lambda](https://github.com/lambci/docker-lambda)), and also includes common configurations for CI/CD, for both [Travis CI](https://travis-ci.org/) and [AWS CodeBuild](https://aws.amazon.com/codebuild/) + [AWS CloudFormation](https://aws.amazon.com/cloudformation/).
8
8
9
-
## ES2017 features
9
+
## Latest JavaScript features
10
10
11
11
This boilerplate adds support for the following most commonly used JavaScript features that are not natively supported on Node.js 6.10:
12
12
@@ -19,8 +19,8 @@ This boilerplate adds support for the following most commonly used JavaScript fe
_Note: Most ES2015/ES6 are earlier features are supported._
26
26
@@ -84,7 +84,7 @@ To modify the build process, you can update the CodeBuild configuration file at
84
84
If you are new to AWS CI/CD tools, you can follow the official [AWS tutorial](http://docs.aws.amazon.com/lambda/latest/dg/build-pipeline.html) to set up a build pipeline using CodePipeline. Take note of the following:
85
85
86
86
* Set up a S3 bucket for uploading CodeBuild artifacts to.
87
-
* If the CodeBuild build fails, you may need to set the `S3_BUCKET` environment variable within CodeBuild directly.
87
+
* If the CodeBuild build fails, you may need to set the `S3_BUCKET` environment variable within CodeBuild directly.
88
88
* Ensure that the IAM roles have the necessary permissions to access required resources, including the S3 bucket.
89
89
* The CloudFormation template filename under CodePipeline settings should be `template.yml`.
90
90
@@ -115,7 +115,7 @@ Remember to add more permissions as required if you need to access the SDK in yo
115
115
116
116
## Why?
117
117
118
-
### Latest ES2017/ES2016 features
118
+
### Reduce callback hell with `async`/`await`
119
119
120
120
The highest version of Node.js supported on AWS Lambda is 6.10.0, which supports only features up to ES2015/ES6. Newer features in ES2017, such as `async`/`await`, are incredibly useful when performing network requests, such as when used with the [AWS SDK](https://github.com/aws/aws-sdk-js):
0 commit comments