所有代码内容均可在 GitHub 上的公开 AgentCore CLI 仓库中获取
node --version # 应为 v20.x 或更高版本
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# 验证
uv --version
npm install -g @aws/agentcore
# 验证
agentcore --version
Note: 如果我们之前安装了
bedrock-agentcore-starter-toolkit,请先卸载以避免冲突:
uv tool uninstall bedrock-agentcore-starter-toolkit
# 或
pip3 uninstall bedrock-agentcore-starter-toolkit -y
使用这个cloudformation来部署用于身份验证的 Cognito、用于 Gateway 实验的 Lambda 函数等:
这是在 CloudWatch 中查看可观测性指标的一次性前提条件。
Transaction Search
切换 Enable Transaction Search 并点击 Save:
