-
Notifications
You must be signed in to change notification settings - Fork 91
Enhance EventBridge documentation with comprehensive troubleshooting #4680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
drernie
wants to merge
3
commits into
master
Choose a base branch
from
docs/eventbridge-troubleshooting-clean
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -264,9 +264,189 @@ aws sns get-topic-attributes --topic-arn YOUR_SNS_TOPIC_ARN | |||||
|
|
||||||
| ## 🔧 Troubleshooting | ||||||
|
|
||||||
| ### Automated Validation Script | ||||||
|
|
||||||
| A validation script is available to automatically check your EventBridge setup. Contact Quilt support for access to the diagnostic tooling. | ||||||
|
|
||||||
| ### Quick Diagnostic Checklist | ||||||
|
|
||||||
| Alternatively, manually run this quick diagnostic checklist: | ||||||
|
|
||||||
| <!-- pytest-codeblocks:skip --> | ||||||
| ```bash | ||||||
| # 1. Verify EventBridge rule is ENABLED (not just exists) | ||||||
| aws events describe-rule --name quilt-s3-events-rule --region us-east-1 --query 'State' | ||||||
| # Expected: "ENABLED" | ||||||
|
|
||||||
| # 2. Check if rule is triggering | ||||||
| aws cloudwatch get-metric-statistics \ | ||||||
| --namespace AWS/Events \ | ||||||
| --metric-name TriggeredRules \ | ||||||
| --dimensions Name=RuleName,Value=quilt-s3-events-rule \ | ||||||
| --start-time $(date -u -d '5 minutes ago' '+%Y-%m-%dT%H:%M:%S') \ | ||||||
| --end-time $(date -u '+%Y-%m-%dT%H:%M:%S') \ | ||||||
| --period 300 \ | ||||||
| --statistics Sum \ | ||||||
| --region us-east-1 | ||||||
|
|
||||||
| # 3. Verify SNS topic has ALL required queue subscriptions | ||||||
| aws sns list-subscriptions-by-topic --topic-arn YOUR_SNS_TOPIC_ARN --region us-east-1 --query 'Subscriptions[*].Endpoint' | ||||||
| # Expected: Should include IndexerQueue, PackagerQueue, and S3SNSToEventBridgeQueue | ||||||
| ``` | ||||||
|
|
||||||
| ### Troubleshooting Flowchart | ||||||
|
|
||||||
| When events aren't flowing correctly, follow this systematic approach: | ||||||
|
|
||||||
| ``` | ||||||
| Event not flowing? Start here: | ||||||
| │ | ||||||
| ├─ 1. Is EventBridge rule ENABLED? | ||||||
| │ ├─ Check: aws events describe-rule --name <rule> --query 'State' | ||||||
| │ ├─ ❌ DISABLED → Enable it: aws events enable-rule --name <rule> | ||||||
| │ └─ ✅ ENABLED → Continue to step 2 | ||||||
| │ | ||||||
| ├─ 2. Is the rule actually triggering? | ||||||
| │ ├─ Check CloudWatch metrics: TriggeredRules (see command above) | ||||||
| │ ├─ ❌ Not triggering → Check event pattern and CloudTrail | ||||||
| │ └─ ✅ Triggering → Continue to step 3 | ||||||
| │ | ||||||
| ├─ 3. Are ALL queues subscribed to SNS? | ||||||
| │ ├─ Check subscriptions (see command above) | ||||||
| │ ├─ Must include: | ||||||
| │ │ ├─ IndexerQueue (for file indexing) | ||||||
| │ │ ├─ PackagerQueue (for package creation) ⚠️ Often missing! | ||||||
| │ │ └─ S3SNSToEventBridgeQueue (for event routing) | ||||||
| │ ├─ ❌ Missing queues → Add subscriptions in SNS console | ||||||
| │ └─ ✅ All subscribed → Continue to step 4 | ||||||
| │ | ||||||
| ├─ 4. Is Input Transformer configured correctly? | ||||||
| │ ├─ Check EventBridge rule → Targets → Input transformer | ||||||
| │ ├─ ❌ "Matched event" selected → Events in wrong format! | ||||||
| │ ├─ ❌ Missing transformer → Configure per Step 6 above | ||||||
|
||||||
| │ ├─ ❌ Missing transformer → Configure per Step 6 above | |
| │ ├─ ❌ Missing transformer → Configure the EventBridge rule input transformer as described in the configuration instructions above in this guide |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
date -u -d '5 minutes ago'command syntax is GNU-specific and won't work on macOS (BSD date). Consider documenting that users on macOS should usedate -u -v-5Minstead, or provide a more portable alternative.