analyzing-release-read…
Trigger a pre-merge release readiness review on a GitHub PR, GitLab MR, or local branch. Use when the user wants to analyze code changes for risk, correctness,…
Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK/IAM/quota error diagnosis, version management, rollback, and canary deployments. Triggers on: "deploy my agent", "agentcore deploy", "deploy failed", "CDK error", "rollback",
$ npx -y skills add aws/agent-toolkit-for-aws --skill agents-deploy --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agents-deployContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK/IAM/quota error diagnosis, version management, rollback, and canary deployments. Triggers on: "deploy my agent", "agentcore deploy", "deploy failed", "CDK error", "rollback",
name: agents-deploy description: > Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK/IAM/quota error diagnosis, version management, rollback, and canary deployments. Triggers on: "deploy my agent", "agentcore deploy", "deploy failed", "CDK error", "rollback", "canary deploy", "pin version", "redeploy", "deploy stuck". Not for production hardening — use agents-harden. Not for adding capabilities before deploy — use agents-build or agents-connect. Not for VPC configuration errors — use agents-build. allowed-tools: Read Grep Glob Bash metadata: type: skill version: "1.0.0" author: aws-agentcore requires-cli: ">=0.9.0"
Deploy your AgentCore agent to AWS, or diagnose why a deploy failed.
`$ARGUMENTS` is optional:
/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
Run `agentcore --version`. This skill requires v0.9.0 or later. If the version is older, tell the developer to run `agentcore update` before proceeding.
Read `agentcore/agentcore.json` and `agentcore/aws-targets.json` if they exist.
Ask (or infer from context):
> "Are you: > > 1. About to deploy and want to check everything first > 2. Dealing with a failed deploy — what error did you see? > 3. Needing to roll back or pin a specific version?"
If the developer needs versioning, rollback, or canary deployment, load [`references/versioning.md`](references/versioning.md) and follow its instructions.
---
Run these checks before `agentcore deploy`:
Show the developer this command to run:
agentcore validate
This catches malformed `agentcore.json` before CDK even starts.
The most common deploy failure is a region mismatch. Show the developer these commands to verify:
# Your configured AWS region aws configure get region # The region in your deployment target cat agentcore/aws-targets.json # The account you're actually authenticated as aws sts get-caller-identity
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`.
Show the developer this command to check enabled models in their region:
aws bedrock list-foundation-models --region $(aws configure get region) \ --query 'modelSummaries[?modelLifecycle.status==`ACTIVE`].modelId' \ --output table
Cross-region inference profile IDs use a geographic prefix (`us.`, `eu.`, `apac.`) or `global.` to control where inference runs. The CLI scaffolds `global.` by default (e.g., `global.anthropic.claude-sonnet-4-5-20250929-v1:0`), which routes to any commercial region. Geographic prefixes keep inference within that geography (e.g., `eu.` stays in EU regions). All prefixes require model access enabled in every destination region the profile covers. Check the Bedrock docs for which regions are included in each profile prefix.
agentcore deploy --dry-run agentcore deploy --diff
`--dry-run` shows what resources will be created. `--diff` shows the CDK diff against what's currently deployed.
Show the developer the permissions needed and this verification command:
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 target
**Memory provisioning note:** If your project includes memory, deploy takes 2–5 minutes longer while the memory resource becomes ACTIVE. This is normal — not an error. Check status:
agentcore status --type memory
---
If the developer pasted an error, diagnose it directly. If not, read the deploy logs:
# View recent deploy logs ls -lt agentcore/.cli/logs/ cat agentcore/.cli/logs/deploy-*.log 2>/dev/null | tail -100
**IAM permission error:**
User: arn:aws:iam::123456789012:user/dev is not authorized to perform: iam:CreateRole
Fix: Attach the required IAM permissions (see Check 5 above). The deploying identity needs IAM write access scoped to `*BedrockAgentCore*` roles.
**CDK bootstrap not run:**
This stack uses assets, so the toolkit stack must be deployed to the environment
Fix:
npx cdk bootstrap aws://<YOUR_ACCOUNT_ID>/<REGION>
**ECR authorization error:**
no basic auth credentials Error response from daemon: Head "https://<YOUR_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.com/..."
Fix:
aws ecr get-login-password --region <REGION> | \ docker login --username AWS --password-stdin <YOUR_ACCOUNT_ID>.dkr.ecr.<REGION>.amazonaws.
Help AI coding agents build, deploy, and manage applications on AWS. The Agent Toolkit for AWS gives AI coding agents the tools, knowledge, and guardrails they need to work with AWS services.
Repo: aws/agent-toolkit-for-aws
Trigger a pre-merge release readiness review on a GitHub PR, GitLab MR, or local branch. Use when the user wants to analyze code changes for risk, correctness,…
Have a fast, conversational analysis with the AWS DevOps Agent. Use for cost optimization, architecture review, topology mapping, knowledge / runbook…
Coordinate the AWS DevOps Agent across multiple AgentSpaces from one Claude Code session — route questions to the right space (prod vs staging vs knowledge),…
Run a fast AWS Security Agent diff scan on only the changed code since a git ref. Use when the user asks to scan changes, run a diff scan, check what changed…
Run a deep root-cause investigation on the AWS DevOps Agent. Use when the user describes an incident, alarm, outage, or unexplained behavior — keywords like…
Run an AWS Security Agent penetration test against a live web application — registers and verifies the target domain, exercises the supplied endpoints with the…