Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.07 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.07 KB

Requirements

IMPORTANT: esbuild must be installed in the host machine, not as a dependency of the project. I.e: in Debian run npm install -g esbuild.

First time setup

Authenticate to AWS through the AWS CLI:

aws configure

Create the .env files with all the required parameters:

Region
Env

Run locally

sam build

sam local invoke {FUNCTION_NAME} \
-e events/{FUNCTION_EVENT}.json \
--parameter-overrides $(cat .env)
# dev
aws s3api create-bucket \
--bucket order-status-update-dev \
--region sa-east-1 \
--create-bucket-configuration LocationConstraint=us-east-2

# dev
sam deploy \
--config-file ./samconfig.toml \
--config-env dev \
--parameter-overrides $(cat .env.dev)