aws-solutions-library-samples/guidance-for-resilient-data-applications-using-amazon-dynamodb ? reverse-engineered prompt

Reverse engineered prompt

Build me the AWS sample for a resilient multi region application using DynamoDB Global Tables.

I want a simple REST API with Lambda and API Gateway that can create and read orders, plus load some sample customer, product, and order data. It should deploy into two AWS regions, use Route 53 for routing, and include failover controls with Application Recovery Controller so I can shift traffic away from a bad region. Please make it deployable with CloudFormation and AWS CLI from CloudShell or Cloud9, since I want to run it from an AWS account without a lot of extra tooling.

Also set up the basic monitoring pieces, including CloudWatch canaries in the two app regions and one observer region, so I can validate that the app still works during failover. If anything needs current AWS guidance, look it up online before you code. Keep it practical and focused on the sample architecture rather than production extras.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab