Interview Prep/AWS/Route 53, CloudFront, API Gateway and Messaging

The SDK fails with `AWS.SimpleQueueService.NonExistentQueue: The specified queue does not exist.` but the queue is in the console.

BeginnerTroubleshootingRoute 53, CloudFront, API Gateway and Messaging
Answer

Likely causes → The client is in a different Region or account from the queue, the queue URL or name has a typo (FIFO queues need the .fifo suffix), or the queue was deleted and re-created within 60 seconds.

Diagnose →

aws sts get-caller-identity
aws sqs get-queue-url --queue-name orders.fifo --region eu-west-1
aws sqs list-queues --queue-name-prefix orders --region eu-west-1

Fix → Use the full queue URL from get-queue-url with the matching Region, and add --queue-owner-aws-account-id for cross-account queues.

Prevent → Inject queue URLs from IaC outputs through environment variables or SSM, never hand-typed names.

aws All AWS questions Roadmap: AWS core services

More on Route 53, CloudFront, API Gateway and Messaging