[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A818YPHTJ3K08DKTJ9TVHY":3,"skill-same:01M7A818YPHTJ3K08DKTJ9TVHY":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},"01M7A818YPHTJ3K08DKTJ9TVHY","elastic-beanstalk-deployer",null,"Provisions AWS Elastic Beanstalk environments with production defaults: application creation, environment tier (web server vs worker), platform (Amazon Linux 2023, Node.js\u002FPython\u002FJava\u002FGo\u002F.NET), deployment policies (all at once, rolling, rolling with additional batch, immutable, traffic splitting), managed platform updates, enhanced health reporting, load balancer (ALB vs NLB), EC2 instance profile, service role, VPC configuration, security groups, auto scaling group, RDS integration, CNAME swap for blue-green, .ebextensions and .platform for infrastructure as code. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating an Elastic Beanstalk environment, configuring blue-green with CNAME swap, setting up worker tier with SQS, or managing platform updates. Triggers: create elastic beanstalk environment, deploy beanstalk application, beanstalk blue-green cname swap, beanstalk worker tier sqs, beanstalk immutable deployment, ebextensions, beanstalk managed updates.","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-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: elastic-beanstalk-deployer\ndescription: 'Provisions AWS Elastic Beanstalk environments with production defaults: application creation, environment tier (web server vs worker), platform (Amazon Linux 2023, Node.js\u002FPython\u002FJava\u002FGo\u002F.NET), deployment policies (all at once, rolling, rolling with additional batch, immutable, traffic splitting), managed platform updates, enhanced health reporting, load balancer (ALB vs NLB), EC2 instance profile, service role, VPC configuration, security groups, auto scaling group, RDS integration, CNAME swap for blue-green, .ebextensions and .platform for infrastructure as code. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating an Elastic Beanstalk environment, configuring blue-green with CNAME swap, setting up worker tier with SQS, or managing platform updates. Triggers: create elastic beanstalk environment, deploy beanstalk application, beanstalk blue-green cname swap, beanstalk worker tier sqs, beanstalk immutable deployment, ebextensions, beanstalk managed updates.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with elasticbeanstalk and iam access, plus S3 for application version source bundles. Works with Terraform aws_elastic_beanstalk_application \u002F aws_elastic_beanstalk_environment resources and CloudFormation AWS::ElasticBeanstalk::Application \u002F AWS::ElasticBeanstalk::Environment 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: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, elastic-beanstalk, cloudops, deploy, compute, provisioning, blue-green, worker-tier, ebextensions, amazon-linux-2023, immutable-deployment\n  dependencies: aws-orchestrator\n  keywords: aws, elastic beanstalk, beanstalk, compute, cloudops, deploy, provisioning, blue-green, cname swap, worker tier, web server tier, ebextensions, platform, amazon linux 2023, immutable deployment, rolling deployment, managed updates, application version, environment tier\n  when_to_use: Invoke when the user wants to create or configure an AWS Elastic Beanstalk application or environment (web server or worker tier), deploy an application version, configure blue-green deployment via CNAME swap, set up .ebextensions for infrastructure as code, choose a deployment policy, configure managed platform updates, integrate RDS, or manage the application version lifecycle. Do NOT invoke for Amazon ECS\u002FEKS (use container skills), AWS App Runner (use apprunner skills), or EC2 auto scaling groups standalone (use EC2 skills).\n---\n\n# Elastic Beanstalk Deployer\n\nAn AWS CloudOps agent skill that provisions Elastic Beanstalk\napplications and environments with correct defaults. The skill walks\nthe operator through application creation, environment tier selection\n(web server vs worker), platform (Amazon Linux 2023 with managed\nruntimes), deployment policy selection, managed platform updates,\nenhanced health reporting, load balancer choice, instance profile and\nservice role setup, VPC and security group configuration, auto scaling,\nRDS integration, .ebextensions and .platform hooks, CNAME swap for\nblue-green, and application version lifecycle management, captures\narchitecture decisions, explains why each default matters, and emits\na READY_TO_DEPLOY checklist with copy-pasteable verification commands.\n\n## Activation keywords\n\ncreate Elastic Beanstalk environment, deploy Beanstalk application,\nBeanstalk blue-green CNAME swap, Beanstalk worker tier SQS, Beanstalk\nimmutable deployment, .ebextensions, Beanstalk managed updates,\nBeanstalk platform Amazon Linux 2023, Beanstalk deployment policy,\nBeanstalk enhanced health reporting.\n\n## STRICT output contract\n\nWhen this skill is invoked with an Elastic-Beanstalk-provisioning\nrequest (create an environment, deploy an application version, set up\nblue-green with CNAME swap, configure worker tier, choose a deployment\npolicy, or a partial configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in the \"Output format\" section using\nthe literal all-caps labels `ELASTIC_BEANSTALK:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the\nchecklist with prose, headings, or disclaimers — emit the block as the\nfirst lines of the response. This contract is what assertion-based\nevals and downstream provisioning pipelines rely on; deviating from\nthe literal labels breaks automation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Application and environment model | Core Beanstalk model |\n| Step 2 — Environment tier (web server vs worker) | Tier selection |\n| Step 3 — Platform (Amazon Linux 2023, runtimes) | Platform branch |\n| Step 4 — Deployment policies | Deployment strategy |\n| Step 5 — Managed platform updates | Patching cadence |\n| Step 6 — Enhanced health reporting | Health monitoring |\n| Step 7 — Load balancer (ALB vs NLB) | LB selection |\n| Step 8 — Instance profile and service role | IAM roles |\n| Step 9 — VPC, subnets, security groups | Network placement |\n| Step 10 — Auto scaling group | Capacity |\n| Step 11 — .ebextensions and .platform | Infrastructure as code |\n| Step 12 — RDS integration | Database attach |\n| Step 13 — CNAME swap for blue-green | Zero-downtime cutover |\n| Step 14 — Application version lifecycle | Version management |\n| Step 15 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fdeployment-policies.md | Deployment policy detail |\n| references\u002Febextensions-and-platforms.md | .ebextensions + platform detail |\n\n## Mindset\n\n**One-line takeaway:** Elastic Beanstalk is a managed PaaS that\nprovisions an entire application stack (ELB + ASG + EC2 + deployment\npipeline) from a source bundle. The environment tier (web server vs\nworker) determines whether the ELB serves HTTP traffic or the SQS\ndaemon pulls messages. The deployment policy determines the trade-off\nbetween deployment speed and availability during the cutover.\n\nThree misconceptions dominate Elastic Beanstalk misdesign at\nprovisioning time:\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Mindset misconceptions\".\n> Load when: you need the complete argument behind the three Beanstalk misdesign misconceptions.\n\n## Configuration dependency graph (novel heuristic)\n\nElastic Beanstalk configurations are NOT independent. The service role\nmust exist before the environment can manage ELB\u002FASG on your behalf.\nThe instance profile must exist before EC2 instances can assume it.\nThe platform branch must be compatible with the solution stack. Use\nthis graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| Service role | IAM trust policy allowing `elasticbeanstalk.amazonaws.com` | environment creation FAILS if the service role lacks `AWSElasticBeanstalkManagedRole` or equivalent inline permissions | ELB, ASG, CloudWatch management by Beanstalk |\n| Instance profile | IAM role with EC2 trust policy + S3 read for source bundle | EC2 instances launch but CANNOT pull the application version from S3; deployment appears stuck in \"Pending\" | application code deployment to each instance |\n| Platform \u002F solution stack | solution stack name must match an available Beanstalk platform ARN | using a deprecated platform (Amazon Linux 2 AMI) silently deploys on EOL branch; must use Amazon Linux 2023 | runtime (Node.js, Python, Java, Go, .NET) |\n| Load balancer scheme | VPC has public subnets for internet-facing; private subnets for internal | NLB is NOT supported on all platform branches; Docker multi-container requires ALB | traffic distribution to EC2 instances |\n| Deployment policy | ALB required for traffic splitting; immutable requires extra capacity | all-at-once causes full downtime if the new version is broken | cutover strategy and blast radius |\n| Worker tier | SQS queue ARN required; environment tier must be `SQS\u002FHTTP` | without `aws:elasticbeanstalk:sqsd` namespace config, the SQS daemon does not start | background message processing |\n| .ebextensions | source bundle must include `.ebextensions\u002F*.config` in the correct path | syntax errors cause the entire deployment to fail; ordering is lexicographic | infrastructure as code (RDS, DynamoDB, custom resources) |\n| CNAME swap | BOTH environments must be `Ready` and `Green`\u002F`Blue` health | swapping CNAMEs on an environment that is still launching causes DNS to point at a non-functional endpoint | blue-green zero-downtime cutover |\n| Managed platform updates | must not conflict with deployment window | managed updates and deployments can conflict; managed updates are suppressed during an active deployment | automated patching and platform minor version upgrades |\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Configuration dependency graph\".\n> Load when: sequencing the service role \u002F instance profile \u002F platform \u002F LB \u002F worker-tier dependencies.\n\n## Expert heuristic: immutable deployment for zero downtime\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: immutable deployment\".\n> Load when: choosing a deployment policy by blast radius; includes the decision tree.\n\n## Expert heuristic: .ebextensions for infrastructure as code\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: .ebextensions\".\n> Load when: authoring .ebextensions IaC (directory layout, option_settings\u002FResources\u002Ffiles\u002Fcommands).\n\n## Expert heuristic: CNAME swap for blue-green\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: CNAME swap\".\n> Load when: running the blue-green swap flow and reasoning about DNS TTL overlap.\n\n## Expert heuristic: .ebextensions YAML syntax gotchas\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: .ebextensions YAML syntax gotchas\".\n> Load when: a .config file is silently skipped or a deploy fails with no clear error.\n\n## Expert heuristic: worker tier SQS visibility timeout auto-configuration\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: worker tier SQS visibility timeout auto-configuration\".\n> Load when: configuring worker-tier SQS visibility timeout, HTTP timeout, or DLQ behavior.\n\n## Expert heuristic: .platform\u002Fhooks vs .ebextensions ordering\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: .platform\u002Fhooks vs .ebextensions ordering\".\n> Load when: mixing .ebextensions and .platform\u002Fhooks or debugging hook phase ordering.\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Service role exists | Beanstalk needs `aws-elasticbeanstalk-service-role` to manage ELB\u002FASG | `aws iam get-role --role-name aws-elasticbeanstalk-service-role` |\n| Instance profile exists | EC2 instances need a profile to pull the source bundle | `aws iam get-instance-profile --instance-profile-name aws-elasticbeanstalk-ec2-role` |\n| S3 bucket for source bundle | Application version must be uploaded to S3 first | `aws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>` |\n| Solution stack available | Must match a valid platform ARN | `aws elasticbeanstalk list-available-solution-stacks` |\n| VPC and subnets identified | Environment needs subnets for EC2 and ELB | `aws ec2 describe-subnets` |\n| Security group(s) identified | EC2 and ELB need security groups | `aws ec2 describe-security-groups` |\n| Application exists (or will be created) | Environments belong to an application | `aws elasticbeanstalk describe-applications` |\n| SQS queue (for worker tier) | Worker environments need an SQS queue ARN | `aws sqs get-queue-url --queue-name \u003Cname>` |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Application and environment model\n\nElastic Beanstalk organizes resources into applications and\nenvironments. An application is a logical container; environments are\ndeployable instances of the application.\n\n| Entity | Purpose | API call |\n|---|---|---|\n| Application | Container for environments, versions, configurations | `create-application` |\n| Application version | A specific source bundle in S3, labeled and deployable | `create-application-version` |\n| Environment | A running deployment (web server or worker tier) | `create-environment` |\n| Configuration template | Saved configuration for reuse across environments | `create-configuration-template` |\n\n**Typical flow:** create application, upload source bundle to S3,\ncreate application version, create environment using that version.\n\n## Step 2 — Environment tier (web server vs worker)\n\n| Feature | Web server tier | Worker tier |\n|---|---|---|\n| Traffic model | HTTP requests via ELB | Messages pulled from SQS queue |\n| Load balancer | ALB or NLB (required for multi-instance) | No ELB (SQS daemon on each instance) |\n| Entry point | nginx\u002FApache forwards to app | SQS daemon posts body to localhost |\n| Health checks | ELB health check + enhanced health | Enhanced health (no ELB health check) |\n| Auto scaling trigger | CPU, request count, latency | Queue depth (ApproximateNumberOfMessages) |\n| Tier name | `WebServer` | `Worker` |\n\n**Worker tier specifics:** the SQS daemon polls the configured queue,\nPOSTs each message body to the application's HTTP endpoint on\n`localhost:5000` (configurable), and deletes the message on 200 OK.\nOn 4xx\u002F5xx, the message is retried up to `maxReceiveCount`, then sent\nto a dead-letter queue.\n\n## Step 3 — Platform (Amazon Linux 2023, runtimes)\n\nBeanstalk platforms are versioned AMIs with a managed runtime stack.\nAmazon Linux 2023 (AL2023) is the current generation platform.\n\n| Runtime | Solution stack example (AL2023) |\n|---|---|\n| Node.js | `64bit Amazon Linux 2023 v6.0.4 running Node.js 20` |\n| Python | `64bit Amazon Linux 2023 v6.0.4 running Python 3.11` |\n| Java | `64bit Amazon Linux 2023 v6.0.4 running Corretto 21` |\n| Go | `64bit Amazon Linux 2023 v6.0.4 running Go 1.21` |\n| .NET | `64bit Amazon Linux 2023 v6.0.4 running .NET 8` |\n\n**Platform branch:** each runtime has a platform branch that receives\nmanaged updates (security patches, minor version bumps) within its\nlifecycle.\n\n**Deprecation:** Amazon Linux 2 (AL2) platform branches are in\ndeprecation. New environments MUST use Amazon Linux 2023 branches.\n\n## Step 4 — Deployment policies\n\n| Policy | How it works | Downtime | Cost during deploy | Best for |\n|---|---|---|---|---|\n| All at once | Deploys to all instances simultaneously | Full fleet during deploy | No extra | Dev, testing |\n| Rolling | Deploys in batches; takes batch out of service | Reduced capacity per batch | No extra | Production (cost-sensitive) |\n| Rolling + additional batch | Spins up temp instances, deploys in batches | No capacity loss | Temp instances | Production (balanced) |\n| Immutable | Launches fresh ASG with new version, swaps when healthy | None (old fleet serves during deploy) | Double capacity | Production (safest) |\n| Traffic splitting | Routes a percentage of traffic to new version via ALB | None; canary-style | Temp instances | Production (canary) |\n\n**Immutable** is the recommended default for production environments.\nIt provides the safest cutover: the old fleet remains untouched until\nthe new fleet passes health checks.\n\n**Traffic splitting** requires an ALB and supports configurable\npercentage (e.g., 10% canary for 5 minutes, then 100%). If health\nchecks fail during the canary window, Beanstalk rolls back\nautomatically.\n\n## Step 5 — Managed platform updates\n\nManaged platform updates apply minor version patches and security fixes\nto the platform within a configurable window.\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 5\".\n> Load when: enabling managed updates and setting the maintenance window.\n\nManaged updates are suppressed during an active deployment. Schedule\ndeployments outside the managed update window to avoid conflicts.\n\n## Step 6 — Enhanced health reporting\n\nEnhanced health reporting provides detailed metrics (CPU, latency,\nrequest count, status codes) aggregated from EC2 instances and the ELB.\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 6\".\n> Load when: switching an environment to enhanced health reporting.\n\nEnhanced health is REQUIRED for blue-green CNAME swap health checks\nand for managed platform updates to work correctly.\n\n## Step 7 — Load balancer (ALB vs NLB)\n\n| Feature | ALB | NLB |\n|---|---|---|\n| Protocol | HTTP\u002FHTTPS | TCP\u002FUDP\u002FTLS |\n| Health check | HTTP path | TCP port |\n| Traffic splitting | Supported | NOT supported |\n| Sticky sessions | Cookie-based | Source IP (limited) |\n| WebSocket | Supported | N\u002FA (TCP passthrough) |\n| Cost | LCU-based | Per-hour + per-GB |\n\nALB is the default and supports all deployment policies including\ntraffic splitting. NLB is for TCP-based workloads or ultra-low-latency\nrequirements where HTTP features are not needed. **Single-instance**\nenvironments have no ELB — the EC2 instance is directly exposed.\n\n## Step 8 — Instance profile and service role\n\nThese are TWO separate IAM roles with distinct purposes.\n\n**Service role** (assumed BY Beanstalk): must have trust policy\nallowing `elasticbeanstalk.amazonaws.com` and the\n`AWSElasticBeanstalkManagedRole` managed policy attached. This role\nmanages ELB, ASG, and CloudWatch resources on your behalf.\n\n**Instance profile** (assumed BY EC2 instances): must have trust policy\nallowing `ec2.amazonaws.com`, the `AWSElasticBeanstalkWebTier` managed\npolicy (includes S3 read for source bundles), and be attached as an\ninstance profile.\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"IAM pre-flight verification commands\".\n> Load when: verifying the service role and instance profile before create-environment.\n\n**Critical:** the instance profile MUST have S3 read access to the\nbucket where the source bundle is stored. Without it, EC2 instances\nlaunch but cannot pull the application code — the deployment hangs in\n\"Pending\" indefinitely.\n\n## Step 9 — VPC, subnets, security groups\n\nFor VPC-mode environments, specify public and private subnets and\nsecurity groups:\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 9\".\n> Load when: launching the environment into a specific VPC\u002Fsubnets\u002Fsecurity groups.\n\nFor load-balanced environments, the ELB and EC2 instances should be in\nthe same subnets (or ELB in public subnets, EC2 in private subnets).\nFor single-instance, the EC2 instance needs a public IP or a NAT\ngateway for internet egress.\n\n## Step 10 — Auto scaling group\n\nBeanstalk provisions an ASG behind the environment. Configure min\u002Fmax\nsize and scaling triggers:\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 10\".\n> Load when: setting ASG min\u002Fmax and CPU trigger thresholds.\n\nFor worker tier, scale on SQS queue depth: use\n`MeasureName=ApproximateNumberOfMessagesVisible` with lower\u002Fupper\nthresholds based on expected processing time.\n\n## Step 11 — .ebextensions and .platform\n\n.ebextensions provide infrastructure as code within the source bundle.\n\n> **Moved verbatim** → [references\u002Febextensions-and-platforms.md](references\u002Febextensions-and-platforms.md) § \"Step 11 .ebextensions config examples\".\n> Load when: writing the 01-options \u002F 02-rds \u002F 03-hooks .config files.\n\n**`.platform\u002Fhooks\u002F`** is the AL2023-native hook directory, organized by phase: `prebuild\u002F`, `predeploy\u002F`, `postdeploy\u002F`.\n\n## Step 12 — RDS integration\n\nBeanstalk can attach an RDS instance via .ebextensions. This is\nconvenient for development but has lifecycle implications.\n\n| Feature | Attached RDS | External RDS |\n|---|---|---|\n| Creation | Created with environment via .ebextensions | Pre-existing RDS instance |\n| Lifecycle | Terminated WITH environment (unless Retain) | Independent lifecycle |\n| Connection string | Passed as environment properties | Pass manually as env property |\n| Best for | Dev, testing | Production (separate lifecycle) |\n\n**Critical:** attached RDS is terminated when the environment is\nterminated, UNLESS `DeletionPolicy: Retain` is set. For production, use\nan external RDS instance and pass the connection string as an\nenvironment property.\n\n## Step 13 — CNAME swap for blue-green\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 13\".\n> Load when: executing the green→swap→verify→terminate blue sequence.\n\n## Step 14 — Application version lifecycle\n\nApplication versions accumulate over time. Beanstalk has a per-\napplication version limit (500 by default, soft limit).\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 14\".\n> Load when: creating application versions or applying the max-count lifecycle policy.\n\n## Step 15 — Recent features\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Recent AWS features 2023-2026\".\n> Load when: deciding on Graviton, traffic splitting, AL2023 metrics, or AbortEnvironmentUpdate.\n\n## NEVER do these things\n\n1. **NEVER use all-at-once deployment for production environments.**\n   All-at-once takes the entire fleet out of service simultaneously.\n   If the new version is broken, 100% of traffic fails. Use immutable\n   or rolling-with-additional-batch for production.\n\n2. **NEVER create an environment without a service role and instance\n   profile.** The service role is required for Beanstalk to manage\n   ELB\u002FASG. The instance profile is required for EC2 instances to pull\n   the source bundle. Without either, the environment creation or\n   deployment fails or hangs.\n\n3. **NEVER use Amazon Linux 2 (AL2) platform branches for new\n   environments.** AL2 is in deprecation. New environments MUST use\n   Amazon Linux 2023 (AL2023) platform branches.\n\n4. **NEVER rely on attached RDS for production without a Retain\n   deletion policy.** Attached RDS is terminated with the environment.\n   Set `DeletionPolicy: Retain` in the .ebextensions resource, or use\n   an external RDS instance for production databases.\n\n5. **NEVER assume CNAME swap is instant for all clients.** The swap\n   is atomic at the DNS level, but DNS TTL means some clients hit the\n   old environment for up to 60 seconds. Plan for this overlap.\n\n6. **NEVER ignore .ebextensions ordering.** Directives run in\n   lexicographic order. A resource created in `02-config.config` cannot\n   be referenced in `01-config.config`. Prefix files with `NN-` to\n   enforce order.\n\n7. **NEVER use an NLB with traffic splitting deployment policy.**\n   Traffic splitting requires an ALB. If the environment uses an NLB\n   or single-instance (no ELB), traffic splitting is not available.\n\n8. **NEVER assume managed platform updates and deployments can run\n   simultaneously.** Managed updates are suppressed during an active\n   deployment. Schedule deployments outside the managed update window.\n\n9. **NEVER leave application versions accumulating without a lifecycle\n   policy.** Beanstalk has a per-application version limit (500 by\n   default). Set a lifecycle policy to automatically prune old versions.\n\n10. **NEVER forget the SQS queue configuration for worker tier.**\n    Without `aws:elasticbeanstalk:sqsd` namespace options, the SQS\n    daemon does not start and messages are never processed.\n\n## Output format\n\n```text\nELASTIC_BEANSTALK: \u003Capplication-name> \u002F \u003Cenvironment-name> (\u003Cenvironment-id>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Application: \u003Capplication-name>\n  [✓|✗] Environment: \u003Cenvironment-name> (\u003Ctier>: WebServer | Worker)\n  [✓|✗] Platform: \u003Csolution-stack-name> (Amazon Linux 2023)\n  [✓|✗] Application version: \u003Cversion-label> (s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>)\n  [✓|✗] Service role: \u003Crole-name> (AWSElasticBeanstalkManagedRole attached)\n  [✓|✗] Instance profile: \u003Cprofile-name> (S3 read + WebTier policy)\n  [✓|✗] Load balancer: ALB | NLB | Single-instance (no ELB)\n  [✓|✗] Deployment policy: All-at-once | Rolling | Rolling+batch | Immutable | Traffic-splitting\n  [✓|✗] Enhanced health: enabled | basic\n  [✓|✗] Managed updates: enabled (\u003Cwindow>) | disabled\n  [✓|✗] VPC: \u003Cvpc-id> (subnets: \u003Csubnet-list>)\n  [✓|✗] Security groups: \u003Csg-list>\n  [✓|✗] ASG: min=\u003Cn>, max=\u003Cn> (trigger: \u003Cmetric>)\n  [✓|✗] .ebextensions: \u003Cfile-list> | none\n  [✓|✗] RDS: attached (\u003Cinstance-class>) | external | none\n  [✓|✗] CNAME: \u003Ccname-prefix>.\u003Cregion>.elasticbeanstalk.com\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-environments --environment-names \u003Cenv-name>\n  aws elasticbeanstalk describe-environment-health --environment-name \u003Cenv-name>\n  aws elasticbeanstalk describe-configuration-settings --environment-name \u003Cenv-name>\n```\n\n### Worked example — web server environment with immutable deployment\n\n```text\nELASTIC_BEANSTALK: myapp \u002F myapp-prod (e-xxx123)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Application: myapp\n  [✓] Environment: myapp-prod (WebServer tier)\n  [✓] Platform: 64bit Amazon Linux 2023 v6.0.4 running Node.js 20\n  [✓] Application version: v2 (s3:\u002F\u002Fmyapp-deploy\u002Fapp-v2.zip)\n  [✓] Service role: aws-elasticbeanstalk-service-role (AWSElasticBeanstalkManagedRole)\n  [✓] Instance profile: aws-elasticbeanstalk-ec2-role (AWSElasticBeanstalkWebTier + S3 read)\n  [✓] Load balancer: ALB\n  [✓] Deployment policy: Immutable\n  [✓] Enhanced health: enabled\n  [✓] Managed updates: enabled (Mon:02:00 UTC, minor level)\n  [✓] VPC: vpc-aaa11122 (subnets: subnet-aaa, subnet-bbb)\n  [✓] Security groups: sg-app-prod\n  [✓] ASG: min=2, max=8 (trigger: CPUUtilization 20-80%)\n  [✓] .ebextensions: 01-options.config, 02-rds.config, 03-hooks.config\n  [✓] RDS: external (db-prof-xxx, connection via DATABASE_URL)\n  [✓] CNAME: myapp-prod.us-east-1.elasticbeanstalk.com\n  [✓] Tags: Environment=production, App=myapp\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-environments --environment-names myapp-prod\n  aws elasticbeanstalk describe-environment-health --environment-name myapp-prod\n  aws elasticbeanstalk describe-configuration-settings --environment-name myapp-prod\n```\n\n## Error handling\n\n> **Moved verbatim** → [references\u002Ferror-handling.md](references\u002Ferror-handling.md) § \"Error handling\".\n> Load when: a launch is stuck, a deploy fails, health is Red, a swap fails, or updates never apply.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — full command sequences: CNAME-swap blue-green, version lifecycle, VPC launch, ASG triggers, managed updates, enhanced health\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — deployment failure triage: stuck launches, failed deploys, Red health, swap failures\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight IAM verification (service role, instance profile)\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert heuristics (immutable deploy, .ebextensions IaC, CNAME swap, YAML gotchas, worker SQS, hook ordering), dependency-graph deep dive, misconceptions, recent AWS features\n- [references\u002Fdeployment-policies.md](references\u002Fdeployment-policies.md) — deployment policy decision detail\n- [references\u002Febextensions-and-platforms.md](references\u002Febextensions-and-platforms.md) — .ebextensions + platform detail, incl. Step 11 config examples\n\n## Domain\n\nAWS CloudOps \u002F Elastic Beanstalk Application & Environment Provisioning.\n\n## AWS documentation\n\n- **Elastic Beanstalk Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002FWelcome.html\n- **Creating an environment** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.environments.html\n- **Deployment policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.rolling-version-deploy.html\n- **.ebextensions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Febextensions.html\n- **Environment tiers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features-managing-env-tiers.html\n- **Enhanced health reporting** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fhealth-enhanced-status.html\n- **Managed platform updates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fenvironment-platform-update-managed.html\n- **CNAME swap** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.CNAMESwap.html\n- **Amazon Linux 2023 platforms** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fplatforms.al2023.html\n","# Elastic Beanstalk Deployer\n\nAn AWS CloudOps agent skill that provisions Elastic Beanstalk\napplications and environments with correct defaults. The skill walks\nthe operator through application creation, environment tier selection\n(web server vs worker), platform (Amazon Linux 2023 with managed\nruntimes), deployment policy selection, managed platform updates,\nenhanced health reporting, load balancer choice, instance profile and\nservice role setup, VPC and security group configuration, auto scaling,\nRDS integration, .ebextensions and .platform hooks, CNAME swap for\nblue-green, and application version lifecycle management, captures\narchitecture decisions, explains why each default matters, and emits\na READY_TO_DEPLOY checklist with copy-pasteable verification commands.\n\n## Activation keywords\n\ncreate Elastic Beanstalk environment, deploy Beanstalk application,\nBeanstalk blue-green CNAME swap, Beanstalk worker tier SQS, Beanstalk\nimmutable deployment, .ebextensions, Beanstalk managed updates,\nBeanstalk platform Amazon Linux 2023, Beanstalk deployment policy,\nBeanstalk enhanced health reporting.\n\n## STRICT output contract\n\nWhen this skill is invoked with an Elastic-Beanstalk-provisioning\nrequest (create an environment, deploy an application version, set up\nblue-green with CNAME swap, configure worker tier, choose a deployment\npolicy, or a partial configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in the \"Output format\" section using\nthe literal all-caps labels `ELASTIC_BEANSTALK:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the\nchecklist with prose, headings, or disclaimers — emit the block as the\nfirst lines of the response. This contract is what assertion-based\nevals and downstream provisioning pipelines rely on; deviating from\nthe literal labels breaks automation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Application and environment model | Core Beanstalk model |\n| Step 2 — Environment tier (web server vs worker) | Tier selection |\n| Step 3 — Platform (Amazon Linux 2023, runtimes) | Platform branch |\n| Step 4 — Deployment policies | Deployment strategy |\n| Step 5 — Managed platform updates | Patching cadence |\n| Step 6 — Enhanced health reporting | Health monitoring |\n| Step 7 — Load balancer (ALB vs NLB) | LB selection |\n| Step 8 — Instance profile and service role | IAM roles |\n| Step 9 — VPC, subnets, security groups | Network placement |\n| Step 10 — Auto scaling group | Capacity |\n| Step 11 — .ebextensions and .platform | Infrastructure as code |\n| Step 12 — RDS integration | Database attach |\n| Step 13 — CNAME swap for blue-green | Zero-downtime cutover |\n| Step 14 — Application version lifecycle | Version management |\n| Step 15 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fdeployment-policies.md | Deployment policy detail |\n| references\u002Febextensions-and-platforms.md | .ebextensions + platform detail |\n\n## Mindset\n\n**One-line takeaway:** Elastic Beanstalk is a managed PaaS that\nprovisions an entire application stack (ELB + ASG + EC2 + deployment\npipeline) from a source bundle. The environment tier (web server vs\nworker) determines whether the ELB serves HTTP traffic or the SQS\ndaemon pulls messages. The deployment policy determines the trade-off\nbetween deployment speed and availability during the cutover.\n\nThree misconceptions dominate Elastic Beanstalk misdesign at\nprovisioning time:\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Mindset misconceptions\".\n> Load when: you need the complete argument behind the three Beanstalk misdesign misconceptions.\n\n## Configuration dependency graph (novel heuristic)\n\nElastic Beanstalk configurations are NOT independent. The service role\nmust exist before the environment can manage ELB\u002FASG on your behalf.\nThe instance profile must exist before EC2 instances can assume it.\nThe platform branch must be compatible with the solution stack. Use\nthis graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| Service role | IAM trust policy allowing `elasticbeanstalk.amazonaws.com` | environment creation FAILS if the service role lacks `AWSElasticBeanstalkManagedRole` or equivalent inline permissions | ELB, ASG, CloudWatch management by Beanstalk |\n| Instance profile | IAM role with EC2 trust policy + S3 read for source bundle | EC2 instances launch but CANNOT pull the application version from S3; deployment appears stuck in \"Pending\" | application code deployment to each instance |\n| Platform \u002F solution stack | solution stack name must match an available Beanstalk platform ARN | using a deprecated platform (Amazon Linux 2 AMI) silently deploys on EOL branch; must use Amazon Linux 2023 | runtime (Node.js, Python, Java, Go, .NET) |\n| Load balancer scheme | VPC has public subnets for internet-facing; private subnets for internal | NLB is NOT supported on all platform branches; Docker multi-container requires ALB | traffic distribution to EC2 instances |\n| Deployment policy | ALB required for traffic splitting; immutable requires extra capacity | all-at-once causes full downtime if the new version is broken | cutover strategy and blast radius |\n| Worker tier | SQS queue ARN required; environment tier must be `SQS\u002FHTTP` | without `aws:elasticbeanstalk:sqsd` namespace config, the SQS daemon does not start | background message processing |\n| .ebextensions | source bundle must include `.ebextensions\u002F*.config` in the correct path | syntax errors cause the entire deployment to fail; ordering is lexicographic | infrastructure as code (RDS, DynamoDB, custom resources) |\n| CNAME swap | BOTH environments must be `Ready` and `Green`\u002F`Blue` health | swapping CNAMEs on an environment that is still launching causes DNS to point at a non-functional endpoint | blue-green zero-downtime cutover |\n| Managed platform updates | must not conflict with deployment window | managed updates and deployments can conflict; managed updates are suppressed during an active deployment | automated patching and platform minor version upgrades |\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Configuration dependency graph\".\n> Load when: sequencing the service role \u002F instance profile \u002F platform \u002F LB \u002F worker-tier dependencies.\n\n## Expert heuristic: immutable deployment for zero downtime\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: immutable deployment\".\n> Load when: choosing a deployment policy by blast radius; includes the decision tree.\n\n## Expert heuristic: .ebextensions for infrastructure as code\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: .ebextensions\".\n> Load when: authoring .ebextensions IaC (directory layout, option_settings\u002FResources\u002Ffiles\u002Fcommands).\n\n## Expert heuristic: CNAME swap for blue-green\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: CNAME swap\".\n> Load when: running the blue-green swap flow and reasoning about DNS TTL overlap.\n\n## Expert heuristic: .ebextensions YAML syntax gotchas\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: .ebextensions YAML syntax gotchas\".\n> Load when: a .config file is silently skipped or a deploy fails with no clear error.\n\n## Expert heuristic: worker tier SQS visibility timeout auto-configuration\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: worker tier SQS visibility timeout auto-configuration\".\n> Load when: configuring worker-tier SQS visibility timeout, HTTP timeout, or DLQ behavior.\n\n## Expert heuristic: .platform\u002Fhooks vs .ebextensions ordering\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Expert heuristic: .platform\u002Fhooks vs .ebextensions ordering\".\n> Load when: mixing .ebextensions and .platform\u002Fhooks or debugging hook phase ordering.\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Service role exists | Beanstalk needs `aws-elasticbeanstalk-service-role` to manage ELB\u002FASG | `aws iam get-role --role-name aws-elasticbeanstalk-service-role` |\n| Instance profile exists | EC2 instances need a profile to pull the source bundle | `aws iam get-instance-profile --instance-profile-name aws-elasticbeanstalk-ec2-role` |\n| S3 bucket for source bundle | Application version must be uploaded to S3 first | `aws s3 ls s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>` |\n| Solution stack available | Must match a valid platform ARN | `aws elasticbeanstalk list-available-solution-stacks` |\n| VPC and subnets identified | Environment needs subnets for EC2 and ELB | `aws ec2 describe-subnets` |\n| Security group(s) identified | EC2 and ELB need security groups | `aws ec2 describe-security-groups` |\n| Application exists (or will be created) | Environments belong to an application | `aws elasticbeanstalk describe-applications` |\n| SQS queue (for worker tier) | Worker environments need an SQS queue ARN | `aws sqs get-queue-url --queue-name \u003Cname>` |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Application and environment model\n\nElastic Beanstalk organizes resources into applications and\nenvironments. An application is a logical container; environments are\ndeployable instances of the application.\n\n| Entity | Purpose | API call |\n|---|---|---|\n| Application | Container for environments, versions, configurations | `create-application` |\n| Application version | A specific source bundle in S3, labeled and deployable | `create-application-version` |\n| Environment | A running deployment (web server or worker tier) | `create-environment` |\n| Configuration template | Saved configuration for reuse across environments | `create-configuration-template` |\n\n**Typical flow:** create application, upload source bundle to S3,\ncreate application version, create environment using that version.\n\n## Step 2 — Environment tier (web server vs worker)\n\n| Feature | Web server tier | Worker tier |\n|---|---|---|\n| Traffic model | HTTP requests via ELB | Messages pulled from SQS queue |\n| Load balancer | ALB or NLB (required for multi-instance) | No ELB (SQS daemon on each instance) |\n| Entry point | nginx\u002FApache forwards to app | SQS daemon posts body to localhost |\n| Health checks | ELB health check + enhanced health | Enhanced health (no ELB health check) |\n| Auto scaling trigger | CPU, request count, latency | Queue depth (ApproximateNumberOfMessages) |\n| Tier name | `WebServer` | `Worker` |\n\n**Worker tier specifics:** the SQS daemon polls the configured queue,\nPOSTs each message body to the application's HTTP endpoint on\n`localhost:5000` (configurable), and deletes the message on 200 OK.\nOn 4xx\u002F5xx, the message is retried up to `maxReceiveCount`, then sent\nto a dead-letter queue.\n\n## Step 3 — Platform (Amazon Linux 2023, runtimes)\n\nBeanstalk platforms are versioned AMIs with a managed runtime stack.\nAmazon Linux 2023 (AL2023) is the current generation platform.\n\n| Runtime | Solution stack example (AL2023) |\n|---|---|\n| Node.js | `64bit Amazon Linux 2023 v6.0.4 running Node.js 20` |\n| Python | `64bit Amazon Linux 2023 v6.0.4 running Python 3.11` |\n| Java | `64bit Amazon Linux 2023 v6.0.4 running Corretto 21` |\n| Go | `64bit Amazon Linux 2023 v6.0.4 running Go 1.21` |\n| .NET | `64bit Amazon Linux 2023 v6.0.4 running .NET 8` |\n\n**Platform branch:** each runtime has a platform branch that receives\nmanaged updates (security patches, minor version bumps) within its\nlifecycle.\n\n**Deprecation:** Amazon Linux 2 (AL2) platform branches are in\ndeprecation. New environments MUST use Amazon Linux 2023 branches.\n\n## Step 4 — Deployment policies\n\n| Policy | How it works | Downtime | Cost during deploy | Best for |\n|---|---|---|---|---|\n| All at once | Deploys to all instances simultaneously | Full fleet during deploy | No extra | Dev, testing |\n| Rolling | Deploys in batches; takes batch out of service | Reduced capacity per batch | No extra | Production (cost-sensitive) |\n| Rolling + additional batch | Spins up temp instances, deploys in batches | No capacity loss | Temp instances | Production (balanced) |\n| Immutable | Launches fresh ASG with new version, swaps when healthy | None (old fleet serves during deploy) | Double capacity | Production (safest) |\n| Traffic splitting | Routes a percentage of traffic to new version via ALB | None; canary-style | Temp instances | Production (canary) |\n\n**Immutable** is the recommended default for production environments.\nIt provides the safest cutover: the old fleet remains untouched until\nthe new fleet passes health checks.\n\n**Traffic splitting** requires an ALB and supports configurable\npercentage (e.g., 10% canary for 5 minutes, then 100%). If health\nchecks fail during the canary window, Beanstalk rolls back\nautomatically.\n\n## Step 5 — Managed platform updates\n\nManaged platform updates apply minor version patches and security fixes\nto the platform within a configurable window.\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 5\".\n> Load when: enabling managed updates and setting the maintenance window.\n\nManaged updates are suppressed during an active deployment. Schedule\ndeployments outside the managed update window to avoid conflicts.\n\n## Step 6 — Enhanced health reporting\n\nEnhanced health reporting provides detailed metrics (CPU, latency,\nrequest count, status codes) aggregated from EC2 instances and the ELB.\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 6\".\n> Load when: switching an environment to enhanced health reporting.\n\nEnhanced health is REQUIRED for blue-green CNAME swap health checks\nand for managed platform updates to work correctly.\n\n## Step 7 — Load balancer (ALB vs NLB)\n\n| Feature | ALB | NLB |\n|---|---|---|\n| Protocol | HTTP\u002FHTTPS | TCP\u002FUDP\u002FTLS |\n| Health check | HTTP path | TCP port |\n| Traffic splitting | Supported | NOT supported |\n| Sticky sessions | Cookie-based | Source IP (limited) |\n| WebSocket | Supported | N\u002FA (TCP passthrough) |\n| Cost | LCU-based | Per-hour + per-GB |\n\nALB is the default and supports all deployment policies including\ntraffic splitting. NLB is for TCP-based workloads or ultra-low-latency\nrequirements where HTTP features are not needed. **Single-instance**\nenvironments have no ELB — the EC2 instance is directly exposed.\n\n## Step 8 — Instance profile and service role\n\nThese are TWO separate IAM roles with distinct purposes.\n\n**Service role** (assumed BY Beanstalk): must have trust policy\nallowing `elasticbeanstalk.amazonaws.com` and the\n`AWSElasticBeanstalkManagedRole` managed policy attached. This role\nmanages ELB, ASG, and CloudWatch resources on your behalf.\n\n**Instance profile** (assumed BY EC2 instances): must have trust policy\nallowing `ec2.amazonaws.com`, the `AWSElasticBeanstalkWebTier` managed\npolicy (includes S3 read for source bundles), and be attached as an\ninstance profile.\n\n> **Moved verbatim** → [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) § \"IAM pre-flight verification commands\".\n> Load when: verifying the service role and instance profile before create-environment.\n\n**Critical:** the instance profile MUST have S3 read access to the\nbucket where the source bundle is stored. Without it, EC2 instances\nlaunch but cannot pull the application code — the deployment hangs in\n\"Pending\" indefinitely.\n\n## Step 9 — VPC, subnets, security groups\n\nFor VPC-mode environments, specify public and private subnets and\nsecurity groups:\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 9\".\n> Load when: launching the environment into a specific VPC\u002Fsubnets\u002Fsecurity groups.\n\nFor load-balanced environments, the ELB and EC2 instances should be in\nthe same subnets (or ELB in public subnets, EC2 in private subnets).\nFor single-instance, the EC2 instance needs a public IP or a NAT\ngateway for internet egress.\n\n## Step 10 — Auto scaling group\n\nBeanstalk provisions an ASG behind the environment. Configure min\u002Fmax\nsize and scaling triggers:\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 10\".\n> Load when: setting ASG min\u002Fmax and CPU trigger thresholds.\n\nFor worker tier, scale on SQS queue depth: use\n`MeasureName=ApproximateNumberOfMessagesVisible` with lower\u002Fupper\nthresholds based on expected processing time.\n\n## Step 11 — .ebextensions and .platform\n\n.ebextensions provide infrastructure as code within the source bundle.\n\n> **Moved verbatim** → [references\u002Febextensions-and-platforms.md](references\u002Febextensions-and-platforms.md) § \"Step 11 .ebextensions config examples\".\n> Load when: writing the 01-options \u002F 02-rds \u002F 03-hooks .config files.\n\n**`.platform\u002Fhooks\u002F`** is the AL2023-native hook directory, organized by phase: `prebuild\u002F`, `predeploy\u002F`, `postdeploy\u002F`.\n\n## Step 12 — RDS integration\n\nBeanstalk can attach an RDS instance via .ebextensions. This is\nconvenient for development but has lifecycle implications.\n\n| Feature | Attached RDS | External RDS |\n|---|---|---|\n| Creation | Created with environment via .ebextensions | Pre-existing RDS instance |\n| Lifecycle | Terminated WITH environment (unless Retain) | Independent lifecycle |\n| Connection string | Passed as environment properties | Pass manually as env property |\n| Best for | Dev, testing | Production (separate lifecycle) |\n\n**Critical:** attached RDS is terminated when the environment is\nterminated, UNLESS `DeletionPolicy: Retain` is set. For production, use\nan external RDS instance and pass the connection string as an\nenvironment property.\n\n## Step 13 — CNAME swap for blue-green\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 13\".\n> Load when: executing the green→swap→verify→terminate blue sequence.\n\n## Step 14 — Application version lifecycle\n\nApplication versions accumulate over time. Beanstalk has a per-\napplication version limit (500 by default, soft limit).\n\n> **Moved verbatim** → [references\u002Fworked-examples.md](references\u002Fworked-examples.md) § \"Step 14\".\n> Load when: creating application versions or applying the max-count lifecycle policy.\n\n## Step 15 — Recent features\n\n> **Moved verbatim** → [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) § \"Recent AWS features 2023-2026\".\n> Load when: deciding on Graviton, traffic splitting, AL2023 metrics, or AbortEnvironmentUpdate.\n\n## NEVER do these things\n\n1. **NEVER use all-at-once deployment for production environments.**\n   All-at-once takes the entire fleet out of service simultaneously.\n   If the new version is broken, 100% of traffic fails. Use immutable\n   or rolling-with-additional-batch for production.\n\n2. **NEVER create an environment without a service role and instance\n   profile.** The service role is required for Beanstalk to manage\n   ELB\u002FASG. The instance profile is required for EC2 instances to pull\n   the source bundle. Without either, the environment creation or\n   deployment fails or hangs.\n\n3. **NEVER use Amazon Linux 2 (AL2) platform branches for new\n   environments.** AL2 is in deprecation. New environments MUST use\n   Amazon Linux 2023 (AL2023) platform branches.\n\n4. **NEVER rely on attached RDS for production without a Retain\n   deletion policy.** Attached RDS is terminated with the environment.\n   Set `DeletionPolicy: Retain` in the .ebextensions resource, or use\n   an external RDS instance for production databases.\n\n5. **NEVER assume CNAME swap is instant for all clients.** The swap\n   is atomic at the DNS level, but DNS TTL means some clients hit the\n   old environment for up to 60 seconds. Plan for this overlap.\n\n6. **NEVER ignore .ebextensions ordering.** Directives run in\n   lexicographic order. A resource created in `02-config.config` cannot\n   be referenced in `01-config.config`. Prefix files with `NN-` to\n   enforce order.\n\n7. **NEVER use an NLB with traffic splitting deployment policy.**\n   Traffic splitting requires an ALB. If the environment uses an NLB\n   or single-instance (no ELB), traffic splitting is not available.\n\n8. **NEVER assume managed platform updates and deployments can run\n   simultaneously.** Managed updates are suppressed during an active\n   deployment. Schedule deployments outside the managed update window.\n\n9. **NEVER leave application versions accumulating without a lifecycle\n   policy.** Beanstalk has a per-application version limit (500 by\n   default). Set a lifecycle policy to automatically prune old versions.\n\n10. **NEVER forget the SQS queue configuration for worker tier.**\n    Without `aws:elasticbeanstalk:sqsd` namespace options, the SQS\n    daemon does not start and messages are never processed.\n\n## Output format\n\n```text\nELASTIC_BEANSTALK: \u003Capplication-name> \u002F \u003Cenvironment-name> (\u003Cenvironment-id>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Application: \u003Capplication-name>\n  [✓|✗] Environment: \u003Cenvironment-name> (\u003Ctier>: WebServer | Worker)\n  [✓|✗] Platform: \u003Csolution-stack-name> (Amazon Linux 2023)\n  [✓|✗] Application version: \u003Cversion-label> (s3:\u002F\u002F\u003Cbucket>\u002F\u003Ckey>)\n  [✓|✗] Service role: \u003Crole-name> (AWSElasticBeanstalkManagedRole attached)\n  [✓|✗] Instance profile: \u003Cprofile-name> (S3 read + WebTier policy)\n  [✓|✗] Load balancer: ALB | NLB | Single-instance (no ELB)\n  [✓|✗] Deployment policy: All-at-once | Rolling | Rolling+batch | Immutable | Traffic-splitting\n  [✓|✗] Enhanced health: enabled | basic\n  [✓|✗] Managed updates: enabled (\u003Cwindow>) | disabled\n  [✓|✗] VPC: \u003Cvpc-id> (subnets: \u003Csubnet-list>)\n  [✓|✗] Security groups: \u003Csg-list>\n  [✓|✗] ASG: min=\u003Cn>, max=\u003Cn> (trigger: \u003Cmetric>)\n  [✓|✗] .ebextensions: \u003Cfile-list> | none\n  [✓|✗] RDS: attached (\u003Cinstance-class>) | external | none\n  [✓|✗] CNAME: \u003Ccname-prefix>.\u003Cregion>.elasticbeanstalk.com\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-environments --environment-names \u003Cenv-name>\n  aws elasticbeanstalk describe-environment-health --environment-name \u003Cenv-name>\n  aws elasticbeanstalk describe-configuration-settings --environment-name \u003Cenv-name>\n```\n\n### Worked example — web server environment with immutable deployment\n\n```text\nELASTIC_BEANSTALK: myapp \u002F myapp-prod (e-xxx123)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Application: myapp\n  [✓] Environment: myapp-prod (WebServer tier)\n  [✓] Platform: 64bit Amazon Linux 2023 v6.0.4 running Node.js 20\n  [✓] Application version: v2 (s3:\u002F\u002Fmyapp-deploy\u002Fapp-v2.zip)\n  [✓] Service role: aws-elasticbeanstalk-service-role (AWSElasticBeanstalkManagedRole)\n  [✓] Instance profile: aws-elasticbeanstalk-ec2-role (AWSElasticBeanstalkWebTier + S3 read)\n  [✓] Load balancer: ALB\n  [✓] Deployment policy: Immutable\n  [✓] Enhanced health: enabled\n  [✓] Managed updates: enabled (Mon:02:00 UTC, minor level)\n  [✓] VPC: vpc-aaa11122 (subnets: subnet-aaa, subnet-bbb)\n  [✓] Security groups: sg-app-prod\n  [✓] ASG: min=2, max=8 (trigger: CPUUtilization 20-80%)\n  [✓] .ebextensions: 01-options.config, 02-rds.config, 03-hooks.config\n  [✓] RDS: external (db-prof-xxx, connection via DATABASE_URL)\n  [✓] CNAME: myapp-prod.us-east-1.elasticbeanstalk.com\n  [✓] Tags: Environment=production, App=myapp\nVERIFICATION_COMMANDS:\n  aws elasticbeanstalk describe-environments --environment-names myapp-prod\n  aws elasticbeanstalk describe-environment-health --environment-name myapp-prod\n  aws elasticbeanstalk describe-configuration-settings --environment-name myapp-prod\n```\n\n## Error handling\n\n> **Moved verbatim** → [references\u002Ferror-handling.md](references\u002Ferror-handling.md) § \"Error handling\".\n> Load when: a launch is stuck, a deploy fails, health is Red, a swap fails, or updates never apply.\n\n## References (load on demand)\n\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — full command sequences: CNAME-swap blue-green, version lifecycle, VPC launch, ASG triggers, managed updates, enhanced health\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — deployment failure triage: stuck launches, failed deploys, Red health, swap failures\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight IAM verification (service role, instance profile)\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert heuristics (immutable deploy, .ebextensions IaC, CNAME swap, YAML gotchas, worker SQS, hook ordering), dependency-graph deep dive, misconceptions, recent AWS features\n- [references\u002Fdeployment-policies.md](references\u002Fdeployment-policies.md) — deployment policy decision detail\n- [references\u002Febextensions-and-platforms.md](references\u002Febextensions-and-platforms.md) — .ebextensions + platform detail, incl. Step 11 config examples\n\n## Domain\n\nAWS CloudOps \u002F Elastic Beanstalk Application & Environment Provisioning.\n\n## AWS documentation\n\n- **Elastic Beanstalk Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002FWelcome.html\n- **Creating an environment** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.environments.html\n- **Deployment policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.rolling-version-deploy.html\n- **.ebextensions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Febextensions.html\n- **Environment tiers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features-managing-env-tiers.html\n- **Enhanced health reporting** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fhealth-enhanced-status.html\n- **Managed platform updates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fenvironment-platform-update-managed.html\n- **CNAME swap** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fusing-features.CNAMESwap.html\n- **Amazon Linux 2023 platforms** — https:\u002F\u002Fdocs.aws.amazon.com\u002Felasticbeanstalk\u002Flatest\u002Fdg\u002Fplatforms.al2023.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, cloudops, deploy, compute, provisioning, blue-green, worker-tier, ebextensions, amazon-linux-2023, immutable-deployment","1","Jacky Chan — AWS Community Builder","aws-cloudops","Compute","0.1.0","aws, elastic beanstalk, beanstalk, compute, cloudops, deploy, provisioning, blue-green, cname swap, worker tier, web server tier, ebextensions, platform, amazon linux 2023, immutable deployment, rolling deployment, managed updates, application version, environment tier","deploy","high","false","capability","Invoke when the user wants to create or configure an AWS Elastic Beanstalk application or environment (web server or worker tier), deploy an application version, configure blue-green deployment via CNAME swap, set up .ebextensions for infrastructure as code, choose a deployment policy, configure managed platform updates, integrate RDS, or manage the application version lifecycle. Do NOT invoke for Amazon ECS\u002FEKS (use container skills), AWS App Runner (use apprunner skills), or EC2 auto scaling groups standalone (use EC2 skills).","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with elasticbeanstalk and iam access, plus S3 for application version source bundles. Works with Terraform aws_elastic_beanstalk_application \u002F aws_elastic_beanstalk_environment resources and CloudFormation AWS::ElasticBeanstalk::Application \u002F AWS::ElasticBeanstalk::Environment templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Felastic-beanstalk-deployer",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-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill elastic-beanstalk-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill elastic-beanstalk-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\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","参考文档",6441,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fblue-green-cname-swap.md",720,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fbaselines\u002Fblue-green-cname-swap.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Febextensions-rds-config.md",774,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fbaselines\u002Febextensions-rds-config.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fmissing-service-role.md",673,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fbaselines\u002Fmissing-service-role.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fweb-server-nodejs-alb.md",788,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fbaselines\u002Fweb-server-nodejs-alb.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fworker-tier-sqs.md",700,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fbaselines\u002Fworker-tier-sqs.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1723,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9070,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fblue-green-cname-swap.md",613,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fprompts\u002Fblue-green-cname-swap.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Febextensions-rds-config.md",693,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fprompts\u002Febextensions-rds-config.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fmissing-service-role.md",494,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fprompts\u002Fmissing-service-role.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fweb-server-nodejs-alb.md",706,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fprompts\u002Fweb-server-nodejs-alb.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fworker-tier-sqs.md",647,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fevals\u002Fprompts\u002Fworker-tier-sqs.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",5924,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",13327,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdeployment-policies.md",5503,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Freferences\u002Fdeployment-policies.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fdiagnostic-commands.md",446,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Febextensions-and-platforms.md",6593,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Freferences\u002Febextensions-and-platforms.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Ferror-handling.md",832,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Freferences\u002Ferror-handling.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"references\u002Fworked-examples.md",3296,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\u002Freferences\u002Fworked-examples.md",{"path":147,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":148,"sourceHtmlUrl":149},"skill.usf.yaml",4536,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Felastic-beanstalk-deployer\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",[],[]]