← Back to Playbooks
    SEV-1AWS

    AWS Secrets Manager / Parameter Store Outage Playbook

    Services can't retrieve secrets at startup. Database credentials, API keys, and certificates are all inaccessible. Every service that initializes by fetching secrets fails to start, and auto-scaling launches healthy instances that immediately crash.

    Operator's Field Notes

    Jeremy Martinez · Incident Commander | Principal Site Reliability Engineer

    "Secrets Manager outages are terrifying because they affect everything simultaneously. Every service that fetches credentials at startup can't start. The insidious part: existing running instances are fine (they already have their secrets in memory), but any new instance - including auto-scaling replacements - fails immediately. Your system slowly degrades as running instances die and no replacements can start."

    "The mitigation is caching. If your application caches secrets locally and falls back to the cache when Secrets Manager is unavailable, you survive. Without caching, you need to inject secrets through environment variables or mounted files as a workaround - breaking your security model temporarily to keep production alive."

    First 5 Minutes - Triage

    1. Verify Secrets Manager Availability

    # Test direct API call
    aws secretsmanager get-secret-value --secret-id my-secret --query 'Name'
    
    # Test Parameter Store
    aws ssm get-parameter --name /prod/db/password --query 'Parameter.Name'
    
    # Check AWS Health Dashboard
    aws health describe-events --filter "services=secretsmanager,ssm"
    
    # If API works from your workstation but not from EC2:
    # → IAM issue, not service outage
    # → Check VPC endpoints for Secrets Manager

    2. Assess Impact

    # Check which services are failing to start
    # ECS: Look for tasks stuck in PENDING or STOPPED
    aws ecs list-tasks --cluster prod --desired-status STOPPED --max-items 20
    
    # Lambda: Check for initialization errors
    aws logs filter-log-events --log-group-name /aws/lambda/my-function \
      --filter-pattern "Unable to retrieve secret"
    
    # Check if existing running instances are still healthy
    # (They should be - they already have secrets in memory)
    aws elbv2 describe-target-health --target-group-arn TG_ARN

    Recovery Procedures

    Protect Running Instances

    # CRITICAL: Prevent auto-scaling from replacing running instances
    # Disable scale-in to protect currently healthy instances
    aws autoscaling suspend-processes --auto-scaling-group-name my-asg \
      --scaling-processes TerminateInstanceInAutoScalingGroup ReplaceUnhealthy
    
    # ECS: Disable circuit breaker rollback
    # Update service to prevent task replacement
    aws ecs update-service --cluster prod --service myapp \
      --deployment-configuration "minimumHealthyPercent=100,maximumPercent=100"
    
    # DO NOT deploy or restart anything until secrets are accessible

    Workaround: Inject Secrets via Environment

    # TEMPORARY WORKAROUND - breaks security model but keeps production alive
    
    # For ECS: Update task definition with hardcoded secrets
    # (Use the last known values from your secure backup)
    # Add to container definition:
    #   "environment": [{"name": "DB_PASSWORD", "value": "..."}]
    
    # For Kubernetes: Create a secret object
    kubectl create secret generic app-secrets \
      --from-literal=DB_PASSWORD=xxx --from-literal=API_KEY=yyy -n production
    
    # For EC2: Write secrets to a file
    # SSM Run Command (if SSM is working)
    aws ssm send-command --instance-ids i-abc123 \
      --document-name "AWS-RunShellScript" \
      --parameters 'commands=["echo DB_PASS=xxx > /etc/app/secrets.env"]'
    
    # IMPORTANT: Remove these workarounds and rotate secrets after recovery

    Prevention

    Secret Caching

    • • Use AWS SDK secret caching libraries
    • • Cache secrets locally with TTL (1 hour)
    • • Fall back to cached value on API failure
    • • Store encrypted cache on disk for cold starts
    • • Never cache in environment variables permanently

    Architecture

    • • VPC endpoints for Secrets Manager (avoid internet)
    • • Multi-region secret replication
    • • Separate secrets per environment
    • • Automated secret rotation testing
    • • Backup secret values in encrypted vault