Slack Integration
List RDS databases and Redshift clusters, start one temporarily, and handle idle-resource alerts without leaving Slack.
What Slack can do
The integration has a deliberately narrow scope.
- List non-removed RDS databases and Redshift clusters in the connected SnoozeDB organization.
- Show each identifier, marked (Redshift) for clusters, and a simplified running or stopped state.
- Start one RDS database or resume one Redshift cluster temporarily for 1, 3, or 5 hours.
- Alert the allowed channel when a managed resource has been idle for the window set in Settings → General, with a Keep button.
- Return control to the normal schedule when a temporary start ends.
Prerequisites and workspace access
A SnoozeDB owner or admin connects or reconnects Slack from Dashboard → Settings → Slack.
The Slack app requests the commands and chat:write scopes.
Connect Slack
- Select the SnoozeDB organization you want Slack to control.
- Open Settings, then Slack.
- Choose Connect Slack or Reconnect Slack.
- Review the Slack workspace and requested permissions, then authorize the app.
- Return to SnoozeDB, confirm the connected workspace name, and paste the ID or link of the channel allowed to use SnoozeDB. Connecting a different workspace clears the channel.
- For a private channel, invite the bot with /invite @SnoozeDB so it can post idle alerts.
Slack commands
List databases
/snoozedb-listThe ephemeral response lists RDS databases and Redshift clusters from the connected organization. Removed resources are excluded, and state is simplified to running or stopped.
Choose a database
/snoozedb-start staging-dbPass the exact RDS or Redshift identifier. If nothing matches, use the list command. If several resources match, provide the complete identifier.
Start a database temporarily
After a unique match, Slack offers 1h, 3h, 5h, and Cancel. Choosing a duration starts the RDS instance or resumes the Redshift cluster and saves an override until the displayed expiry time. Redshift clusters need the Redshift scheduling module, and clusters that share data are refused. Normal scheduling resumes afterward.
Idle resource alerts
In Settings → General, turn on inactivity detection and choose how many days without CloudWatch activity count as idle (1–30, default 7). In Settings → Slack, turn on hibernation alerts and pick the resource types to watch (RDS, Redshift, EC2, EKS, ECS). When a managed resource stays idle for that window, SnoozeDB posts one message with a Keep button in the allowed channel. Alerts do not change schedules; only a hibernation after an unanswered alert pauses scheduled starts.
Each watched resource has at most one open alert at a time.
Keep
- Keep pauses idle checks for this resource for 7 days. It does not start or stop anything, and it does not change schedules, locks, or triage.
- If nobody presses Keep within 24 hours, SnoozeDB checks the resource again. It hibernates it only if it is still eligible and CloudWatch shows no activity since the alert; otherwise the hibernation is called off. Either way, the alert message is updated.
- A hibernated resource is not restarted by its schedule until it is started again: from Slack or AWS for RDS, from AWS for EC2, or with Wake in SnoozeDB for EKS and ECS.
- After Keep, the message shows who pressed it and when checks resume. A refused click gets a private reply; the alert stays.
- EKS and ECS clusters are alerted only while awake.
After Keep ends
When the 7-day pause ends, SnoozeDB checks CloudWatch again. Still idle → a new alert. Active → nothing. If CloudWatch cannot be read, no alert is sent.
Security and audit boundary
- SnoozeDB verifies Slack request signatures and the allowed channel before accepting commands or button interactions, then checks the channel again in the database before writing.
- The organization always comes from the Slack installation, never from the button payload. Alert buttons carry only an alert ID.
- Start requests use the existing AWS role and External ID for the resource account. Keep makes no AWS call. The hibernation 24 hours later uses the same role, after SnoozeDB checks eligibility again.
- Responses to commands and refusals are ephemeral; alert decisions replace the alert message in the channel.
- Starts, Keep on idle alerts, and Slack alert setting changes are recorded in Activity Logs with the Slack user and channel.
- Activity entries are associated with the SnoozeDB user who installed the integration; their details identify the Slack actor.
Troubleshooting
- Workspace not connected: reconnect Slack from the intended SnoozeDB organization.
- Command refused or channel not chosen: run the command in the allowed channel, or ask an owner or admin to choose one in Settings → Slack.
- No alerts posted: check that alerts are enabled for the resource type, that the resource has an enabled schedule, and the delivery error shown in Settings → Slack (for example, invite @SnoozeDB to the channel).
- No idle alerts: turn on inactivity detection in Settings → General, enable Slack hibernation alerts, choose resource types, and grant the Activity metrics permission on the AWS account. The resource must be managed, unlocked, have an enabled schedule, and be running (RDS available, EC2 running, clusters awake). Confirm CloudWatch publishes the metric for that resource.
- No resources listed: verify the organization and run a SnoozeDB sync.
- Database not found or several matches: run /snoozedb-list and copy the exact identifier.
- Start failed: check SnoozeDB Activity Logs, AWS role permissions, and the current RDS state.
- Slack settings unavailable: confirm the integration is enabled and that you are an owner or admin.