Skip to content

feat: add scheduled agents sample#256

Open
rohanmeh wants to merge 2 commits into
strands-agents:mainfrom
rohanmeh:add-scheduled-agents-sample
Open

feat: add scheduled agents sample#256
rohanmeh wants to merge 2 commits into
strands-agents:mainfrom
rohanmeh:add-scheduled-agents-sample

Conversation

@rohanmeh
Copy link
Copy Markdown

@rohanmeh rohanmeh commented May 2, 2026

Scheduled Agents — EventBridge Scheduler + AgentCore

Adds a new sample under python/03-integrate/scheduling/ that demonstrates how to invoke a Strands agent running on Bedrock AgentCore on a recurring schedule using Amazon EventBridge Scheduler.

Architecture

EventBridge Scheduler → EventBridge Bus → Rule + InputTransformer → API Destination (with Cognito OAuth) → AgentCore Runtime

What's included

  • agent/agent.py — Strands agent with a get_current_time tool, deployed on AgentCore
  • template.yaml — SAM template for Cognito user pool, EventBridge bus, and DLQ
  • deploy.sh — End-to-end deployment script (ECR, AgentCore runtime, SAM stack, EventBridge wiring, Scheduler)
  • README.md — Full documentation with architecture, deploy instructions, and cleanup

Testing

Deployed and verified the full pipeline end-to-end on a dev AWS account.

Move Connection, API Destination, Rule, Scheduler, and IAM roles
from deploy.sh into template.yaml so all infrastructure is managed
by CloudFormation. Adds a custom resource Lambda to retrieve the
Cognito client secret for the EventBridge Connection.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Latest scan for commit: f979001 | Updated: 2026-05-07 18:02:09 UTC

✅ Security Scan Report (PR Files Only)

Scanned Files

  • python/03-integrate/scheduling/README.md
  • python/03-integrate/scheduling/agent/Dockerfile
  • python/03-integrate/scheduling/agent/agent.py
  • python/03-integrate/scheduling/agent/requirements.txt
  • python/03-integrate/scheduling/deploy.sh
  • python/03-integrate/scheduling/template.yaml

Security Scan Results

Critical High Medium Low Info
0 0 0 0 0

Threshold: High

No security issues detected in your changes. Great job!

This scan only covers files changed in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants