We use Serverless Framework to do production ready deployments.
You’ll need to have Node 16.13.2 or later on your local development machine (but it’s not required on the server). You can use fnm to easily switch Node versions between different projects.
fnm use 16.13.2
npm install
Set up the following environment variables:
export AWS_ACCESS_KEY_ID=<your-access-key-id>
export AWS_SECRET_ACCESS_KEY=<your-secret-access-key>
export AWS_REGION=<your-default-region>
or setup your AWS credentials in your ~/.aws/credentials
file. Then you can
define the environment variable AWS_PROFILE
to point to the profile you want to use.
export AWS_PROFILE=<your-profile-name>
You can include these environment variables in your project’s env files at:
.env
or.env.<stage>
.
Then run the following command:
npm run deploy -- --verbose --stage <stage>
We recommend the following resources to add local development tools to your project:
Check out the Complete AWS Glue example app to see a full example of a complete AWS Glue setup.