feat: add scheduled agents sample#256
Open
rohanmeh wants to merge 2 commits into
Open
Conversation
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.
|
Latest scan for commit: ✅ Security Scan Report (PR Files Only)Scanned Files
Security Scan Results
Threshold: High No security issues detected in your changes. Great job! This scan only covers files changed in this PR. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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 aget_current_timetool, deployed on AgentCoretemplate.yaml— SAM template for Cognito user pool, EventBridge bus, and DLQdeploy.sh— End-to-end deployment script (ECR, AgentCore runtime, SAM stack, EventBridge wiring, Scheduler)README.md— Full documentation with architecture, deploy instructions, and cleanupTesting
Deployed and verified the full pipeline end-to-end on a dev AWS account.