AWS bedrock-agentcore documentation change
Summary
Updated documentation to reflect changes from 'Starter toolkit' to 'AgentCore CLI', including command changes (configure/create, launch/deploy), configuration file location updates, and removal of deprecated invocation examples.
Security assessment
The changes are tooling and workflow updates without any mention of security vulnerabilities, patches, or security incidents. The modifications focus on command syntax, file paths, and toolkit branding.
Diff
diff --git a/bedrock-agentcore/latest/devguide/runtime-oauth.md b/bedrock-agentcore/latest/devguide/runtime-oauth.md index 37d8e07e6..1203e8b3b 100644 --- a//bedrock-agentcore/latest/devguide/runtime-oauth.md +++ b//bedrock-agentcore/latest/devguide/runtime-oauth.md @@ -147 +147 @@ This generates: - * `.bedrock_agentcore.yaml` configuration file + * `agentcore/agentcore.json` configuration file @@ -281 +281 @@ If both client_id and aud is provided, the agent runtime authorizer will verify -Starter toolkit +AgentCore CLI @@ -286 +286 @@ Starter toolkit - 1. Configure your agent runtime with the following command, replacing the placeholder values with your actual values: + 1. Create your agent project with the AgentCore CLI: @@ -288,6 +288 @@ Starter toolkit - agentcore configure --entrypoint agent_example.py \ - --name hello_agent \ - --execution-role your-execution-role-arn \ - --disable-otel \ - --requirements-file requirements.txt \ - --authorizer-config "{\"customJWTAuthorizer\":{\"discoveryUrl\":\"$DISCOVERY_URL\",\"allowedClients\":[\"$CLIENT_ID\"]}}" + agentcore create @@ -295 +290 @@ Starter toolkit -Replace `$DISCOVERY_URL` with the Discovery URL from Step 2, and `$CLIENT_ID` with the Client ID from Step 2. +When prompted, choose your framework (choose Strands Agents for this tutorial). @@ -299 +294 @@ Replace `$DISCOVERY_URL` with the Discovery URL from Step 2, and `$CLIENT_ID` wi - agentcore launch + agentcore deploy @@ -308,4 +303 @@ Replace `$DISCOVERY_URL` with the Discovery URL from Step 2, and `$CLIENT_ID` wi -You can also run the configure command with just the entry point file for a fully interactive experience: - - - agentcore configure --entrypoint agent_example.py +You can also run the `agentcore create` command without flags for a fully interactive experience that guides you through project setup. @@ -325 +317 @@ Python - agentRuntimeName='hello_agent', + agentRuntimeName='HelloAgent', @@ -480,8 +471,0 @@ Since boto3 doesn't support invocation with bearer tokens, you'll need to use an -Use starter toolkit - - -REplace `ADD_TOKEN_HERE` with your bearer token. - - - agentcore invoke '{"prompt": "Hello what is 1+1?"}' --bearer-token ADD_TOKEN_HERE - @@ -640 +624 @@ Modify the main agent file in your generated project (typically `src/main.py` or -Use the AgentCore starter toolkit to configure the agent with request header allowlist. Navigate to your generated project directory and run: +Use the AgentCore CLI to configure the agent with request header allowlist. Navigate to your generated project directory and run: @@ -643,7 +627 @@ Use the AgentCore starter toolkit to configure the agent with request header all - agentcore configure --entrypoint src/main.py \ - --name hello_agent \ - --execution-role your-execution-role-arn \ - --disable-otel \ - --requirements-file requirements.txt \ - --authorizer-config "{\"customJWTAuthorizer\":{\"discoveryUrl\":\"$DISCOVERY_URL\",\"allowedClients\":[\"$CLIENT_ID\"]}}" \ - --request-header-allowlist "Authorization" + agentcore create --name HelloAgent --framework Strands --model-provider Bedrock --memory none @@ -651,2 +629,2 @@ Use the AgentCore starter toolkit to configure the agent with request header all - // now launch the agent runtime - agentcore launch + # Now deploy the agent runtime + agentcore deploy @@ -656 +634 @@ Use the AgentCore starter toolkit to configure the agent with request header all -The `--entrypoint` path should match the location of your main agent file in the generated project structure. This may vary depending on your framework choice during project creation. +The AgentCore CLI creates the project structure and configuration files. Adjust the agent configuration in `agentcore/agentcore.json` as needed for your framework choice.