Skip to content

Rewrite the AgentCore tutorial on the AgentCore CLI - #303

Open
manoj-selvakumar5 wants to merge 4 commits into
strands-agents:mainfrom
manoj-selvakumar5:fix/agentcore-deploy-teardown
Open

Rewrite the AgentCore tutorial on the AgentCore CLI#303
manoj-selvakumar5 wants to merge 4 commits into
strands-agents:mainfrom
manoj-selvakumar5:fix/agentcore-deploy-teardown

Conversation

@manoj-selvakumar5

Copy link
Copy Markdown
Collaborator

Issue #, if available:

Description of changes:

  • python/02-deploy/03-agentcore/deploy-agent.ipynb used the Bedrock AgentCore Starter Toolkit, which is no longer supported. The tutorial now uses the AgentCore CLI for create, deploy, and remove, run as terminal commands in %%bash cells, with boto3 for the IAM execution role and InvokeAgentRuntime. The Starter Toolkit is gone.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Replace the Starter Toolkit with the AgentCore CLI, run as terminal
commands in %%bash cells so a failed teardown stops the notebook instead
of leaving runtimes billing. boto3 handles the execution role,
invocation, and cleanup verification.
Read each runtime ARN from the CLI's deployment state file instead of
searching the account by name, and drop the helpers that only wrapped
boto3 calls. Trim the markdown to what the reader needs.
The remove and deploy commands fail loudly on their own, so the extra
boto3 assertions and the stack name lookup were redundant. utils.py is
now just the execution role helpers.
Fix two wrong claims: removing the only agent deletes the stack, so the
restaurant deploy creates it rather than extending it, and the CDK
staging bucket retains deployment archives. Describe session handling as
isolation with in-memory state rather than managed conversation storage.
Align the remaining markdown with what each cell does.
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Latest scan for commit: 9a10288 | Updated: 2026-09-04 00:56:54 UTC

✅ Security Scan Report (PR Files Only)

Scanned Files

  • python/02-deploy/03-agentcore/deploy-agent.ipynb
  • python/02-deploy/03-agentcore/utils.py
  • python/02-deploy/README.md

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.

1 participant