Phase 2 · Ship to AgentCore

Ship the agent

You build the agent. The platform handles the cloud. Each stage is one command. up N provisions everything up to task N; a lower N switches later tasks off again. Your work is the app: agent code, prompts, tools, memory use, config and tests.

0 of 8 tasks complete

Your toolbox

the whole Phase 2 toolbox
uv run bootcamp.py up 4                 # provision stages 0..4
uv run bootcamp.py deploy               # ship your edited agent / MCP code
uv run bootcamp.py status               # ids: POOL_ID, GATEWAY_ID, MEMORY_ID, ...
uv run bootcamp.py test --only 4        # check one stage (or: test 4 for 0..4)
uv run bootcamp.py invoke "Hi" --actor alice-chen   # usually 20 s to 2 min, up to ~5
uv run bootcamp.py invoke "And?" --session last     # reuse the warm session (--json: raw reply)
uv run bootcamp.py invoke "Hi" --stream # print the answer as it is generated
uv run bootcamp.py tools --search "weather"         # Gateway tools; semantic search, stage 2+
uv run bootcamp.py memory --actor alice-chen        # short- and long-term memory, stage 3+
uv run bootcamp.py traces [SESSION_ID]  # span tree of your latest invoke (--args: tool inputs), stage 5+
uv run bootcamp.py scores               # online-evaluation results (UTC, actor), stage 6+
uv run bootcamp.py eval                 # offline: golden questions with ground truth (--last: saved run)
uv run bootcamp.py token                # bearer token for manual calls (--actor: a user's)
uv run bootcamp.py llm                  # gateway URL, models, budget spent / max
uv run bootcamp.py down                 # remove your whole stack (~10.5 min)
Every command runs from your clone, datastream-bootcamp/. test N checks stages 0 to N; test --only N just one. Add --verbose anywhere on the command line (or BOOTCAMP_VERBOSE=1 in .env) for the full terraform output and debug logs. A new invoke session cold-starts your agent's microVM (and each Gateway tool call another one for the MCP server); --session last skips that and keeps the conversation.

Stages at a glance

StageThe platform provisionsup timeCheckWhat passing proves
0Cognito: M2M client, user client and the story users~6 mintest --only 0M2M token is issued; alice-chen and jordan-lee sign in; keyless LiteLLM identity works; direct Bedrock is denied
1MCP server on AgentCore Runtime, JWT inbound~1.5 mintest --only 1tools/list, a SELECT and any extra no-argument tool work
2AgentCore Gateway: MCP target, weather Lambda target, OAuth provider, semantic search~1 mintest --only 2Gateway lists both targets' tools; a query and the weather tool work; search ranks the weather tool first
3AgentCore Memory: facts, preferences, summaries~11 mintest --only 3Memory is ACTIVE with three strategies
4Agent runtime (user-token JWT authorizer, streaming) wired to Gateway, Memory, LiteLLM~5.5 mintest --only 4Agent answers; the actor comes only from the verified token; recall across sessions, no cross-user leak
5Observability (traces in CloudWatch)~0.5 mintest --only 5Spans arrive (can take ~10 min)
6Online evaluations and the exact_numbers and rubric_judge code evaluators (offline: eval adds your golden dataset and batch evaluations)~1 mintest --only 6Online config and custom evaluators are ACTIVE; the rubric judge scores a sample turn through LiteLLM
7Cedar policy on the Gateway~4.5 mintest --only 7SELECTs allowed, DELETE denied, disguised writes blocked; the weather tool is still permitted

Tasks

Optional add-ons

For fast finishers: switch on an AgentCore built-in tool with one .env flag and teach your agent to use it.

0 of 3 optional add-ons complete

Finish

Done for the day? Tear your stack down (about 10.5 minutes) and confirm nothing is left.