You can choose to deploy using either AWS SAM
or AWS CDK
(but not both as the way I've named the AWS resources will conflict with each other).
Note: The following assumes you have the SAM CLI
installed.
sam build
sam deploy --guided
Note: The following assumes you have Node
and Npm
(Node Package Manager) installed. Also, It's best not to install AWS CDK and to make use of npx
instead.
npx cdk bootstrap
npx cdk deploy
Two scripts have been written for you, send_messages_to_std_queue
and send_messages_to_fifo_queue
.
As you might imagine, the command ./send_messages_to_std_queue
would send messages to the SQS standard queue and
the command ./send_messages_to_fifo_queue
would send messages to the SQS FIFO queue.
Each execution sends 100
messages.
A script has been written for you, confirm.py
, that'll query all data from the DynamoDB table and check if ordering is preserved.
To run the script, type in your terminal
python confirm.py