This project contains the infrastructure definition used in the article Implement the Priority Queue Pattern with SQS and Lambda on Bite-Sized Serverless: https://bitesizedserverless.com/bite/implement-the-priority-queue-pattern-with-sqs-and-lambda/
The compiled CloudFormation files can be found in the cdk.out
folder. The Python files for the Lambda functions are placed in lambda/functions
.
To compile the CloudFormation templates, follow these steps:
- First create a
virtualenv
withpython3 -m venv .venv
. - Then activate the
virtualenv
withsource .venv/bin/activate
. - Next, install the required Python packages by running
pip install -r requirements.txt
- Then compile CloudFormation by running
cdk synth
. The output will be stored incdk.out
.
To deploy the templates to your AWS account, run cdk deploy
.