-
Notifications
You must be signed in to change notification settings - Fork 227
Add agentcore deployment tutorial #156
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
base: main
Are you sure you want to change the base?
Add agentcore deployment tutorial #156
Conversation
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. |
strands-agents>=0.1.0 | ||
strands-agents-tools>=0.1.0 | ||
awscli | ||
botocore |
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.
missing opensearch-py
"metadata": {}, | ||
"outputs": [], | ||
"source": "print(\"Deploying prerequisite infrastructure...\")\nprint(subprocess.run(['./deploy_prereqs.sh'], capture_output=True, text=True, check=True).stdout)" | ||
}, |
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.
Can we replace this with !sh deploy_prereqs.sh
- it gives permission denied otherwise.
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%%writefile strands-agent/requirements.txt\n", |
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.
can we not simply provide the requirements file ? it's not needed to be created here.
"- AgentCore runtime deployment\n", | ||
"- Configuration management\n", | ||
"\n", | ||
"### Manual Containerization Process (This Tutorial)\n", |
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.
why do we need the manual containerization process ? can we not leverage agentcore-starter-toolkit for that ?
"!aws ecr get-login-password --region {region} | docker login --username AWS --password-stdin {registry}\n", | ||
"!docker push {image_uri}\n", | ||
"\n", | ||
"print(\"Container push completed\")" |
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.
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Throws an error - it needs a local docker daemon.
"role_name = 'StrandsAgentcoreRuntimeRole'\n", | ||
"\n", | ||
"# Trust policy for AgentCore service\n", | ||
"trust_policy = {\n", |
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.
This can be put in a seperate file.
This PR adds a new tutorial demonstrating how to deploy Strands agents to Amazon Bedrock AgentCore Runtime. The tutorial expands deployment options and shows how to operationalize agents using AgentCore Runtime.
What's Added
Documentation Updates
Updated main tutorials README to reflect AgentCore deployment (D3) in the deployment section