23/32
Sign inSign up free

1122. Events Fire, the Queue Stays Empty

medium 20 XP ~12 minHands-on lab

The rule scheduler-ui-order-placed on the default event bus matches order events and has the SQS queue scheduler-ui-fulfilment as its target. On AWS, the rule's metrics show FailedInvocations for every event, and the queue stays empty: the queue's access policy doesn't let EventBridge send to it.

Task

  • The access policy of scheduler-ui-fulfilment allows the EventBridge service to send messages to it, only on behalf of the rule scheduler-ui-order-placed.
  • It grants nothing to anyone else: no "Principal": "*" without that restriction, and no other actions than sending messages.
  • The rule still targets the queue.

This machine has an AWS-style account (an emulator: nothing is billed). Your AWS CLI is signed in as the account's administrator. The emulator delivers events without checking the policy, so the grader reads the policy the way SQS does.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.