[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A821AC6ZVKKAVFN9GXYWRC":3,"skill-same:01M7A821AC6ZVKKAVFN9GXYWRC":150},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7A821AC6ZVKKAVFN9GXYWRC","elastic-beanstalk-environment-optimizer",null,"Optimizes AWS Elastic Beanstalk environments for cost and performance. Covers instance type right-sizing (single-instance vs load-balanced), t3\u002Ft4g burstable instances for dev, managed platform update scheduling, .ebextensions cleanup, deployment policy selection (immutable for zero-downtime but 2x cost during deploy), worker tier, health check tuning, auto-scaling policy tuning, RDS integration cost (shared vs dedicated), NAT Gateway elimination for single- instance, and termination protection cleanup. Emits an OPTIMIZED assessment with cost savings estimates or FURTHER_OPTIMIZATION_AVAILABLE with specific recommendations. Use when optimizing Beanstalk cost, right-sizing EB instances, reducing deployment cost, tuning auto-scaling, eliminating NAT Gateway for dev, or scheduling managed platform updates. Triggers - optimize elastic beanstalk, eb cost optimization, beanstalk right-size, single-instance vs load-balanced, immutable deployment cost, nat gateway elimination, ebextensions cleanup, rds shared cost.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: elastic-beanstalk-environment-optimizer\ndescription: Optimizes AWS Elastic Beanstalk environments for cost and performance. Covers instance type right-sizing (single-instance vs load-balanced), t3\u002Ft4g burstable instances for dev, managed platform update scheduling, .ebextensions cleanup, deployment policy selection (immutable for zero-downtime but 2x cost during deploy), worker tier, health check tuning, auto-scaling policy tuning, RDS integration cost (shared vs dedicated), NAT Gateway elimination for single- instance, and termination protection cleanup. Emits an OPTIMIZED assessment with cost savings estimates or FURTHER_OPTIMIZATION_AVAILABLE with specific recommendations. Use when optimizing Beanstalk cost, right-sizing EB instances, reducing deployment cost, tuning auto-scaling, eliminating NAT Gateway for dev, or scheduling managed platform updates. Triggers - optimize elastic beanstalk, eb cost optimization, beanstalk right-size, single-instance vs load-balanced, immutable deployment cost, nat gateway elimination, ebextensions cleanup, rds shared cost.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live optimization - AWS CLI v2 with elasticbeanstalk, ec2, rds, elasticloadbalancing, and cloudwatch access. Works with Terraform aws_elastic_beanstalk_environment resources and CloudFormation AWS::ElasticBeanstalk templates.\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Compute\n  task_type: optimize\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, elastic-beanstalk, cost-optimization, cloudops, optimize, compute, right-sizing, auto-scaling, deployment-policy, managed-platform, nat-gateway, ebextensions\n  dependencies: aws-orchestrator\n  keywords: aws, elastic beanstalk, cost optimization, instance right-sizing, single-instance, load-balanced, t3 burstable, t4g burstable, managed platform update, ebextensions, deployment policy, immutable deploy, rolling deploy, worker tier, auto-scaling, nat gateway, rds, health check, cloudops, optimize\n  when_to_use: Invoke when the user wants to optimize Elastic Beanstalk environments for cost, right-size instance types, choose single-instance vs load- balanced topology, reduce deployment costs, tune auto-scaling policies, eliminate NAT Gateway for dev\u002Fstaging, schedule managed platform updates, clean up .ebextensions, or optimize RDS integration costs. Do NOT invoke for ECS\u002FEKS optimization, Lambda optimization, or EC2 Auto Scaling Groups (non-Beanstalk).\n---\n\n# Elastic Beanstalk Environment Optimizer\n\nAn AWS CloudOps agent skill that optimizes Elastic Beanstalk\nenvironments for cost and performance with methodical analysis. The\nskill walks the operator through instance type right-sizing, single-\ninstance vs load-balanced topology, deployment policy cost trade-offs,\nmanaged platform update scheduling, auto-scaling policy tuning, NAT\nGateway elimination, RDS cost optimization, .ebextensions cleanup, and\nhealth check tuning, captures environment configuration, explains why\neach optimization matters, and emits an OPTIMIZED assessment with cost\nsavings estimates or FURTHER_OPTIMIZATION_AVAILABLE with specific\nrecommendations.\n\n## Activation keywords\n\nOptimize Elastic Beanstalk, EB cost optimization, Beanstalk right-size\ninstances, single-instance vs load-balanced, immutable deployment cost,\nmanaged platform update schedule, NAT Gateway elimination, ebextensions\ncleanup, Beanstalk auto-scaling tune, RDS shared cost.\n\n## STRICT output contract\n\nWhen this skill is invoked with an Elastic Beanstalk optimization\nrequest (cost reduction, right-sizing, deployment policy, auto-scaling,\nNAT Gateway, managed updates, or a partial configuration), the agent\nMUST respond with the OPTIMIZED assessment block defined in the\n\"Output format\" section using the literal all-caps labels `EB_ENV:`,\n`VERDICT:`, `OPTIMIZATIONS:`, `COST_IMPACT:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the assessment with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\noptimization pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf further optimizations are available, the verdict is\n`FURTHER_OPTIMIZATION_AVAILABLE` with specific recommendations in the\noptimizations list (marked `[~]`), and `OPTIMIZED` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Optimization prerequisites | Always — gather before optimizing |\n| Opt 1 — Instance type right-sizing | Instance selection |\n| Opt 2 — Single-instance vs load-balanced | Topology decision |\n| Opt 3 — t3\u002Ft4g burstable instances for dev | Dev\u002Fstaging cost |\n| Opt 4 — Deployment policy selection | Deploy cost vs downtime |\n| Opt 5 — Managed platform update scheduling | Update impact |\n| Opt 6 — .ebextensions optimization | Config cleanup |\n| Opt 7 — Auto-scaling policy tuning | Capacity efficiency |\n| Opt 8 — NAT Gateway elimination | Network cost |\n| Opt 9 — RDS integration cost | Database cost |\n| Opt 10 — Health check tuning | Alert false positives |\n| Opt 11 — Termination protection cleanup | Safety vs cost |\n| NEVER do these things | Review before signing off |\n| Output format | The literal assessment template |\n| references\u002Fcost-and-deployment.md | Cost + deployment detail |\n| references\u002Fautoscaling-and-health.md | Auto-scaling + health detail |\n\n## Mindset\n\n**One-line takeaway:** A dev\u002Fstaging Elastic Beanstalk environment on a\nsingle-instance topology (no ELB, no NAT Gateway) saves approximately\n60% compared to a load-balanced topology. Immutable deployments double\ncapacity temporarily during deploy. Managed platform updates should be\nscheduled during off-peak hours.\n\nThree misconceptions dominate Elastic Beanstalk cost optimization:\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Mindset misconceptions\".\n> Load when: you need the full numbers behind the topology \u002F immutable-deploy \u002F NAT misconceptions.\n\n## Configuration dependency graph (novel heuristic)\n\nElastic Beanstalk optimizations are interconnected. Changing the\ntopology (single-instance vs load-balanced) affects instance count, ELB\ncost, NAT Gateway necessity, and deployment policy options. Use this\ngraph to understand the cascading impact of each optimization.\n\n| Optimization | Direct savings | Cascading impact | Trade-off |\n|---|---|---|---|\n| Single-instance topology | ELB (~$18\u002Fmo), extra instances | Eliminates NAT Gateway need (if public IP) | No HA, brief deploy downtime |\n| NAT Gateway elimination | ~$32\u002Fmo per AZ + data processing | Requires public IP on instance | No private subnet outbound |\n| Instance right-sizing | Instance cost delta | May change burstable vs fixed | Right-size for steady-state, not peak |\n| Immutable → Rolling deploy | 2x cost during deploy → 1x | Less availability during deploy | Brief downtime (rolling) |\n| Managed updates off-peak | No direct savings | Reduces user impact | Requires maintenance window |\n| .ebextensions cleanup | No direct savings | Faster deployments, fewer resources | Requires config audit |\n| Auto-scaling tune | Right-size min\u002Fmax\u002Fdesired | Reduces over-provisioning | Requires traffic analysis |\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Configuration dependency graph\".\n> Load when: cascading impacts and gotchas of topology, NAT, right-sizing, and update windows.\n\n## Expert heuristic: single-instance savings breakdown\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Expert heuristic: single-instance savings breakdown\".\n> Load when: computing the actual monthly cost of load-balanced vs single-instance dev.\n\n## Expert heuristic: deployment policy cost analysis\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Expert heuristic: deployment policy cost analysis\".\n> Load when: comparing deploy policies by downtime and extra deploy-window cost.\n\n## Expert heuristic: managed platform update scheduling\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Expert heuristic: managed platform update scheduling\".\n> Load when: choosing an update level and a maintenance window.\n\n## Optimization prerequisites (gather before optimizing)\n\nBefore emitting optimization recommendations, gather these prerequisites.\nIf critical data is missing, the assessment may be incomplete.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Environment name and ID | Identifies the environment | `aws elasticbeanstalk describe-environments` |\n| Environment tier (web server or worker) | Determines applicable optimizations | `describe-environments --query` |\n| Current instance type(s) | Baseline for right-sizing | `describe-configuration-settings` |\n| Min\u002Fmax\u002Fdesired capacity | Auto-scaling baseline | `describe-configuration-settings` |\n| Deployment policy | Deploy cost analysis | `describe-configuration-settings` |\n| Load balancer type (if any) | ELB cost | `describe-configuration-settings` |\n| VPC and subnet config | NAT Gateway analysis | `describe-configuration-settings` |\n| Managed updates config | Update scheduling | `describe-configuration-settings` |\n| .ebextensions count | Config audit | Check `.ebextensions\u002F` directory |\n| CloudWatch CPU utilization average | Right-sizing data | `aws cloudwatch get-metric-statistics` |\n| Environment purpose (prod or dev\u002Fstaging) | Topology decision | Ask the operator or check tags |\n\nIf any critical prerequisite is missing, note it in the assessment and\nrecommend gathering the data.\n\n## Opt 1 — Instance type right-sizing\n\nInstance right-sizing selects the smallest instance type that meets\nsteady-state resource requirements. Over-provisioned instances waste\nmoney; under-provisioned instances degrade performance.\n\n**Analyze CloudWatch metrics for right-sizing:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 1\".\n> Load when: gathering average CPU over 14 days for the right-sizing heuristic.\n\n**Right-sizing decision matrix:**\n\n| Current type | Avg CPU | Recommended | Savings\u002Fmo |\n|---|---|---|---|\n| t3.medium | \u003C 20% | t3.micro or t3.small | $15-23 |\n| t3.large | \u003C 20% | t3.small | $30 |\n| m5.large | \u003C 20% | t3.medium | $17 |\n| m5.xlarge | \u003C 30% | t3.large or m5.large | $31-62 |\n| c5.xlarge | \u003C 30% | t3.medium | $20 |\n\n**Update instance type:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 1\".\n> Load when: applying a right-sized instance type.\n\n## Opt 2 — Single-instance vs load-balanced\n\nThe topology choice (single-instance vs load-balanced) is the most\nimpactful cost optimization for dev\u002Fstaging environments.\n\n**When to use single-instance:**\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 2\".\n> Load when: deciding the topology; full when-to-use criteria for each.\n\n**Switch from load-balanced to single-instance:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 2\".\n> Load when: executing the topology switch to SingleInstance.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 2\".\n> Load when: the before\u002Fafter monthly cost of the topology switch.\n\n**Critical:** switching to single-instance also eliminates the need for\na NAT Gateway (the instance can use a public IP + IGW). Remove the NAT\nGateway separately after confirming the instance has a public IP.\n\n## Opt 3 — t3\u002Ft4g burstable instances for dev\n\nBurstable instances (t3, t4g) are ideal for dev\u002Fstaging environments\nwith intermittent workloads. They accumulate CPU credits during idle\nperiods and burst during active periods.\n\n| Instance | vCPU | Memory | Cost\u002Fmo (Linux) | Best for |\n|---|---|---|---|---|\n| t3.micro | 2 | 1 GB | $7.59 | Lightweight dev |\n| t3.small | 2 | 2 GB | $15.18 | Standard dev |\n| t3.medium | 2 | 4 GB | $30.37 | Dev with moderate load |\n| t4g.micro | 2 | 1 GB | $6.04 | ARM-based dev (Graviton) |\n| t4g.small | 2 | 2 GB | $12.07 | ARM-based dev (Graviton) |\n| t4g.medium | 2 | 4 GB | $24.14 | ARM-based dev (Graviton) |\n\n**Graviton (t4g) cost advantage:** t4g instances are ~20% cheaper than\nt3 instances and offer ~20% better price-performance. Use t4g if the\napplication supports ARM (most modern runtimes do).\n\n**Switch to a burstable instance:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 3\".\n> Load when: applying a t3\u002Ft4g burstable instance type.\n\n**Unlimited mode vs standard:** for dev environments, standard burst\nmode is sufficient. Unlimited mode charges for CPU credits beyond the\naccumulated balance — not worth it for dev.\n\n## Opt 4 — Deployment policy selection\n\nThe deployment policy affects both downtime and cost during deploys.\n\n**Check current deployment policy:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 4\".\n> Load when: checking the current deployment policy configuration.\n\n**Change deployment policy:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 4\".\n> Load when: switching between Rolling and Immutable deployment policies.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 4\".\n> Load when: the per-deploy cost math and prod\u002Fdev policy recommendation.\n\n## Opt 5 — Managed platform update scheduling\n\nManaged platform updates keep the environment on the latest platform\nversion. Schedule them during off-peak hours to minimize impact.\n\n**Check current managed update config:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 5\".\n> Load when: checking the current managed-update configuration.\n\n**Schedule managed updates during off-peak:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 5\".\n> Load when: enabling managed updates in an off-peak window.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 5\".\n> Load when: choosing minor\u002Fpatch\u002Fmajor update level and the recommended window.\n\n## Opt 6 — .ebextensions optimization\n\n`.ebextensions` files contain YAML configuration that Elastic Beanstalk\napplies during environment creation and deployment. Unused or redundant\nconfigurations slow down deployments and can create unnecessary\nresources.\n\n**Audit .ebextensions:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 6\".\n> Load when: auditing .ebextensions files for unused resources.\n\n**Common .ebextensions optimizations:**\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 6\".\n> Load when: cleaning up unused Resources\u002Ffiles\u002Fpackages\u002Fcommands entries.\n\n## Opt 7 — Auto-scaling policy tuning\n\nAuto-scaling policies determine how the environment scales in response\nto load. Over-provisioned auto-scaling wastes money; under-provisioned\nscales too slowly.\n\n**Check current auto-scaling config:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 7\".\n> Load when: checking current ASG and trigger settings.\n\n**Right-size capacity:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 7\".\n> Load when: setting min\u002Fmax\u002Fdesired capacity.\n\n**Tune scaling triggers:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 7\".\n> Load when: adjusting CPU thresholds and breach duration.\n\n## Opt 8 — NAT Gateway elimination\n\nFor single-instance dev\u002Fstaging environments with a public IP, the NAT\nGateway can be eliminated. The instance accesses the internet via the\nInternet Gateway (IGW), which is free.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 8\".\n> Load when: the per-AZ NAT Gateway cost math.\n\n**Verify the instance has a public IP before eliminating NAT:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 8\".\n> Load when: verifying the instance has a public IP before NAT removal.\n\n**Eliminate NAT Gateway:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 8\".\n> Load when: deleting the NAT Gateway and repointing the route table.\n\n**Critical:** NAT Gateway elimination is ONLY safe for dev\u002Fstaging. For\nproduction, instances should be in private subnets behind a NAT Gateway\nfor security.\n\n## Opt 9 — RDS integration cost\n\nElastic Beanstalk can provision an RDS instance as part of the\nenvironment or connect to an external RDS instance. Environment-\nattached RDS is convenient but has lifecycle coupling (the database is\ndeleted when the environment is terminated).\n\n**RDS cost optimization options:**\n\n| Approach | Cost | Best for |\n|---|---|---|\n| Environment-attached RDS | Same as standalone RDS | Dev (auto-provisioned) |\n| External shared RDS | Shared across environments | Multi-env (lower total) |\n| Aurora Serverless v2 | Scales to zero (min ACU) | Dev with idle periods |\n| RDS t-class (t3.micro) | ~$11\u002Fmo | Dev databases |\n\n**Key recommendations:**\n- For multiple dev\u002Fstaging environments, use a shared external RDS\n  instance with separate databases per environment. This is cheaper than\n  one RDS per environment.\n- For dev, use `db.t3.micro` or `db.t4g.micro` (Graviton, ~$9\u002Fmo).\n- Use Aurora Serverless v2 for dev with `MinCapacity=0.5` ACU to reduce\n  cost during idle periods.\n- Detach RDS from the environment to prevent accidental deletion on\n  environment termination.\n\n**Detach RDS from environment (for safety):**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 9\".\n> Load when: snapshotting, restoring standalone, and repointing RDS.\n\n## Opt 10 — Health check tuning\n\nHealth check tuning reduces false alarms and unnecessary auto-scaling\ntriggered by overly aggressive health check thresholds.\n\n**Check current health check config:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 10\".\n> Load when: checking the current health reporting configuration.\n\n**Common health check issues:**\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 10\".\n> Load when: diagnosing false health-check failures.\n\n**Tune health check:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 10\".\n> Load when: setting the health check path and enhanced reporting.\n\n## Opt 11 — Termination protection cleanup\n\nTermination protection prevents accidental environment deletion. For\nproduction, keep it enabled. For dev\u002Fstaging that should be torn down\nafter use, disabling termination protection allows cleanup.\n\n**Check termination protection:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 11\".\n> Load when: checking whether termination protection is enabled.\n\n**Disable for dev cleanup:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 11\".\n> Load when: allowing dev\u002Fstaging environment teardown.\n\n## NEVER do these things\n\n1. **NEVER switch a production environment to single-instance.** Single-\n   instance eliminates the ELB and reduces instances to 1. This removes\n   high availability and causes downtime during deploys and platform\n   updates. Single-instance is for dev\u002Fstaging ONLY.\n\n2. **NEVER eliminate the NAT Gateway for production environments.**\n   Production instances should be in private subnets behind a NAT\n   Gateway for security. NAT Gateway elimination is for dev\u002Fstaging\n   single-instance environments with a public IP.\n\n3. **NEVER use immutable deployment for dev\u002Fstaging.** Immutable\n   deployment doubles compute cost during the deploy window. For dev\u002F\n   staging where brief downtime is acceptable, use \"All at Once\" or\n   \"Rolling\" deployment. Immutable is for production zero-downtime.\n\n4. **NEVER right-size based on peak CPU only.** Right-size based on\n   average CPU utilization over a 7-14 day period. Using only peak CPU\n   leads to over-provisioning. Use CloudWatch metrics to analyze\n   steady-state patterns.\n\n5. **NEVER enable managed major version updates without testing.**\n   Major platform updates can break application compatibility. Always\n   set the update level to `minor` (backward compatible) and test major\n   updates manually in a staging environment first.\n\n6. **NEVER delete a NAT Gateway without verifying the instance has a\n   public IP.** Without a public IP and IGW route, the instance cannot\n   download dependencies or communicate with AWS services, causing\n   deployment failures.\n\n7. **NEVER leave RDS attached to a dev environment without termination\n   protection awareness.** If the environment is terminated, the RDS is\n   also terminated (unless a snapshot is configured). For important data,\n   detach RDS or enable deletion protection on the RDS instance.\n\n8. **NEVER set auto-scaling min=max for production.** This disables\n   auto-scaling entirely. Set min \u003C max to allow scaling. For dev,\n   min=max=1 is fine (no scaling needed).\n\n9. **NEVER ignore .ebextensions cleanup.** Unused resources in\n   .ebextensions slow down deployments and can create unnecessary AWS\n   resources that incur costs. Audit .ebextensions regularly.\n\n10. **NEVER change deployment policy during a deploy.** The deployment\n    policy change takes effect on the NEXT deploy, but changing it\n    during an active deploy can cause inconsistent state. Wait for the\n    current deploy to finish.\n\n## Output format\n\n```text\nEB_ENV: \u003Cenvironment-name> (\u003Cenvironment-id>)\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\nOPTIMIZATIONS:\n  [✓|~|✗] Topology: Single-instance | Load-balanced (instance count: \u003Cn>)\n  [✓|~|✗] Instance type: \u003Ccurrent> → \u003Crecommended> (\u003Creason>)\n  [✓|~|~] Deployment policy: \u003Ccurrent> → \u003Crecommended> (cost impact: \u003Cdescription>)\n  [✓|~|✗] Managed updates: \u003Cenabled\u002Fdisabled> \u003Cschedule> → \u003Crecommended schedule>\n  [✓|~|✗] NAT Gateway: \u003Cpresent\u002Feliminated> (\u003Ccost\u002Fmo>)\n  [✓|~|✗] Auto-scaling: min=\u003Cn> max=\u003Cn> desired=\u003Cn> → \u003Crecommendation>\n  [✓|~|✗] RDS: \u003Cattached\u002Fexternal> \u003Ctype> → \u003Crecommendation>\n  [✓|~|✗] .ebextensions: \u003Ccount> files → \u003Crecommendation>\n  [✓|~|✗] Health check: \u003Curl> \u003Cinterval> → \u003Crecommendation>\nCOST_IMPACT:\n  Current estimated cost: $\u003Camount>\u002Fmo\n  Optimized estimated cost: $\u003Camount>\u002Fmo\n  Estimated savings: $\u003Camount>\u002Fmo (\u003Cpercentage>%)\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-configuration-settings --environment-name \u003Cenv-name> --region \u003Cregion>\n  aws cloudwatch get-metric-statistics --namespace AWS\u002FEC2 --metric-name CPUUtilization ...\n```\n\n### Worked example — dev environment optimization\n\n```text\nEB_ENV: my-dev-app (e-abc123def)\nVERDICT: OPTIMIZED\nOPTIMIZATIONS:\n  [✓] Topology: switched from Load-balanced to Single-instance (instance count: 2 → 1)\n  [✓] Instance type: t3.medium → t3.small (avg CPU 12%, well within t3.small capacity)\n  [✓] Deployment policy: Immutable → All at Once (dev downtime acceptable, saves 2x deploy cost)\n  [✓] NAT Gateway: eliminated (instance has public IP, uses IGW)\n  [✓] Auto-scaling: min=2 max=4 desired=2 → min=1 max=1 desired=1 (no scaling for dev)\nCOST_IMPACT:\n  Current estimated cost: $98.73\u002Fmo\n  Optimized estimated cost: $15.18\u002Fmo\n  Estimated savings: $83.55\u002Fmo (85%)\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-configuration-settings --environment-name my-dev-app --region us-east-1\n  aws ec2 describe-nat-gateways --filter Name=state,Values=available --region us-east-1\n```\n\n### Worked example — production environment with further optimization\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Worked example\".\n> Load when: emitting a FURTHER_OPTIMIZATION_AVAILABLE assessment for production.\n\n## Error handling\n\n> **Moved verbatim** → [references\u002Ferror-handling.md](references\u002Ferror-handling.md) § \"Error handling\".\n> Load when: an update fails, instances lose internet after NAT removal, or a managed update breaks the app.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — FURTHER_OPTIMIZATION_AVAILABLE production assessment example\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — triage: topology-change failures, instance replacement, NAT removal outages, managed update breakage\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — read-only check commands per Opt (config settings, CPU metrics, public IP, termination protection, .ebextensions audit)\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — cost misconceptions deep dive, dependency-graph cascades and gotchas\n- [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) — cost math, deployment-policy cost analysis, managed-update scheduling, update\u002Fdetach\u002FNAT-removal commands\n- [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) — capacity\u002Ftrigger\u002Fhealth-check tuning commands\n\n## Domain\n\nAWS CloudOps \u002F Elastic Beanstalk Environment Cost & Performance\nOptimization.\n\n## AWS documentation\n\n- **Elastic Beanstalk overview** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002FWelcome.html\n- **Environment types** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.managing.ec2.html\n- **Deployment policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.rolling-version-deploy.html\n- **Managed platform updates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fenvironment-platform-update-managed.html\n- **Auto-scaling** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.managing.asg.html\n- **.ebextensions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Febextensions.html\n- **Health reporting** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fhealth-enhanced-status.html\n- **RDS with Beanstalk** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002FAWSHowTo.RDS.html\n- **Environment configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fcommand-options.html\n","# Elastic Beanstalk Environment Optimizer\n\nAn AWS CloudOps agent skill that optimizes Elastic Beanstalk\nenvironments for cost and performance with methodical analysis. The\nskill walks the operator through instance type right-sizing, single-\ninstance vs load-balanced topology, deployment policy cost trade-offs,\nmanaged platform update scheduling, auto-scaling policy tuning, NAT\nGateway elimination, RDS cost optimization, .ebextensions cleanup, and\nhealth check tuning, captures environment configuration, explains why\neach optimization matters, and emits an OPTIMIZED assessment with cost\nsavings estimates or FURTHER_OPTIMIZATION_AVAILABLE with specific\nrecommendations.\n\n## Activation keywords\n\nOptimize Elastic Beanstalk, EB cost optimization, Beanstalk right-size\ninstances, single-instance vs load-balanced, immutable deployment cost,\nmanaged platform update schedule, NAT Gateway elimination, ebextensions\ncleanup, Beanstalk auto-scaling tune, RDS shared cost.\n\n## STRICT output contract\n\nWhen this skill is invoked with an Elastic Beanstalk optimization\nrequest (cost reduction, right-sizing, deployment policy, auto-scaling,\nNAT Gateway, managed updates, or a partial configuration), the agent\nMUST respond with the OPTIMIZED assessment block defined in the\n\"Output format\" section using the literal all-caps labels `EB_ENV:`,\n`VERDICT:`, `OPTIMIZATIONS:`, `COST_IMPACT:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the assessment with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\noptimization pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf further optimizations are available, the verdict is\n`FURTHER_OPTIMIZATION_AVAILABLE` with specific recommendations in the\noptimizations list (marked `[~]`), and `OPTIMIZED` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Optimization prerequisites | Always — gather before optimizing |\n| Opt 1 — Instance type right-sizing | Instance selection |\n| Opt 2 — Single-instance vs load-balanced | Topology decision |\n| Opt 3 — t3\u002Ft4g burstable instances for dev | Dev\u002Fstaging cost |\n| Opt 4 — Deployment policy selection | Deploy cost vs downtime |\n| Opt 5 — Managed platform update scheduling | Update impact |\n| Opt 6 — .ebextensions optimization | Config cleanup |\n| Opt 7 — Auto-scaling policy tuning | Capacity efficiency |\n| Opt 8 — NAT Gateway elimination | Network cost |\n| Opt 9 — RDS integration cost | Database cost |\n| Opt 10 — Health check tuning | Alert false positives |\n| Opt 11 — Termination protection cleanup | Safety vs cost |\n| NEVER do these things | Review before signing off |\n| Output format | The literal assessment template |\n| references\u002Fcost-and-deployment.md | Cost + deployment detail |\n| references\u002Fautoscaling-and-health.md | Auto-scaling + health detail |\n\n## Mindset\n\n**One-line takeaway:** A dev\u002Fstaging Elastic Beanstalk environment on a\nsingle-instance topology (no ELB, no NAT Gateway) saves approximately\n60% compared to a load-balanced topology. Immutable deployments double\ncapacity temporarily during deploy. Managed platform updates should be\nscheduled during off-peak hours.\n\nThree misconceptions dominate Elastic Beanstalk cost optimization:\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Mindset misconceptions\".\n> Load when: you need the full numbers behind the topology \u002F immutable-deploy \u002F NAT misconceptions.\n\n## Configuration dependency graph (novel heuristic)\n\nElastic Beanstalk optimizations are interconnected. Changing the\ntopology (single-instance vs load-balanced) affects instance count, ELB\ncost, NAT Gateway necessity, and deployment policy options. Use this\ngraph to understand the cascading impact of each optimization.\n\n| Optimization | Direct savings | Cascading impact | Trade-off |\n|---|---|---|---|\n| Single-instance topology | ELB (~$18\u002Fmo), extra instances | Eliminates NAT Gateway need (if public IP) | No HA, brief deploy downtime |\n| NAT Gateway elimination | ~$32\u002Fmo per AZ + data processing | Requires public IP on instance | No private subnet outbound |\n| Instance right-sizing | Instance cost delta | May change burstable vs fixed | Right-size for steady-state, not peak |\n| Immutable → Rolling deploy | 2x cost during deploy → 1x | Less availability during deploy | Brief downtime (rolling) |\n| Managed updates off-peak | No direct savings | Reduces user impact | Requires maintenance window |\n| .ebextensions cleanup | No direct savings | Faster deployments, fewer resources | Requires config audit |\n| Auto-scaling tune | Right-size min\u002Fmax\u002Fdesired | Reduces over-provisioning | Requires traffic analysis |\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Configuration dependency graph\".\n> Load when: cascading impacts and gotchas of topology, NAT, right-sizing, and update windows.\n\n## Expert heuristic: single-instance savings breakdown\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Expert heuristic: single-instance savings breakdown\".\n> Load when: computing the actual monthly cost of load-balanced vs single-instance dev.\n\n## Expert heuristic: deployment policy cost analysis\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Expert heuristic: deployment policy cost analysis\".\n> Load when: comparing deploy policies by downtime and extra deploy-window cost.\n\n## Expert heuristic: managed platform update scheduling\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Expert heuristic: managed platform update scheduling\".\n> Load when: choosing an update level and a maintenance window.\n\n## Optimization prerequisites (gather before optimizing)\n\nBefore emitting optimization recommendations, gather these prerequisites.\nIf critical data is missing, the assessment may be incomplete.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Environment name and ID | Identifies the environment | `aws elasticbeanstalk describe-environments` |\n| Environment tier (web server or worker) | Determines applicable optimizations | `describe-environments --query` |\n| Current instance type(s) | Baseline for right-sizing | `describe-configuration-settings` |\n| Min\u002Fmax\u002Fdesired capacity | Auto-scaling baseline | `describe-configuration-settings` |\n| Deployment policy | Deploy cost analysis | `describe-configuration-settings` |\n| Load balancer type (if any) | ELB cost | `describe-configuration-settings` |\n| VPC and subnet config | NAT Gateway analysis | `describe-configuration-settings` |\n| Managed updates config | Update scheduling | `describe-configuration-settings` |\n| .ebextensions count | Config audit | Check `.ebextensions\u002F` directory |\n| CloudWatch CPU utilization average | Right-sizing data | `aws cloudwatch get-metric-statistics` |\n| Environment purpose (prod or dev\u002Fstaging) | Topology decision | Ask the operator or check tags |\n\nIf any critical prerequisite is missing, note it in the assessment and\nrecommend gathering the data.\n\n## Opt 1 — Instance type right-sizing\n\nInstance right-sizing selects the smallest instance type that meets\nsteady-state resource requirements. Over-provisioned instances waste\nmoney; under-provisioned instances degrade performance.\n\n**Analyze CloudWatch metrics for right-sizing:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 1\".\n> Load when: gathering average CPU over 14 days for the right-sizing heuristic.\n\n**Right-sizing decision matrix:**\n\n| Current type | Avg CPU | Recommended | Savings\u002Fmo |\n|---|---|---|---|\n| t3.medium | \u003C 20% | t3.micro or t3.small | $15-23 |\n| t3.large | \u003C 20% | t3.small | $30 |\n| m5.large | \u003C 20% | t3.medium | $17 |\n| m5.xlarge | \u003C 30% | t3.large or m5.large | $31-62 |\n| c5.xlarge | \u003C 30% | t3.medium | $20 |\n\n**Update instance type:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 1\".\n> Load when: applying a right-sized instance type.\n\n## Opt 2 — Single-instance vs load-balanced\n\nThe topology choice (single-instance vs load-balanced) is the most\nimpactful cost optimization for dev\u002Fstaging environments.\n\n**When to use single-instance:**\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 2\".\n> Load when: deciding the topology; full when-to-use criteria for each.\n\n**Switch from load-balanced to single-instance:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 2\".\n> Load when: executing the topology switch to SingleInstance.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 2\".\n> Load when: the before\u002Fafter monthly cost of the topology switch.\n\n**Critical:** switching to single-instance also eliminates the need for\na NAT Gateway (the instance can use a public IP + IGW). Remove the NAT\nGateway separately after confirming the instance has a public IP.\n\n## Opt 3 — t3\u002Ft4g burstable instances for dev\n\nBurstable instances (t3, t4g) are ideal for dev\u002Fstaging environments\nwith intermittent workloads. They accumulate CPU credits during idle\nperiods and burst during active periods.\n\n| Instance | vCPU | Memory | Cost\u002Fmo (Linux) | Best for |\n|---|---|---|---|---|\n| t3.micro | 2 | 1 GB | $7.59 | Lightweight dev |\n| t3.small | 2 | 2 GB | $15.18 | Standard dev |\n| t3.medium | 2 | 4 GB | $30.37 | Dev with moderate load |\n| t4g.micro | 2 | 1 GB | $6.04 | ARM-based dev (Graviton) |\n| t4g.small | 2 | 2 GB | $12.07 | ARM-based dev (Graviton) |\n| t4g.medium | 2 | 4 GB | $24.14 | ARM-based dev (Graviton) |\n\n**Graviton (t4g) cost advantage:** t4g instances are ~20% cheaper than\nt3 instances and offer ~20% better price-performance. Use t4g if the\napplication supports ARM (most modern runtimes do).\n\n**Switch to a burstable instance:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 3\".\n> Load when: applying a t3\u002Ft4g burstable instance type.\n\n**Unlimited mode vs standard:** for dev environments, standard burst\nmode is sufficient. Unlimited mode charges for CPU credits beyond the\naccumulated balance — not worth it for dev.\n\n## Opt 4 — Deployment policy selection\n\nThe deployment policy affects both downtime and cost during deploys.\n\n**Check current deployment policy:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 4\".\n> Load when: checking the current deployment policy configuration.\n\n**Change deployment policy:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 4\".\n> Load when: switching between Rolling and Immutable deployment policies.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 4\".\n> Load when: the per-deploy cost math and prod\u002Fdev policy recommendation.\n\n## Opt 5 — Managed platform update scheduling\n\nManaged platform updates keep the environment on the latest platform\nversion. Schedule them during off-peak hours to minimize impact.\n\n**Check current managed update config:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 5\".\n> Load when: checking the current managed-update configuration.\n\n**Schedule managed updates during off-peak:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 5\".\n> Load when: enabling managed updates in an off-peak window.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 5\".\n> Load when: choosing minor\u002Fpatch\u002Fmajor update level and the recommended window.\n\n## Opt 6 — .ebextensions optimization\n\n`.ebextensions` files contain YAML configuration that Elastic Beanstalk\napplies during environment creation and deployment. Unused or redundant\nconfigurations slow down deployments and can create unnecessary\nresources.\n\n**Audit .ebextensions:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 6\".\n> Load when: auditing .ebextensions files for unused resources.\n\n**Common .ebextensions optimizations:**\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 6\".\n> Load when: cleaning up unused Resources\u002Ffiles\u002Fpackages\u002Fcommands entries.\n\n## Opt 7 — Auto-scaling policy tuning\n\nAuto-scaling policies determine how the environment scales in response\nto load. Over-provisioned auto-scaling wastes money; under-provisioned\nscales too slowly.\n\n**Check current auto-scaling config:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 7\".\n> Load when: checking current ASG and trigger settings.\n\n**Right-size capacity:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 7\".\n> Load when: setting min\u002Fmax\u002Fdesired capacity.\n\n**Tune scaling triggers:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 7\".\n> Load when: adjusting CPU thresholds and breach duration.\n\n## Opt 8 — NAT Gateway elimination\n\nFor single-instance dev\u002Fstaging environments with a public IP, the NAT\nGateway can be eliminated. The instance accesses the internet via the\nInternet Gateway (IGW), which is free.\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 8\".\n> Load when: the per-AZ NAT Gateway cost math.\n\n**Verify the instance has a public IP before eliminating NAT:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 8\".\n> Load when: verifying the instance has a public IP before NAT removal.\n\n**Eliminate NAT Gateway:**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 8\".\n> Load when: deleting the NAT Gateway and repointing the route table.\n\n**Critical:** NAT Gateway elimination is ONLY safe for dev\u002Fstaging. For\nproduction, instances should be in private subnets behind a NAT Gateway\nfor security.\n\n## Opt 9 — RDS integration cost\n\nElastic Beanstalk can provision an RDS instance as part of the\nenvironment or connect to an external RDS instance. Environment-\nattached RDS is convenient but has lifecycle coupling (the database is\ndeleted when the environment is terminated).\n\n**RDS cost optimization options:**\n\n| Approach | Cost | Best for |\n|---|---|---|\n| Environment-attached RDS | Same as standalone RDS | Dev (auto-provisioned) |\n| External shared RDS | Shared across environments | Multi-env (lower total) |\n| Aurora Serverless v2 | Scales to zero (min ACU) | Dev with idle periods |\n| RDS t-class (t3.micro) | ~$11\u002Fmo | Dev databases |\n\n**Key recommendations:**\n- For multiple dev\u002Fstaging environments, use a shared external RDS\n  instance with separate databases per environment. This is cheaper than\n  one RDS per environment.\n- For dev, use `db.t3.micro` or `db.t4g.micro` (Graviton, ~$9\u002Fmo).\n- Use Aurora Serverless v2 for dev with `MinCapacity=0.5` ACU to reduce\n  cost during idle periods.\n- Detach RDS from the environment to prevent accidental deletion on\n  environment termination.\n\n**Detach RDS from environment (for safety):**\n\n> **Moved verbatim** → [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) § \"Opt 9\".\n> Load when: snapshotting, restoring standalone, and repointing RDS.\n\n## Opt 10 — Health check tuning\n\nHealth check tuning reduces false alarms and unnecessary auto-scaling\ntriggered by overly aggressive health check thresholds.\n\n**Check current health check config:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 10\".\n> Load when: checking the current health reporting configuration.\n\n**Common health check issues:**\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 10\".\n> Load when: diagnosing false health-check failures.\n\n**Tune health check:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 10\".\n> Load when: setting the health check path and enhanced reporting.\n\n## Opt 11 — Termination protection cleanup\n\nTermination protection prevents accidental environment deletion. For\nproduction, keep it enabled. For dev\u002Fstaging that should be torn down\nafter use, disabling termination protection allows cleanup.\n\n**Check termination protection:**\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"Opt 11\".\n> Load when: checking whether termination protection is enabled.\n\n**Disable for dev cleanup:**\n\n> **Moved verbatim** → [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) § \"Opt 11\".\n> Load when: allowing dev\u002Fstaging environment teardown.\n\n## NEVER do these things\n\n1. **NEVER switch a production environment to single-instance.** Single-\n   instance eliminates the ELB and reduces instances to 1. This removes\n   high availability and causes downtime during deploys and platform\n   updates. Single-instance is for dev\u002Fstaging ONLY.\n\n2. **NEVER eliminate the NAT Gateway for production environments.**\n   Production instances should be in private subnets behind a NAT\n   Gateway for security. NAT Gateway elimination is for dev\u002Fstaging\n   single-instance environments with a public IP.\n\n3. **NEVER use immutable deployment for dev\u002Fstaging.** Immutable\n   deployment doubles compute cost during the deploy window. For dev\u002F\n   staging where brief downtime is acceptable, use \"All at Once\" or\n   \"Rolling\" deployment. Immutable is for production zero-downtime.\n\n4. **NEVER right-size based on peak CPU only.** Right-size based on\n   average CPU utilization over a 7-14 day period. Using only peak CPU\n   leads to over-provisioning. Use CloudWatch metrics to analyze\n   steady-state patterns.\n\n5. **NEVER enable managed major version updates without testing.**\n   Major platform updates can break application compatibility. Always\n   set the update level to `minor` (backward compatible) and test major\n   updates manually in a staging environment first.\n\n6. **NEVER delete a NAT Gateway without verifying the instance has a\n   public IP.** Without a public IP and IGW route, the instance cannot\n   download dependencies or communicate with AWS services, causing\n   deployment failures.\n\n7. **NEVER leave RDS attached to a dev environment without termination\n   protection awareness.** If the environment is terminated, the RDS is\n   also terminated (unless a snapshot is configured). For important data,\n   detach RDS or enable deletion protection on the RDS instance.\n\n8. **NEVER set auto-scaling min=max for production.** This disables\n   auto-scaling entirely. Set min \u003C max to allow scaling. For dev,\n   min=max=1 is fine (no scaling needed).\n\n9. **NEVER ignore .ebextensions cleanup.** Unused resources in\n   .ebextensions slow down deployments and can create unnecessary AWS\n   resources that incur costs. Audit .ebextensions regularly.\n\n10. **NEVER change deployment policy during a deploy.** The deployment\n    policy change takes effect on the NEXT deploy, but changing it\n    during an active deploy can cause inconsistent state. Wait for the\n    current deploy to finish.\n\n## Output format\n\n```text\nEB_ENV: \u003Cenvironment-name> (\u003Cenvironment-id>)\nVERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE\nOPTIMIZATIONS:\n  [✓|~|✗] Topology: Single-instance | Load-balanced (instance count: \u003Cn>)\n  [✓|~|✗] Instance type: \u003Ccurrent> → \u003Crecommended> (\u003Creason>)\n  [✓|~|~] Deployment policy: \u003Ccurrent> → \u003Crecommended> (cost impact: \u003Cdescription>)\n  [✓|~|✗] Managed updates: \u003Cenabled\u002Fdisabled> \u003Cschedule> → \u003Crecommended schedule>\n  [✓|~|✗] NAT Gateway: \u003Cpresent\u002Feliminated> (\u003Ccost\u002Fmo>)\n  [✓|~|✗] Auto-scaling: min=\u003Cn> max=\u003Cn> desired=\u003Cn> → \u003Crecommendation>\n  [✓|~|✗] RDS: \u003Cattached\u002Fexternal> \u003Ctype> → \u003Crecommendation>\n  [✓|~|✗] .ebextensions: \u003Ccount> files → \u003Crecommendation>\n  [✓|~|✗] Health check: \u003Curl> \u003Cinterval> → \u003Crecommendation>\nCOST_IMPACT:\n  Current estimated cost: $\u003Camount>\u002Fmo\n  Optimized estimated cost: $\u003Camount>\u002Fmo\n  Estimated savings: $\u003Camount>\u002Fmo (\u003Cpercentage>%)\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-configuration-settings --environment-name \u003Cenv-name> --region \u003Cregion>\n  aws cloudwatch get-metric-statistics --namespace AWS\u002FEC2 --metric-name CPUUtilization ...\n```\n\n### Worked example — dev environment optimization\n\n```text\nEB_ENV: my-dev-app (e-abc123def)\nVERDICT: OPTIMIZED\nOPTIMIZATIONS:\n  [✓] Topology: switched from Load-balanced to Single-instance (instance count: 2 → 1)\n  [✓] Instance type: t3.medium → t3.small (avg CPU 12%, well within t3.small capacity)\n  [✓] Deployment policy: Immutable → All at Once (dev downtime acceptable, saves 2x deploy cost)\n  [✓] NAT Gateway: eliminated (instance has public IP, uses IGW)\n  [✓] Auto-scaling: min=2 max=4 desired=2 → min=1 max=1 desired=1 (no scaling for dev)\nCOST_IMPACT:\n  Current estimated cost: $98.73\u002Fmo\n  Optimized estimated cost: $15.18\u002Fmo\n  Estimated savings: $83.55\u002Fmo (85%)\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-configuration-settings --environment-name my-dev-app --region us-east-1\n  aws ec2 describe-nat-gateways --filter Name=state,Values=available --region us-east-1\n```\n\n### Worked example — production environment with further optimization\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Worked example\".\n> Load when: emitting a FURTHER_OPTIMIZATION_AVAILABLE assessment for production.\n\n## Error handling\n\n> **Moved verbatim** → [references\u002Ferror-handling.md](references\u002Ferror-handling.md) § \"Error handling\".\n> Load when: an update fails, instances lose internet after NAT removal, or a managed update breaks the app.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — FURTHER_OPTIMIZATION_AVAILABLE production assessment example\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — triage: topology-change failures, instance replacement, NAT removal outages, managed update breakage\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — read-only check commands per Opt (config settings, CPU metrics, public IP, termination protection, .ebextensions audit)\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — cost misconceptions deep dive, dependency-graph cascades and gotchas\n- [references\u002Fcost-and-deployment.md](references\u002Fcost-and-deployment.md) — cost math, deployment-policy cost analysis, managed-update scheduling, update\u002Fdetach\u002FNAT-removal commands\n- [references\u002Fautoscaling-and-health.md](references\u002Fautoscaling-and-health.md) — capacity\u002Ftrigger\u002Fhealth-check tuning commands\n\n## Domain\n\nAWS CloudOps \u002F Elastic Beanstalk Environment Cost & Performance\nOptimization.\n\n## AWS documentation\n\n- **Elastic Beanstalk overview** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002FWelcome.html\n- **Environment types** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.managing.ec2.html\n- **Deployment policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.rolling-version-deploy.html\n- **Managed platform updates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fenvironment-platform-update-managed.html\n- **Auto-scaling** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.managing.asg.html\n- **.ebextensions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Febextensions.html\n- **Health reporting** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fhealth-enhanced-status.html\n- **RDS with Beanstalk** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002FAWSHowTo.RDS.html\n- **Environment configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fcommand-options.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, elastic-beanstalk, cost-optimization, cloudops, optimize, compute, right-sizing, auto-scaling, deployment-policy, managed-platform, nat-gateway, ebextensions","1","Jacky Chan — AWS Community Builder","aws-cloudops","Compute","0.1.0","aws, elastic beanstalk, cost optimization, instance right-sizing, single-instance, load-balanced, t3 burstable, t4g burstable, managed platform update, ebextensions, deployment policy, immutable deploy, rolling deploy, worker tier, auto-scaling, nat gateway, rds, health check, cloudops, optimize","optimize","high","false","capability","Invoke when the user wants to optimize Elastic Beanstalk environments for cost, right-size instance types, choose single-instance vs load- balanced topology, reduce deployment costs, tune auto-scaling policies, eliminate NAT Gateway for dev\u002Fstaging, schedule managed platform updates, clean up .ebextensions, or optimize RDS integration costs. Do NOT invoke for ECS\u002FEKS optimization, Lambda optimization, or EC2 Auto Scaling Groups (non-Beanstalk).","aws-orchestrator","true","OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live optimization - AWS CLI v2 with elasticbeanstalk, ec2, rds, elasticloadbalancing, and cloudwatch access. Works with Terraform aws_elastic_beanstalk_environment resources and CloudFormation AWS::ElasticBeanstalk templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Felastic-beanstalk-environment-optimizer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill elastic-beanstalk-environment-optimizer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill elastic-beanstalk-environment-optimizer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill elastic-beanstalk-environment-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5837,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fdev-single-instance-migration.md",853,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fbaselines\u002Fdev-single-instance-migration.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fmanaged-update-schedule.md",830,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fbaselines\u002Fmanaged-update-schedule.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fnat-gateway-elimination.md",713,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fbaselines\u002Fnat-gateway-elimination.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fprod-immutable-deploy-cost.md",899,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fbaselines\u002Fprod-immutable-deploy-cost.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Frds-shared-cost.md",792,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fbaselines\u002Frds-shared-cost.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1828,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",10630,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fdev-single-instance-migration.md",579,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fprompts\u002Fdev-single-instance-migration.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fmanaged-update-schedule.md",534,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fprompts\u002Fmanaged-update-schedule.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fnat-gateway-elimination.md",472,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fprompts\u002Fnat-gateway-elimination.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fprod-immutable-deploy-cost.md",561,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fprompts\u002Fprod-immutable-deploy-cost.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Frds-shared-cost.md",524,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fevals\u002Fprompts\u002Frds-shared-cost.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",6551,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",2723,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fautoscaling-and-health.md",14925,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Freferences\u002Fautoscaling-and-health.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fcost-and-deployment.md",19901,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Freferences\u002Fcost-and-deployment.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fdiagnostic-commands.md",3269,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Freferences\u002Fdiagnostic-commands.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Ferror-handling.md",1239,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Freferences\u002Ferror-handling.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"references\u002Fworked-examples.md",1606,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Freferences\u002Fworked-examples.md",{"path":147,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":148,"sourceHtmlUrl":149},"skill.usf.yaml",4556,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-environment-optimizer\u002Fskill.usf.yaml",[151,158,165,172,179,186],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":187,"name":188,"nameZh":6,"description":189,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":190,"categories":191,"keywords":192,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]