Loading...
Loading...
Compare original and translation side by side
agentcore deployagentcore deploy$ARGUMENTS/agents-deploy # interactive — pre-flight check or diagnose failure
/agents-deploy preflight # validate config and IAM before deploying
/agents-deploy diagnose # diagnose a failed deploy (paste error or read logs)
/agents-deploy preview # show what deploy will create without deploying
/agents-deploy rollback # roll back to a previous version$ARGUMENTS/agents-deploy # 交互式模式——预部署检查或诊断部署失败
/agents-deploy preflight # 部署前验证配置和IAM权限
/agents-deploy diagnose # 诊断部署失败(粘贴错误信息或读取日志)
/agents-deploy preview # 预览部署将创建的资源,但不实际执行部署
/agents-deploy rollback # 回滚到之前的版本agentcore --versionagentcore updateagentcore --versionagentcore updateagentcore/agentcore.jsonagentcore/aws-targets.json"Are you:
- About to deploy and want to check everything first
- Dealing with a failed deploy — what error did you see?
- Needing to roll back or pin a specific version?"
references/versioning.mdagentcore/agentcore.jsonagentcore/aws-targets.json"你当前的情况是:
- 即将部署,想要先检查所有配置
- 正在处理部署失败——你遇到了什么错误?
- 需要回滚或固定到特定版本?"
references/versioning.mdagentcore deployagentcore deployagentcore validateagentcore.jsonagentcore validateagentcore.jsonundefinedundefined
The `region` in `aws-targets.json` must match your `aws configure` default region. The `account` must match the account ID from `sts get-caller-identity`.
`aws-targets.json` 中的 `region` 必须与 `aws configure` 的默认区域匹配。`account` 必须与 `sts get-caller-identity` 返回的账户ID匹配。aws bedrock list-foundation-models --region $(aws configure get region) \
--query 'modelSummaries[?modelLifecycle.status==`ACTIVE`].modelId' \
--output tableus.eu.apac.global.global.global.anthropic.claude-sonnet-4-5-20250929-v1:0eu.aws bedrock list-foundation-models --region $(aws configure get region) \
--query 'modelSummaries[?modelLifecycle.status==`ACTIVE`].modelId' \
--output tableus.eu.apac.global.global.global.anthropic.claude-sonnet-4-5-20250929-v1:0eu.agentcore deploy --dry-run
agentcore deploy --diff--dry-run--diffagentcore deploy --dry-run
agentcore deploy --diff--dry-run--diffaws iam simulate-principal-policy \
--policy-source-arn $(aws sts get-caller-identity --query Arn --output text) \
--action-names iam:CreateRole \
--resource-arns "arn:aws:iam::*:role/*BedrockAgentCore*"aws iam simulate-principal-policy \
--policy-source-arn $(aws sts get-caller-identity --query Arn --output text) \
--action-names iam:CreateRole \
--resource-arns "arn:aws:iam::*:role/*BedrockAgentCore*"agentcore deploy -y # auto-confirm (alias: agentcore dp -y)
agentcore deploy -y -v # verbose — shows resource-level events
agentcore deploy --target staging -y # deploy to a specific targetagentcore status --type memoryagentcore deploy -y # 自动确认(别名:agentcore dp -y)
agentcore deploy -y -v # verbose模式——显示资源级别的事件
agentcore deploy --target staging -y # 部署到特定目标环境agentcore status --type memoryundefinedundefinedundefinedundefinedUser: arn:aws:iam::123456789012:user/dev is not authorized to perform: iam:CreateRole*BedrockAgentCore*This stack uses assets, so the toolkit stack must be deployed to the environmentnpx cdk bootstrap aws://<YOUR_ACCOUNT_ID>/<REGION>no basic auth credentials
Error response from daemon: Head "https://<YOUR_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.com/..."aws ecr get-login-password --region <REGION> | \
docker login --username AWS --password-stdin <YOUR_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.comValidationException: The provided model identifier is invalidagentcore.jsonStack ... is in region us-east-1 but the target is us-west-2agentcore/aws-targets.jsonaws configureaws configure set region <REGION>Memory resource is in CREATING state after 10 minutesagentcore status --type memory --jsonLimitExceededException: Account limit for AgentCore runtimes exceededUser: arn:aws:iam::123456789012:user/dev is not authorized to perform: iam:CreateRole*BedrockAgentCore*This stack uses assets, so the toolkit stack must be deployed to the environmentnpx cdk bootstrap aws://<YOUR_ACCOUNT_ID>/<REGION>no basic auth credentials
Error response from daemon: Head "https://<YOUR_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.com/..."aws ecr get-login-password --region <REGION> | \
docker login --username AWS --password-stdin <YOUR_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.comValidationException: The provided model identifier is invalidagentcore.jsonStack ... is in region us-east-1 but the target is us-west-2agentcore/aws-targets.jsonaws configureaws configure set region <REGION>Memory resource is in CREATING state after 10 minutesagentcore status --type memory --jsonLimitExceededException: Account limit for AgentCore runtimes exceededagentcore deploy -yagentcore statusagentcore status
agentcore status --state pending-removal # resources marked for deletionagentcore deploy -yagentcore statusagentcore status
agentcore status --state pending-removal # 查看标记为删除的资源agentcore/aws-targets.json[
{
"name": "staging",
"description": "Staging environment",
"account": "123456789012",
"region": "us-east-1"
},
{
"name": "production",
"description": "Production environment",
"account": "987654321098",
"region": "us-west-2"
}
]agentcore deploy --target staging -y
agentcore deploy --target production -yagentcore/aws-targets.json[
{
"name": "staging",
"description": "Staging environment",
"account": "123456789012",
"region": "us-east-1"
},
{
"name": "production",
"description": "Production environment",
"account": "987654321098",
"region": "us-west-2"
}
]agentcore deploy --target staging -y
agentcore deploy --target production -y