Skip to content

msu-denver/26SDSML3850-act-29-lambda-sqs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

In this activity you are asked to deploy two Lambda functions: a producer and a consumer. When the producer runs, it will send a message to the SQS (Simple Queueing Service), which will automatically start a consumer function to receive and process the message.

Instructions

Lambda Functions Packaging

Begin by changing the <ACCOUNT_ID> parameter in Lambda function src/act_29_producer.py. After that, package both Lambda functions src/act_29_producer.py and src/act_29_consumer.py. Use the commands below for that deployment.

docker build --platform linux/amd64 -t act_29 .
docker run --rm act_29 bash
docker cp $(docker ps -lq):/act_29_producer.zip .
docker cp $(docker ps -lq):/act_29_consumer.zip .

After that you can "kill" the container as it already served its purpose.

Terraform

Finish the terraform code that creates the two Lambda functions using the zip files from the packaging done earlier and the SQS service.

Testing

Manually test run the producer Lambda function. Then, visualize the logs of the consumer Lambda function. You should be able to see the message sent by the producer.

pics/pic1.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors