Sitemap
Maddie Padgett

Maddie Padgett

Cloud Engineer | Transitioning from Director of Communications

SQS, Lambda, & Python

May 2, 2023

--

Another situational project with Python

Scenario:

Get Maddie Padgett’s stories in your inbox

Join Medium for free to get updates from this writer.

A company wants to create a system that can track customer orders and send notifications when orders have been shipped. They want to use AWS services to build the system. They have decided to use SQS, Lambda, and Python for the project.

  1. Create a Standard SQS Queue using Python.
(after much confusion i redid my sqs about 5 times and the new name is ‘15queue’ lol)

2. Create a Lambda function in the console with a Python 3.7 or higher runtime

Press enter or click to view image in full size

3) Modify the Lambda to send a message to the SQS queue. Your message should contain either the current time or a random number. You can use the built-in test function for testing.

Press enter or click to view image in full size

I then added a SQS trigger

Press enter or click to view image in full size

4) Create an API gateway HTTP API type trigger.

5) Test the trigger to verify the message was sent.

Press enter or click to view image in full size
Press enter or click to view image in full size
Complete!!

--

--

Maddie Padgett
Maddie Padgett

Written by Maddie Padgett

Cloud Engineer | Transitioning from Director of Communications