You need an AWS account to have access to AWS console.
- Click
"Access keys (access key ID and secret access key)"
tab and create Id and Key - Create or update
~/.aws/config
and~/.aws/credentials
on your machine to setup profile with secrets which you got on the first step.
# ~/.aws/config
[rest-dev] # or rest-prod, configured in sls/profiles, applied from serverless.yml/stage
region = us-west-1 # or whatever you prefer
output = json
# ~/.aws/credentials
[rest-dev] # or rest-prod, configured in sls/profiles, applied from serverless.yml/stage
aws_access_key_id=YOUR_ID
aws_secret_access_key=YOUR_KEY
- Then deploy.
pnpm run deploy
- After deploy you can check your api services under your AWS account and test endpoints.
- If you want to use preconfigured profiles or other regions you can extend above command.
PROFILE=local REGION=us-west-2 pnpm run deploy