0.0.5 • Published 2 years ago
@vtcaregorodtcev/remark-aws-backend v0.0.5
aws-rest-api-serverless-lambda
Open-source hands-on guide to build real production ready rest api in Serverless manner
Flow
- Create Id and Key on AWS console in "Access keys (access key ID and secret access key)" tab.
- See
./sls/profiles
in repository to set or get available profiles names. - Create or update
~/.aws/config
and~/.aws/credentials
on your machine to setup profiles in both files which you got on 2nd step.
[remark]
aws_access_key_id=YOUR_ID
aws_secret_access_key=YOUR_KEY
- Use alias for your profile dev, prod etc. for ENV variable.
- After deploy you can check your api services and test endpoints.
Build
pnpm build
Deploy
If build is packaged:
pnpm deploy-package
Deploy entirely:
pnpm deploy
To specify custom profile:
PROFILE=local pnpm deploy
To specify another region
PROFILE=local REGION=us-west-2 pnpm deploy