Agents Deploy
AWSOfficialCreated by aws-agentcore
- Skill
- Workflow
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The agents-deploy skill provides a structured process for managing the lifecycle of AgentCore deployments on AWS. It assists developers in validating configurations before deployment, troubleshooting common failures such as IAM permission issues, region mismatches, or quota limits, and managing advanced deployment strategies like rollbacks and canary releases. By integrating with the AgentCore CLI, it ensures that infrastructure and runtime environments are correctly provisioned and maintained.
What it does
- Performs pre-flight validation of configuration files and IAM permissions.
- Diagnoses common deployment failures including CDK, ECR, and Bedrock model access errors.
- Supports multi-target deployments for staging and production environments.
- Facilitates version management, including pinning specific versions and rolling back to known-good states.
- Enables canary deployment configurations to safely roll out updates.
- Provides preview capabilities to inspect infrastructure changes before execution.
When to use it
- When you are ready to deploy your agent and want to ensure all prerequisites are met.
- When a deployment attempt has failed and you need to identify the root cause.
- When you need to roll back to a previous stable version of your agent.
- When you want to implement canary deployments to test new versions with partial traffic.
- When you need to verify that your AWS environment is correctly configured for AgentCore.
Advantages
- Reduces deployment failures through proactive pre-flight checks.
- Simplifies complex troubleshooting by mapping errors to specific resolution steps.
- Supports safe release practices like canary deployments and version pinning.
- Provides clear commands for managing multi-environment deployment targets.
- Ensures consistency between local configuration and AWS infrastructure.
Usage examples
- “deploy my agent”
- The agent initiates a pre-flight validation check, verifying configuration files, region alignment, and IAM permissions before proceeding with the deployment.
- “deploy failed”
- The agent scans the deployment logs, identifies the specific error pattern (e.g., IAM or ECR), and provides the exact command or fix required to resolve the issue.
- “canary deploy”
- The agent guides you through updating the runtime alias to split traffic between the new and old versions based on specified weights.
- “rollback”
- The agent provides instructions to either redeploy a previous commit or update the runtime alias to point to a stable version.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/aws/agents-deploy/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip agents-deploy.zip -d .agents/skills
Documentation by aws-agentcore
deploy
Deploy your AgentCore agent to AWS, or diagnose why a deploy failed.
When to use
You're ready to deploy and want to validate config first
agentcore deployfailed with an errorYou want to preview what deploy will create without actually deploying
You want to deploy to a specific target (staging, production)
You need to roll back to a previous version, pin to a specific version, or set up canary deployments
Input
$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 versionProcess
Step 0: Verify CLI 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.
Step 1: Determine the situation
Read agentcore/agentcore.json and agentcore/aws-targets.json if they exist.
Ask (or infer from context):
"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?"
If the developer needs versioning, rollback, or canary deployment, load references/versioning.md and follow its instructions.
Path A: Pre-flight validation
Run these checks before agentcore deploy:
Check 1: Validate config files
Show the developer this command to run:
agentcore validateThis catches malformed agentcore.json before CDK even starts.
Check 2: Verify region alignment
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-identityThe region in aws-targets.json must match your aws configure default region. The account must match the account ID from sts get-caller-identity.
Check 3: Verify Bedrock model access
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 tableCross-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.
Check 4: Preview what will be deployed
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.
Check 5: Verify IAM permissions
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*"Run the deploy
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 targetMemory 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 memoryPath B: Diagnose a failed deploy
Step B1: Read the error
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 -100Step B2: Match to known failure patterns
IAM permission error:
User: arn:aws:iam::123456789012:user/dev is not authorized to perform: iam:CreateRoleFix: 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 environmentFix:
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.comModel access denied during deploy:
ValidationException: The provided model identifier is invalidFix: Enable the model in the Bedrock console → Model access. Ensure the model ID in agentcore.json matches an enabled model in your target region.
Region mismatch:
Stack ... is in region us-east-1 but the target is us-west-2Fix: Update agentcore/aws-targets.json to match your aws configure default region, or run aws configure set region <REGION>.
Memory stuck in CREATING:
Memory resource is in CREATING state after 10 minutesThis is unusual — normal provisioning takes 2–5 minutes. Check:
agentcore status --type memory --jsonIf stuck, try removing and re-adding the memory resource.
Service quota exceeded:
LimitExceededException: Account limit for AgentCore runtimes exceededFix: Request a quota increase in the AWS console → Service Quotas → Amazon Bedrock AgentCore.
Step B3: After fixing, re-run
agentcore deploy -yIf the same error recurs, check agentcore status to see the current state of all resources:
agentcore status
agentcore status --state pending-removal # resources marked for deletionDeploying to multiple targets
Define targets in 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"
}
]Deploy to a specific target:
agentcore deploy --target staging -y
agentcore deploy --target production -yOutput
Pre-flight check results with specific fixes for any issues found
Diagnosis of deploy failure with the specific fix
Deploy command to run after fixes are applied
Files
- ATTRIBUTION.mdAdded by AutoGineer1014 B
- LICENSELicence file added by AutoGineer9.9 KiB
- NOTICELicence file added by AutoGineer67 B
- SKILL.md7.7 KiB
- references/versioning.md4.0 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Declares allowed tools, Needs a command-line tool, Needs Node.js
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- aws-agentcore
- Publisher
- AWS (Official)
- Source
- aws/agent-toolkit-for-aws · plugins/aws-agents/skills/agents-deploy · commit 0a218f8
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by aws-agentcore or AWS.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download agents-deploy.zip