This project assumes you are running Node
8.10.x and npm
6.0.x locally. Please keep in mind that AWS Lambda runs Node
You'll need an Amazon Web Services account and credentials set up on your development machine. If you haven't done it before, here's a useful guide for Configuring the AWS CLI. On *nix systems AWS Credentials are listed in:
Or on Windows systems:
If that file doesn't exist, create it, and add something like the following (assuming you have multiple AWS accounts):
[default] aws_access_key_id=xxx aws_secret_access_key=xxx [work] aws_access_key_id=xxx aws_secret_access_key=xxx [personal] aws_access_key_id=xxx aws_secret_access_key=xxx
You will also need to set a default profile and region with the environment variables
To set these variables on Linux, macOS, or UNIX, use export in your
~/.bashrc (or equiv):
export AWS_PROFILE=work export AWS_REGION=us-west-1
To set these variables on Windows open: Control Panel » System » Advanced » Environment Variables.
- Configuring the AWS CLI
- Amazon Configuration and Credential Files
- working with multiple AWS accounts.