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.
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.
Finish the terraform code that creates the two Lambda functions using the zip files from the packaging done earlier and the SQS service.
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.
