In this step, we will use AWS CloudFormation to automatically provision all infrastructure resources required for “The Cozy Brew” coffee ordering system.
The CloudFormation template (event-driven.yaml) will create:
CoffeeOrders.BaristaQueue, VIPExpressQueue, and BaristaDLQ (Dead-Letter Queue).order-publisher): Integrated with a public Function URL (CORS enabled) to receive orders from the website and publish events to SNS.sns:Publish access.BaristaQueue (receives all orders) and VIPExpressQueue (only receives orders with quantity >= 5).BaristaQueue to BaristaDLQ (maxReceiveCount = 3).You can download the template directly from the attachment below:

event-driven.yaml file. Then click Next.



aws-event-driven-architectures.
[x] I acknowledge that AWS CloudFormation might create IAM resources.

CREATE_IN_PROGRESS. Since all resources are Serverless, creation completes very quickly (typically in 30 to 60 seconds).CREATE_COMPLETE.


| Output Key | Description | Usage |
|---|---|---|
WebsiteURL |
S3 Static Website Hosting URL | Link to access the coffee shop web interface |
S3BucketName |
S3 Bucket Name | Destination bucket to upload the index.html interface file |
OrderApiUrl |
Lambda Function URL | Order ingestion API endpoint to connect to the website |
CoffeeOrdersTopicArn |
SNS Topic ARN | Unique identifier of the CoffeeOrders topic |
BaristaQueueUrl |
SQS BaristaQueue URL | Queue receiving all coffee preparation orders |
BaristaDLQUrl |
SQS BaristaDLQ URL | Dead-Letter Queue isolating failed orders after 3 retries |
VIPExpressQueueUrl |
SQS VIPExpressQueue URL | Queue receiving high-volume bulk orders (Quantity >= 5) |
Keep this Outputs tab open in your browser, as you will need the WebsiteURL, S3BucketName, and OrderApiUrl values in the next step.