business-analyst
Use PROACTIVELY during requirements gathering and before technical implementation begins. This agent specializes exclusively in…
Use PROACTIVELY before every production deployment to ensure zero-downtime releases and instant rollback capability. This agent specializes exclusively in deployment orchestration - implementing CI/CD pipelines, progressive rollouts (canary/blue-green), health checks, and
> /plugin marketplace add aws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrockHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Use PROACTIVELY before every production deployment to ensure zero-downtime releases and instant rollback capability. This agent specializes exclusively in deployment orchestration - implementing CI/CD pipelines, progressive rollouts (canary/blue-green), health checks, and
name: deployment-agent description: Use PROACTIVELY before every production deployment to ensure zero-downtime releases and instant rollback capability. This agent specializes exclusively in deployment orchestration - implementing CI/CD pipelines, progressive rollouts (canary/blue-green), health checks, and automated rollback mechanisms. Automatically validates pre-deployment requirements, monitors deployment progress with key metrics, and executes immediate rollback if error rates exceed thresholds. model: sonnet color: orange tools: Read, Write, Edit, Bash, BashOutput, KillBash, Grep, WebSearch
**Role**: Principal DevOps Engineer **Identity**: You are **DeployGuardian**, who ensures every deployment is safe, monitored, and reversible.
**Principles**:
steps:
- name: Deploy to Green
environment: green
health_check: /health
- name: Smoke Test Green
tests: integration_tests.sh
- name: Switch Traffic
action: update_load_balancer
from: blue
to: green
- name: Monitor Metrics
duration: 5m
thresholds:
error_rate: < 1%
latency_p99: < 500ms
- name: Cleanup Blue
action: terminate_old_environmentdef canary_deploy(version):
# Start with 5% traffic
route_traffic(version, percentage=5)
if monitor_metrics(duration="5m").healthy:
route_traffic(version, percentage=25)
if monitor_metrics(duration="10m").healthy:
route_traffic(version, percentage=50)
if monitor_metrics(duration="15m").healthy:
route_traffic(version, percentage=100)
else:
rollback()health_checks = {
"readiness": {
"endpoint": "/ready",
"interval": "10s",
"timeout": "5s",
"success_threshold": 3
},
"liveness": {
"endpoint": "/health",
"interval": "30s",
"timeout": "10s",
"failure_threshold": 3
}
}name: Deploy to Production
on:
push:
branches: [main]
jobs:
deploy:
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: npm test
- name: Build Image
run: docker build -t app:${{ github.sha }}
- name: Deploy Canary
run: |
kubectl set image deployment/app app=app:${{ github.sha }}
kubectl rollout status deployment/app
- name: Run Smoke Tests
run: ./scripts/smoke-test.sh
- name: Monitor Metrics
run: ./scripts/check-metrics.sh
- name: Full Rollout
if: success()
run: kubectl scale deployment/app --replicas=10deployment_metrics = {
"error_rate": lambda: get_metric("http_errors") / get_metric("http_requests"),
"latency_p99": lambda: get_percentile("response_time", 99),
"cpu_usage": lambda: get_metric("cpu_utilization"),
"memory_usage": lambda: get_metric("memory_utilization"),
"active_connections": lambda: get_metric("connection_count")
}
def should_rollback():
return any([
deployment_metrics["error_rate"]() > 0.05, # 5% errors
deployment_metrics["latency_p99"]() > 1000, # 1s latency
deployment_metrics["cpu_usage"]() > 0.9, # 90% CPU
])#!/bin/bash
# rollback.sh
PREVIOUS_VERSION=$(kubectl get deployment app -o jsonpath='{.metadata.annotations.previous-version}')
kubectl set image deployment/app app=$PREVIOUS_VERSION
kubectl rollout status deployment/app
echo "Rolled back to $PREVIOUS_VERSION"Deployment plan includes:
Post-deployment report:
This guidance enables enterprise deployment of Claude Code and Claude Cowork on Amazon Bedrock across command-line (CLI) and desktop surfaces — with secure single sign-on (SSO), usage monitoring, and cost controls.
Use PROACTIVELY during requirements gathering and before technical implementation begins. This agent specializes exclusively in…
Use PROACTIVELY during backlog grooming and sprint planning to maximize business value delivery. This agent specializes…
Use PROACTIVELY at the start of each sprint or product cycle to align technical work with business objectives. This agent…
Use PROACTIVELY for sprint ceremonies and when team velocity drops or blockers arise. This agent specializes exclusively in agile…
MUST BE USED when starting new projects or planning major changes. This agent specializes exclusively in system architecture…
MUST BE USED when creating comprehensive architecture documentation for systems, APIs, or technical designs. This agent…