A simple example using lambda layers with NodeJS (Typescript).
# If using pnpm
cd services && pnpm i
# If using npm
cd services && npm i
# If using pnpm
cd service && pnpm run dev
# If using npm
cd service && npm run dev
# If using pnpm
cd service && pnpm run test
# If using npm
cd service && npm run test
- Set AWS environment variables
# You can put them in the shell context so there are available
# before running any command at your terminal.
export AWS_ACCESS_KEY_ID="write_here"
export AWS_SECRET_ACCESS_KEY="write_here"
- Create an
.env
file within theservice
directory and populate it with following values:
# ./services/.env
AWS_REGION=us-east-1
AWS_ACCOUNT_ID=write_here
- Deploy services
# Root directory.
npm run deploy
And that's it. Super simple.