[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A8K3EABBV4SHT93424XN90":3,"skill-same:01M7A8K3EABBV4SHT93424XN90":141},{"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},"01M7A8K3EABBV4SHT93424XN90","fis-template-deployer",null,"Provisions AWS Fault Injection Simulator (FIS) experiment templates with production defaults: experiment template creation (JSON), action specification (aws:ec2:stop-instances, aws:ec2:terminate-instances, aws:ecs:drain-container-instances, aws:lambda:invoke, aws:network:disrupt-connectivity, aws:rds:failover-db-cluster, aws:s3:pause-bucket-access, aws:cloudwatch:put-metric-data), target selection via resource tags and filters, stop conditions (CloudWatch alarm auto-abort), IAM role configuration (trust policy + permissions scoped to fault actions on target resources), log group configuration, experiment start and rollback, and report generation. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a FIS experiment. Triggers: create fis experiment template, fault injection simulator, chaos experiment aws, aws:ec2:stop-instances, aws:network:disrupt- connectivity, aws:rds:failover-db-cluster, aws:ecs:drain-container- instances, fis stop condition, fis iam role, fis target tags.","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\u002Ffis-template-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: fis-template-deployer\ndescription: 'Provisions AWS Fault Injection Simulator (FIS) experiment templates with production defaults: experiment template creation (JSON), action specification (aws:ec2:stop-instances, aws:ec2:terminate-instances, aws:ecs:drain-container-instances, aws:lambda:invoke, aws:network:disrupt-connectivity, aws:rds:failover-db-cluster, aws:s3:pause-bucket-access, aws:cloudwatch:put-metric-data), target selection via resource tags and filters, stop conditions (CloudWatch alarm auto-abort), IAM role configuration (trust policy + permissions scoped to fault actions on target resources), log group configuration, experiment start and rollback, and report generation. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a FIS experiment. Triggers: create fis experiment template, fault injection simulator, chaos experiment aws, aws:ec2:stop-instances, aws:network:disrupt- connectivity, aws:rds:failover-db-cluster, aws:ecs:drain-container- instances, fis stop condition, fis iam role, fis target tags.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with fis, ec2, ecs, rds, lambda, iam, and cloudwatch access. Works with Terraform aws_fis_experiment_template resources and CloudFormation AWS::FIS::ExperimentTemplate 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: Management\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, fis, fault-injection-simulator, cloudops, deploy, chaos-engineering, experiment-template, stop-conditions, cloudwatch-alarm, iam-role, resource-tags, auto-abort\n  dependencies: aws-orchestrator\n  keywords: aws, fis, fault injection simulator, chaos engineering, experiment template, cloudops, deploy, stop conditions, cloudwatch alarm, iam role, resource tags, target, auto-abort, ec2 stop instances, network disrupt connectivity, rds failover, ecs drain, lambda invoke, s3 pause bucket\n  when_to_use: Invoke when the user wants to create an AWS Fault Injection Simulator experiment template, configure a chaos\u002Ffault injection experiment on EC2\u002FECS\u002FRDS\u002FLambda\u002FS3\u002Fnetwork resources, scope experiment targets via resource tags and filters, set stop conditions (CloudWatch alarms) for auto-abort, configure the FIS IAM role with appropriate trust and permissions, or start\u002Frollback an experiment. Do NOT invoke for AWS Resilience Hub (readiness assessment), Chaos Mesh (EKS-native), or Gremlin (third-party chaos tool).\n---\n\n# FIS Template Deployer\n\nAn AWS CloudOps agent skill that provisions AWS Fault Injection Simulator\n(FIS) experiment templates with safe production defaults. The skill walks\nthe operator through action specification (the eight FIS-supported fault\nactions), target selection via resource tags (the safest scoping\nmechanism), stop conditions (CloudWatch alarms that auto-abort the\nexperiment), IAM role configuration (trust policy + scoped permissions),\nlog group configuration, experiment start, and report generation. The\nskill captures topology and fault decisions, explains why each default\nmatters, and emits a READY_TO_DEPLOY checklist with copy-pasteable\nverification commands.\n\n## Activation keywords\n\ncreate FIS experiment template, fault injection simulator, chaos\nexperiment AWS, aws:ec2:stop-instances, aws:network:disrupt-connectivity,\naws:rds:failover-db-cluster, aws:ecs:drain-container-instances, FIS stop\ncondition, FIS IAM role, FIS target tags.\n\n## STRICT output contract\n\nWhen this skill is invoked with a FIS-experiment-provisioning request\n(create an experiment template, configure a fault action, scope targets,\nset stop conditions, configure the IAM role, or start an experiment),\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in the\n\"Output format\" section using the literal all-caps labels `FIS_TEMPLATE:`,\n`VERDICT:`, `CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface\nthe checklist with prose, headings, or disclaimers — emit the block as\nthe first lines of the response. This contract is what assertion-based\nevals and downstream provisioning pipelines rely on; deviating from the\nliteral 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 — Experiment template anatomy | Core structure |\n| Step 2 — Actions (the eight fault types) | Fault injection |\n| Step 3 — Targets (resource tags = safest scope) | Target scoping |\n| Step 4 — Stop conditions (CloudWatch alarm auto-abort) | Safety guardrails |\n| Step 5 — IAM role configuration | Permissions |\n| Step 6 — Log group + report generation | Observability |\n| Step 7 — Create, start, rollback | Provisioning step |\n| Step 8 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Factions-and-targets.md | Actions + targets detail |\n| references\u002Fiam-and-stop-conditions.md | IAM + stop conditions detail |\n\n## Mindset\n\n**One-line takeaway:** A FIS experiment template binds a fault action to\na target (scoped by resource tags) under a stop condition (a CloudWatch\nalarm that auto-aborts). The IAM role must permit FIS to perform the\nspecific fault action on the specific target resources. Without the stop\ncondition, there is no safety net. Without tag-based scoping, the blast\nradius is uncontrolled.\n\nThree misconceptions dominate FIS misdesign at provisioning time:\n\n- **\"FIS runs the fault on whatever it finds.\"** It does not. FIS uses\n  the target filter (resource tags, resource IDs, or filter patterns)\n  to scope which resources the action applies to. Resource tags are the\n  safest scoping mechanism because they bind to a stable, auditable\n  attribute rather than an ephemeral resource ID. An underspecified\n  target means an uncontrolled blast radius.\n\n- **\"FIS auto-stops when things go wrong.\"** It does not — unless you\n  configure a stop condition. A stop condition is a CloudWatch alarm\n  that, when it fires into ALARM state during the experiment, triggers\n  FIS to auto-abort all running actions and roll back. Without a stop\n  condition, FIS runs the action to completion regardless of impact.\n  This is the #1 cause of \"FIS broke production\" incidents.\n\n- **\"Any IAM role works for FIS.\"** It does not. The FIS service role\n  must trust `fis.amazonaws.com` in its trust policy AND must have\n  permissions scoped to the specific fault action on the specific\n  target resources. An over-permissive role (e.g., `ec2:*` on `*`)\n  violates least privilege. An under-permissive role (e.g., missing\n  `ec2:StopInstances`) causes the experiment to fail at start with an\n  opaque permissions error.\n\n## Configuration dependency graph (novel heuristic)\n\nFIS experiment configurations are NOT independent. The IAM role must\npermit the action on the target before the experiment can start. Stop\nconditions require a CloudWatch alarm to exist before the template can\nreference it. Targets must have the required tags applied before the\nexperiment can match them. Use this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| CloudWatch alarm (stop condition) | metric exists; alarm configured | alarm must be in ALARM state during experiment to trigger abort; OK state does nothing | stop condition reference |\n| IAM role (trust policy) | role exists; trust policy allows `fis.amazonaws.com` | service-linked role is preferred; custom role must be explicitly passed | FIS assumes the role |\n| IAM role (permissions) | role has permission for the action on the target resource tags | over-permissive role violates least-privilege; under-permissive role causes experiment start failure | experiment actions execute |\n| Resource tags on targets | tags applied to EC2\u002FECS\u002FRDS\u002FLambda\u002FS3 resources | untagged resources are NOT matched by tag-based targets — silent zero-target failure | target filter matches resources |\n| Experiment template | actions, targets, stop conditions, IAM role all specified | template is immutable once created; update requires create-template-version or replace | experiment start |\n| Experiment start | template exists; IAM role has permissions; targets have tags | experiment runs actions for the specified duration; auto-abort on stop condition | report generation |\n| Log group | CloudWatch Logs log group exists (or FIS creates it) | without log group, experiment logs are not retained | post-experiment debugging |\n\n**The IAM-role-permission row is the one a baseline model misses.** A\nbaseline says \"create an experiment template.\" The correct heuristic\nrecognizes that the template's `roleArn` must allow `fis.amazonaws.com`\nto assume it (trust policy) AND must grant the specific fault action's\npermissions on the specific target resources (scoped permissions). The\nprocedure below forces an explicit decision on each.\n\n**Cross-dependency gotchas:**\n- Stop conditions reference CloudWatch alarms by ARN. The alarm must\n  exist BEFORE the template is created. Creating the template first\n  fails with `ResourceNotFoundException`.\n- Targets with tag filters match resources at experiment START time,\n  not at template CREATION time. Tagging a resource after template\n  creation but before experiment start still includes it.\n- The IAM role's permission boundary must allow the action on the\n  target's resource tags. If the role allows `ec2:StopInstances` on\n  `Resource: *` but the targets are tagged `Environment=prod`, FIS\n  can still stop them — but this violates least privilege. Scope the\n  role's permissions to the target tags via `Condition` blocks.\n- `aws:network:disrupt-connectivity` requires the VPC and subnet\n  networking permissions (the FIS network agent), not just EC2\n  permissions. The role must include `ec2:CreateNetworkInterface`,\n  `ec2:DeleteNetworkInterface`, and related networking actions.\n\n## Expert heuristic: tag-based target scoping is the safest mechanism\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Expert heuristic: tag-based target scoping is the safest mechanism. See the \"References (load on demand)\" section.\n\n## Expert heuristic: stop conditions auto-abort when alarms fire\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Expert heuristic: stop conditions auto-abort when alarms fire. See the \"References (load on demand)\" section.\n\n## Expert heuristic: IAM role must allow the specific fault action on target resources\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Expert heuristic: IAM role must allow the specific fault action on target resources. See the \"References (load on demand)\" section.\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| CloudWatch alarm exists (for stop condition) | Stop condition references an alarm ARN; alarm must exist first | `aws cloudwatch describe-alarms --alarm-names \u003Cname>` |\n| IAM role exists with FIS trust policy | FIS assumes this role to execute fault actions | `aws iam get-role --role-name \u003Cname>` and check trust policy |\n| IAM role has action-specific permissions | Role must allow the fault action on target resources | `aws iam list-attached-role-policies` and `aws iam list-role-policies` |\n| Target resources tagged correctly | Tag-based targeting requires the tag to be present | `aws ec2 describe-instances --filters Name=tag:\u003Ckey>,Values=\u003Cvalue>` |\n| Log group exists (or auto-create enabled) | Experiment logs need a destination | `aws logs describe-log-groups --log-group-name-prefix \u002Faws\u002Ffis\u002F` |\n| FIS service role (or custom role ARN) | Template references a role ARN | Confirm role ARN |\n| Action parameters specified | Each action has required parameters (duration, cluster, function, etc.) | Review action spec |\n| Region supports FIS | FIS is available in most regions but verify | `aws fis list-experiment-templates --region \u003Cregion>` |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Experiment template anatomy\n\nA FIS experiment template is a JSON document that binds actions to\ntargets under stop conditions, executed under an IAM role.\n\n| Template field | Purpose | Required |\n|---|---|---|\n| `description` | Human-readable experiment description | Yes |\n| `roleArn` | IAM role FIS assumes to execute actions | Yes |\n| `actions` | Map of action name → action spec (actionId, parameters, targets) | Yes |\n| `targets` | Map of target name → target spec (resourceType, resourceTags, resourceIds, filter) | Yes (if actions reference targets) |\n| `stopConditions` | List of stop conditions (CloudWatch alarm ARN or source ARN) | Yes (at least one recommended) |\n| `logConfiguration` | CloudWatch Logs log group for experiment output | Recommended |\n| `tags` | Tag the experiment template itself | Optional |\n\n**Minimal template structure (JSON):**\n\n```json\n{\n  \"description\": \"Stop 1 EC2 instance for 5 minutes to test HA\",\n  \"roleArn\": \"arn:aws:iam::123456789012:role\u002FFISExperimentRole\",\n  \"actions\": {\n    \"stop-instance\": {\n      \"actionId\": \"aws:ec2:stop-instances\",\n      \"parameters\": { \"startAfter\": [\"5m\"] },\n      \"targets\": { \"Instances\": \"target-instances\" }\n    }\n  },\n  \"targets\": {\n    \"target-instances\": {\n      \"resourceType\": \"aws:ec2:instance\",\n      \"resourceTags\": { \"FIS_Target\": \"enabled\" },\n      \"selectionMode\": \"COUNT(1)\"\n    }\n  },\n  \"stopConditions\": [\n    { \"source\": \"aws:cloudwatch:alarm\",\n      \"value\": \"arn:aws:cloudwatch:us-east-1:123456789012:alarm:FIS-CPU-High\" }\n  ],\n  \"logConfiguration\": {\n    \"logSchemaVersion\": 1,\n    \"cloudWatchLogsConfiguration\": { \"logGroup\": \"\u002Faws\u002Ffis\u002Fstop-instance-experiment\" }\n  }\n}\n```\n\n## Step 2 — Actions (the eight fault types)\n\nFIS supports eight primary fault actions across compute, container,\nnetwork, database, storage, and observability layers.\n\n| Action ID | Fault type | Key parameters | Impact |\n|---|---|---|---|\n| `aws:ec2:stop-instances` | Stop EC2 instances | `startAfter` (duration after which instances restart) | Instance stops; apps must handle restart |\n| `aws:ec2:terminate-instances` | Terminate EC2 instances | `completeAfter` (duration) | Instance is terminated; ASG replacement needed |\n| `aws:ecs:drain-container-instances` | Drain ECS container instances | `duration` | Tasks are moved off the instance; tests rescheduling |\n| `aws:lambda:invoke` | Invoke Lambda function | `functionArn`, `functionPayload` | Invokes custom chaos\u002Ffault function |\n| `aws:network:disrupt-connectivity` | Disrupt network connectivity | `duration`, `scope`, `portRanges`, `sourcePorts` | Drops\u002Fallows\u002Fdelays packets between AZs\u002Fsubnets |\n| `aws:rds:failover-db-cluster` | Failover RDS DB cluster | N\u002FA (uses target cluster) | Promotes a different reader to writer |\n| `aws:s3:pause-bucket-access` | Pause S3 bucket access | `duration` | Bucket becomes temporarily unavailable |\n| `aws:cloudwatch:put-metric-data` | Push custom metric data | `namespace`, `metricName`, `value` | Simulates a custom metric (useful for testing alarms) |\n\n**Action duration:** most actions accept a `duration` parameter (e.g.,\n`\"5m\"`, `\"PT5M\"`). The fault is applied for the duration, then FIS\nrolls back (e.g., restarts stopped instances, restores bucket access).\n**Action sequencing:** by default, actions in the template run\nconcurrently. Use the `startAfter` field to sequence actions\n(e.g., `\"startAfter\": [\"action-1\"]` runs this action after action-1\ncompletes).\n\n## Step 3 — Targets (resource tags = safest scope)\n\nTargets specify which resources the action applies to. Use resource\ntags for the safest scoping.\n\n| Target field | Purpose | Example |\n|---|---|---|\n| `resourceType` | The AWS resource type | `aws:ec2:instance`, `aws:ecs:container-instance`, `aws:rds:cluster`, `aws:lambda:function`, `aws:s3:bucket` |\n| `resourceTags` | Tag key=value pairs to match | `{\"FIS_Target\": \"enabled\", \"Environment\": \"staging\"}` |\n| `resourceIds` | Specific resource IDs | `[\"i-aaa111222\", \"i-bbb222333\"]` |\n| `filter` | Additional filter pattern | `\"vpc-id = vpc-xxx\"` |\n| `selectionMode` | How many matched resources to target | `COUNT(1)`, `COUNT(2)`, `ALL`, `PERCENT(50)` |\n\n**selectionMode semantics:** `COUNT(n)` targets exactly n matched\nresources (chosen randomly). `ALL` targets all matched resources.\n`PERCENT(n)` targets n% of matched resources (chosen randomly).\n\n**Critical:** always use an explicit opt-in tag (e.g., `FIS_Target=enabled`)\nso resources are only targeted if they are explicitly tagged. This\nprevents accidental targeting of production resources.\n\n## Step 4 — Stop conditions (CloudWatch alarm auto-abort)\n\nStop conditions are CloudWatch alarms that, when they fire into ALARM\nstate during the experiment, trigger FIS to auto-abort. **Create the\nalarm BEFORE the experiment template** (stop conditions reference the\nalarm ARN; if the alarm does not exist, template creation fails).\n\n**Recommended stop condition alarms:**\n- CPU utilization spike (e.g., `CPUUtilization > 90%` for 1 minute)\n- Error rate spike (e.g., `5xx errors > 5%` for 1 minute)\n- Latency spike (e.g., `p99 latency > 2000ms` for 1 minute)\n- Health check failure (e.g., `HealthyHostCount \u003C 1`)\n\n```bash\naws cloudwatch put-metric-alarm \\\n  --alarm-name \"FIS-CPU-High\" \\\n  --metric-name \"CPUUtilization\" --namespace \"AWS\u002FEC2\" \\\n  --statistic \"Average\" --period 60 --threshold 90.0 \\\n  --comparison-operator \"GreaterThanThreshold\" \\\n  --dimensions \"Name=AutoScalingGroupName,Value=my-asg\" \\\n  --evaluation-periods 1 \\\n  --alarm-actions \"arn:aws:sns:us-east-1:123456789012:fis-alerts\" \\\n  --region us-east-1\n```\n\n**Critical:** without a stop condition, FIS runs the action to\ncompletion regardless of impact. Always configure at least one.\n\n## Step 5 — IAM role configuration\n\nMoved verbatim to [references\u002Fiam-and-stop-conditions.md](references\u002Fiam-and-stop-conditions.md) — load on demand.\nCovers: Step 5 — IAM role configuration. See the \"References (load on demand)\" section.\n\n## Step 6 — Log group and report generation\n\nFIS writes experiment state transitions and action output to a\nCloudWatch Logs log group. Create the log group first, then reference it\nin the template.\n\n```bash\naws logs create-log-group \\\n  --log-group-name \"\u002Faws\u002Ffis\u002Fstop-instance-experiment\" --region us-east-1\n```\n\n```json\n\"logConfiguration\": {\n  \"logSchemaVersion\": 1,\n  \"cloudWatchLogsConfiguration\": { \"logGroup\": \"\u002Faws\u002Ffis\u002Fstop-instance-experiment\" }\n}\n```\n\nAfter the experiment completes (or is aborted), FIS generates a report.\nUse `get-experiment` to retrieve it (key fields: state, startTime,\nendTime, actions state, targets, stopConditions fired). CloudWatch Logs\nInsights queries (filter `@logStream like \u002FFIS\u002F`) provide deeper\npost-experiment analysis.\n\n## Step 7 — Create, start, and rollback\n\n**Create the experiment template:**\n\n```bash\nTEMPLATE_ID=$(aws fis create-experiment-template \\\n  --cli-input-json file:\u002F\u002Fexperiment-template.json \\\n  --region us-east-1 \\\n  --query 'experimentTemplate.id' --output text)\n```\n\n**Verify the template:**\n\n```bash\naws fis get-experiment-template --id \"$TEMPLATE_ID\" --region us-east-1\n```\n\n**Start the experiment:**\n\n```bash\nEXPERIMENT_ID=$(aws fis start-experiment \\\n  --experiment-template-id \"$TEMPLATE_ID\" --region us-east-1 \\\n  --query 'experiment.id' --output text)\n```\n\n**Monitor the experiment state:** pending → running → completed |\naborted | failed.\n\n```bash\naws fis get-experiment --id \"$EXPERIMENT_ID\" \\\n  --region us-east-1 --query 'experiment.state'\n```\n\n**Rollback:** FIS automatically rolls back actions when they complete\nor when a stop condition fires (it aborts running actions, rolls back\neach action — e.g., restarts stopped instances — and sets the state to\n`aborted`). Manual abort: `aws fis stop-experiment --id\n\"$EXPERIMENT_ID\"`. Verify rollback with `describe-instances` on the\ntarget tag.\n\n**Common mistake:** starting the experiment before the IAM role\npermissions have propagated. IAM policy changes can take up to 30\nseconds to propagate. Wait before starting.\n\n## Step 8 — Recent features\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Step 8 — Recent features. See the \"References (load on demand)\" section.\n\n## NEVER do these things\n\n1. **NEVER run a FIS experiment without a stop condition.** Without a\n   stop condition, FIS runs the action to completion regardless of\n   impact. Always configure at least one CloudWatch alarm that\n   represents \"the system is degraded beyond acceptable limits.\"\n\n2. **NEVER use `ALL` selection mode in production.** `ALL` targets\n   every matched resource. Use `COUNT(n)` or `PERCENT(n)` to limit\n   blast radius. If `ALL` is needed (e.g., full-AZ failover test),\n   ensure the stop condition is aggressive and the experiment is\n   carefully reviewed.\n\n3. **NEVER target resources without an opt-in tag.** Always require\n   an explicit `FIS_Target=enabled` tag (or similar). Resources\n   without the tag should NEVER be matched, even if other filter\n   criteria are met.\n\n4. **NEVER use an over-permissive IAM role.** The FIS role should\n   have permissions scoped to the specific fault action on the\n   specific target resources (via `Condition` on resource tags).\n   `ec2:*` on `*` violates least privilege.\n\n5. **NEVER forget the IAM trust policy.** The role must trust\n   `fis.amazonaws.com` in its trust policy. Without it, FIS cannot\n   assume the role and the experiment fails to start.\n\n6. **NEVER create the experiment template before the CloudWatch\n   alarm.** The stop condition references the alarm ARN. If the alarm\n   does not exist, template creation fails with\n   `ResourceNotFoundException`.\n\n7. **NEVER assume resource IDs are stable.** EC2 instance IDs, ECS\n   task IDs, and similar change when resources are replaced (ASG,\n   karpenter, spot interruption). Use resource tags for target\n   stability.\n\n8. **NEVER skip log group configuration.** Without a log group,\n   experiment state changes and action output are not retained,\n   making post-experiment debugging impossible.\n\n9. **NEVER run `aws:ec2:terminate-instances` on production instances\n   without an ASG.** Termination is irreversible. Without an ASG\n   (or equivalent replacement mechanism), the instance is gone.\n   Use `aws:ec2:stop-instances` instead for reversible faults.\n\n10. **NEVER start an experiment before IAM permissions propagate.**\n    IAM policy changes can take up to 30 seconds to propagate. Wait\n    before starting the experiment to avoid opaque permission errors.\n\n## Output format\n\n```text\nFIS_TEMPLATE: \u003Ctemplate-id> — \u003Caction-id> on \u003Ctarget-description>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Action: \u003Caction-id> — \u003Cparameters>\n  [✓|✗] Target: \u003Cresource-type> via \u003Ctags|IDs|filter> (selectionMode: \u003Cmode>)\n  [✓|✗] Stop condition: \u003Ccloudwatch-alarm-arn>\n  [✓|✗] IAM role: \u003Crole-arn> (trust: fis.amazonaws.com; permissions: \u003Caction on tags>)\n  [✓|✗] Log group: \u003Clog-group-name>\n  [✓|✗] Resource tags verified: \u003Ctag-key>=\u003Cvalue> on \u003Cn> resources\n  [✓|✗] Duration: \u003Caction-duration>\n  [✓|✗] Region: \u003Cregion>\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws fis get-experiment-template --id \u003Ctemplate-id> --region \u003Cregion>\n  aws fis get-experiment --id \u003Cexperiment-id> --region \u003Cregion> (after start)\n  aws cloudwatch describe-alarms --alarm-names \u003Calarm-name>\n```\n\n### Worked example — EC2 stop-instances experiment with stop condition\n\n```text\nFIS_TEMPLATE: EXTVAR123456 — aws:ec2:stop-instances on EC2 instances tagged FIS_Target=enabled\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Action: aws:ec2:stop-instances — startAfter: 5m\n  [✓] Target: aws:ec2:instance via tags {FIS_Target=enabled, Environment=staging} (selectionMode: COUNT(1))\n  [✓] Stop condition: arn:aws:cloudwatch:us-east-1:123456789012:alarm:FIS-CPU-High\n  [✓] IAM role: arn:aws:iam::123456789012:role\u002FFISExperimentRole (trust: fis.amazonaws.com; permissions: ec2:StopInstances on tag:FIS_Target=enabled)\n  [✓] Log group: \u002Faws\u002Ffis\u002Fstop-instance-experiment\n  [✓] Resource tags verified: FIS_Target=enabled on 3 instances in staging\n  [✓] Duration: 5m (stop, then auto-restart)\n  [✓] Region: us-east-1\n  [✓] Tags: Environment=staging, ExperimentType=HA-Test\nVERIFICATION_COMMANDS:\n  aws fis get-experiment-template --id EXTVAR123456 --region us-east-1\n  aws fis get-experiment --id EXP1234567 --region us-east-1\n  aws cloudwatch describe-alarms --alarm-names FIS-CPU-High\n```\n\n## Error handling\n\nMoved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — load on demand.\nCovers: Error handling. See the \"References (load on demand)\" section.\n\n## References (load on demand)\n\n- [references\u002Factions-and-targets.md](references\u002Factions-and-targets.md) — the eight fault actions and target-selection detail (existing)\n- [references\u002Fiam-and-stop-conditions.md](references\u002Fiam-and-stop-conditions.md) — IAM role trust\u002Fpermissions and stop-condition detail (existing); now also the full Step 5 trust\u002Fpermissions policy documents and role-creation CLI\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert-heuristic deep dives (tag-based target scoping, stop-condition auto-abort, IAM permission matrix) and recent AWS features (Step 8)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — error-handling deep dives: start permission denied, zero matched targets, stop condition not firing, network disruption failure, stuck in pending\n\n## Domain\n\nAWS CloudOps \u002F AWS Fault Injection Simulator (FIS) Experiment Template\nProvisioning & Chaos Engineering.\n\n## AWS documentation\n\n- **FIS User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fwhat-is.html\n- **Experiment templates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fexperiment-templates.html\n- **FIS actions reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Ffis-actions-reference.html\n- **FIS targets** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Ftargets.html\n- **Stop conditions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fstop-conditions.html\n- **IAM role for FIS** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fiam-role.html\n- **AWS CLI fis** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Ffis\u002F\n- **FIS best practices** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fbest-practices.html\n","# FIS Template Deployer\n\nAn AWS CloudOps agent skill that provisions AWS Fault Injection Simulator\n(FIS) experiment templates with safe production defaults. The skill walks\nthe operator through action specification (the eight FIS-supported fault\nactions), target selection via resource tags (the safest scoping\nmechanism), stop conditions (CloudWatch alarms that auto-abort the\nexperiment), IAM role configuration (trust policy + scoped permissions),\nlog group configuration, experiment start, and report generation. The\nskill captures topology and fault decisions, explains why each default\nmatters, and emits a READY_TO_DEPLOY checklist with copy-pasteable\nverification commands.\n\n## Activation keywords\n\ncreate FIS experiment template, fault injection simulator, chaos\nexperiment AWS, aws:ec2:stop-instances, aws:network:disrupt-connectivity,\naws:rds:failover-db-cluster, aws:ecs:drain-container-instances, FIS stop\ncondition, FIS IAM role, FIS target tags.\n\n## STRICT output contract\n\nWhen this skill is invoked with a FIS-experiment-provisioning request\n(create an experiment template, configure a fault action, scope targets,\nset stop conditions, configure the IAM role, or start an experiment),\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in the\n\"Output format\" section using the literal all-caps labels `FIS_TEMPLATE:`,\n`VERDICT:`, `CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface\nthe checklist with prose, headings, or disclaimers — emit the block as\nthe first lines of the response. This contract is what assertion-based\nevals and downstream provisioning pipelines rely on; deviating from the\nliteral 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 — Experiment template anatomy | Core structure |\n| Step 2 — Actions (the eight fault types) | Fault injection |\n| Step 3 — Targets (resource tags = safest scope) | Target scoping |\n| Step 4 — Stop conditions (CloudWatch alarm auto-abort) | Safety guardrails |\n| Step 5 — IAM role configuration | Permissions |\n| Step 6 — Log group + report generation | Observability |\n| Step 7 — Create, start, rollback | Provisioning step |\n| Step 8 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Factions-and-targets.md | Actions + targets detail |\n| references\u002Fiam-and-stop-conditions.md | IAM + stop conditions detail |\n\n## Mindset\n\n**One-line takeaway:** A FIS experiment template binds a fault action to\na target (scoped by resource tags) under a stop condition (a CloudWatch\nalarm that auto-aborts). The IAM role must permit FIS to perform the\nspecific fault action on the specific target resources. Without the stop\ncondition, there is no safety net. Without tag-based scoping, the blast\nradius is uncontrolled.\n\nThree misconceptions dominate FIS misdesign at provisioning time:\n\n- **\"FIS runs the fault on whatever it finds.\"** It does not. FIS uses\n  the target filter (resource tags, resource IDs, or filter patterns)\n  to scope which resources the action applies to. Resource tags are the\n  safest scoping mechanism because they bind to a stable, auditable\n  attribute rather than an ephemeral resource ID. An underspecified\n  target means an uncontrolled blast radius.\n\n- **\"FIS auto-stops when things go wrong.\"** It does not — unless you\n  configure a stop condition. A stop condition is a CloudWatch alarm\n  that, when it fires into ALARM state during the experiment, triggers\n  FIS to auto-abort all running actions and roll back. Without a stop\n  condition, FIS runs the action to completion regardless of impact.\n  This is the #1 cause of \"FIS broke production\" incidents.\n\n- **\"Any IAM role works for FIS.\"** It does not. The FIS service role\n  must trust `fis.amazonaws.com` in its trust policy AND must have\n  permissions scoped to the specific fault action on the specific\n  target resources. An over-permissive role (e.g., `ec2:*` on `*`)\n  violates least privilege. An under-permissive role (e.g., missing\n  `ec2:StopInstances`) causes the experiment to fail at start with an\n  opaque permissions error.\n\n## Configuration dependency graph (novel heuristic)\n\nFIS experiment configurations are NOT independent. The IAM role must\npermit the action on the target before the experiment can start. Stop\nconditions require a CloudWatch alarm to exist before the template can\nreference it. Targets must have the required tags applied before the\nexperiment can match them. Use this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| CloudWatch alarm (stop condition) | metric exists; alarm configured | alarm must be in ALARM state during experiment to trigger abort; OK state does nothing | stop condition reference |\n| IAM role (trust policy) | role exists; trust policy allows `fis.amazonaws.com` | service-linked role is preferred; custom role must be explicitly passed | FIS assumes the role |\n| IAM role (permissions) | role has permission for the action on the target resource tags | over-permissive role violates least-privilege; under-permissive role causes experiment start failure | experiment actions execute |\n| Resource tags on targets | tags applied to EC2\u002FECS\u002FRDS\u002FLambda\u002FS3 resources | untagged resources are NOT matched by tag-based targets — silent zero-target failure | target filter matches resources |\n| Experiment template | actions, targets, stop conditions, IAM role all specified | template is immutable once created; update requires create-template-version or replace | experiment start |\n| Experiment start | template exists; IAM role has permissions; targets have tags | experiment runs actions for the specified duration; auto-abort on stop condition | report generation |\n| Log group | CloudWatch Logs log group exists (or FIS creates it) | without log group, experiment logs are not retained | post-experiment debugging |\n\n**The IAM-role-permission row is the one a baseline model misses.** A\nbaseline says \"create an experiment template.\" The correct heuristic\nrecognizes that the template's `roleArn` must allow `fis.amazonaws.com`\nto assume it (trust policy) AND must grant the specific fault action's\npermissions on the specific target resources (scoped permissions). The\nprocedure below forces an explicit decision on each.\n\n**Cross-dependency gotchas:**\n- Stop conditions reference CloudWatch alarms by ARN. The alarm must\n  exist BEFORE the template is created. Creating the template first\n  fails with `ResourceNotFoundException`.\n- Targets with tag filters match resources at experiment START time,\n  not at template CREATION time. Tagging a resource after template\n  creation but before experiment start still includes it.\n- The IAM role's permission boundary must allow the action on the\n  target's resource tags. If the role allows `ec2:StopInstances` on\n  `Resource: *` but the targets are tagged `Environment=prod`, FIS\n  can still stop them — but this violates least privilege. Scope the\n  role's permissions to the target tags via `Condition` blocks.\n- `aws:network:disrupt-connectivity` requires the VPC and subnet\n  networking permissions (the FIS network agent), not just EC2\n  permissions. The role must include `ec2:CreateNetworkInterface`,\n  `ec2:DeleteNetworkInterface`, and related networking actions.\n\n## Expert heuristic: tag-based target scoping is the safest mechanism\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Expert heuristic: tag-based target scoping is the safest mechanism. See the \"References (load on demand)\" section.\n\n## Expert heuristic: stop conditions auto-abort when alarms fire\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Expert heuristic: stop conditions auto-abort when alarms fire. See the \"References (load on demand)\" section.\n\n## Expert heuristic: IAM role must allow the specific fault action on target resources\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Expert heuristic: IAM role must allow the specific fault action on target resources. See the \"References (load on demand)\" section.\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| CloudWatch alarm exists (for stop condition) | Stop condition references an alarm ARN; alarm must exist first | `aws cloudwatch describe-alarms --alarm-names \u003Cname>` |\n| IAM role exists with FIS trust policy | FIS assumes this role to execute fault actions | `aws iam get-role --role-name \u003Cname>` and check trust policy |\n| IAM role has action-specific permissions | Role must allow the fault action on target resources | `aws iam list-attached-role-policies` and `aws iam list-role-policies` |\n| Target resources tagged correctly | Tag-based targeting requires the tag to be present | `aws ec2 describe-instances --filters Name=tag:\u003Ckey>,Values=\u003Cvalue>` |\n| Log group exists (or auto-create enabled) | Experiment logs need a destination | `aws logs describe-log-groups --log-group-name-prefix \u002Faws\u002Ffis\u002F` |\n| FIS service role (or custom role ARN) | Template references a role ARN | Confirm role ARN |\n| Action parameters specified | Each action has required parameters (duration, cluster, function, etc.) | Review action spec |\n| Region supports FIS | FIS is available in most regions but verify | `aws fis list-experiment-templates --region \u003Cregion>` |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Experiment template anatomy\n\nA FIS experiment template is a JSON document that binds actions to\ntargets under stop conditions, executed under an IAM role.\n\n| Template field | Purpose | Required |\n|---|---|---|\n| `description` | Human-readable experiment description | Yes |\n| `roleArn` | IAM role FIS assumes to execute actions | Yes |\n| `actions` | Map of action name → action spec (actionId, parameters, targets) | Yes |\n| `targets` | Map of target name → target spec (resourceType, resourceTags, resourceIds, filter) | Yes (if actions reference targets) |\n| `stopConditions` | List of stop conditions (CloudWatch alarm ARN or source ARN) | Yes (at least one recommended) |\n| `logConfiguration` | CloudWatch Logs log group for experiment output | Recommended |\n| `tags` | Tag the experiment template itself | Optional |\n\n**Minimal template structure (JSON):**\n\n```json\n{\n  \"description\": \"Stop 1 EC2 instance for 5 minutes to test HA\",\n  \"roleArn\": \"arn:aws:iam::123456789012:role\u002FFISExperimentRole\",\n  \"actions\": {\n    \"stop-instance\": {\n      \"actionId\": \"aws:ec2:stop-instances\",\n      \"parameters\": { \"startAfter\": [\"5m\"] },\n      \"targets\": { \"Instances\": \"target-instances\" }\n    }\n  },\n  \"targets\": {\n    \"target-instances\": {\n      \"resourceType\": \"aws:ec2:instance\",\n      \"resourceTags\": { \"FIS_Target\": \"enabled\" },\n      \"selectionMode\": \"COUNT(1)\"\n    }\n  },\n  \"stopConditions\": [\n    { \"source\": \"aws:cloudwatch:alarm\",\n      \"value\": \"arn:aws:cloudwatch:us-east-1:123456789012:alarm:FIS-CPU-High\" }\n  ],\n  \"logConfiguration\": {\n    \"logSchemaVersion\": 1,\n    \"cloudWatchLogsConfiguration\": { \"logGroup\": \"\u002Faws\u002Ffis\u002Fstop-instance-experiment\" }\n  }\n}\n```\n\n## Step 2 — Actions (the eight fault types)\n\nFIS supports eight primary fault actions across compute, container,\nnetwork, database, storage, and observability layers.\n\n| Action ID | Fault type | Key parameters | Impact |\n|---|---|---|---|\n| `aws:ec2:stop-instances` | Stop EC2 instances | `startAfter` (duration after which instances restart) | Instance stops; apps must handle restart |\n| `aws:ec2:terminate-instances` | Terminate EC2 instances | `completeAfter` (duration) | Instance is terminated; ASG replacement needed |\n| `aws:ecs:drain-container-instances` | Drain ECS container instances | `duration` | Tasks are moved off the instance; tests rescheduling |\n| `aws:lambda:invoke` | Invoke Lambda function | `functionArn`, `functionPayload` | Invokes custom chaos\u002Ffault function |\n| `aws:network:disrupt-connectivity` | Disrupt network connectivity | `duration`, `scope`, `portRanges`, `sourcePorts` | Drops\u002Fallows\u002Fdelays packets between AZs\u002Fsubnets |\n| `aws:rds:failover-db-cluster` | Failover RDS DB cluster | N\u002FA (uses target cluster) | Promotes a different reader to writer |\n| `aws:s3:pause-bucket-access` | Pause S3 bucket access | `duration` | Bucket becomes temporarily unavailable |\n| `aws:cloudwatch:put-metric-data` | Push custom metric data | `namespace`, `metricName`, `value` | Simulates a custom metric (useful for testing alarms) |\n\n**Action duration:** most actions accept a `duration` parameter (e.g.,\n`\"5m\"`, `\"PT5M\"`). The fault is applied for the duration, then FIS\nrolls back (e.g., restarts stopped instances, restores bucket access).\n**Action sequencing:** by default, actions in the template run\nconcurrently. Use the `startAfter` field to sequence actions\n(e.g., `\"startAfter\": [\"action-1\"]` runs this action after action-1\ncompletes).\n\n## Step 3 — Targets (resource tags = safest scope)\n\nTargets specify which resources the action applies to. Use resource\ntags for the safest scoping.\n\n| Target field | Purpose | Example |\n|---|---|---|\n| `resourceType` | The AWS resource type | `aws:ec2:instance`, `aws:ecs:container-instance`, `aws:rds:cluster`, `aws:lambda:function`, `aws:s3:bucket` |\n| `resourceTags` | Tag key=value pairs to match | `{\"FIS_Target\": \"enabled\", \"Environment\": \"staging\"}` |\n| `resourceIds` | Specific resource IDs | `[\"i-aaa111222\", \"i-bbb222333\"]` |\n| `filter` | Additional filter pattern | `\"vpc-id = vpc-xxx\"` |\n| `selectionMode` | How many matched resources to target | `COUNT(1)`, `COUNT(2)`, `ALL`, `PERCENT(50)` |\n\n**selectionMode semantics:** `COUNT(n)` targets exactly n matched\nresources (chosen randomly). `ALL` targets all matched resources.\n`PERCENT(n)` targets n% of matched resources (chosen randomly).\n\n**Critical:** always use an explicit opt-in tag (e.g., `FIS_Target=enabled`)\nso resources are only targeted if they are explicitly tagged. This\nprevents accidental targeting of production resources.\n\n## Step 4 — Stop conditions (CloudWatch alarm auto-abort)\n\nStop conditions are CloudWatch alarms that, when they fire into ALARM\nstate during the experiment, trigger FIS to auto-abort. **Create the\nalarm BEFORE the experiment template** (stop conditions reference the\nalarm ARN; if the alarm does not exist, template creation fails).\n\n**Recommended stop condition alarms:**\n- CPU utilization spike (e.g., `CPUUtilization > 90%` for 1 minute)\n- Error rate spike (e.g., `5xx errors > 5%` for 1 minute)\n- Latency spike (e.g., `p99 latency > 2000ms` for 1 minute)\n- Health check failure (e.g., `HealthyHostCount \u003C 1`)\n\n```bash\naws cloudwatch put-metric-alarm \\\n  --alarm-name \"FIS-CPU-High\" \\\n  --metric-name \"CPUUtilization\" --namespace \"AWS\u002FEC2\" \\\n  --statistic \"Average\" --period 60 --threshold 90.0 \\\n  --comparison-operator \"GreaterThanThreshold\" \\\n  --dimensions \"Name=AutoScalingGroupName,Value=my-asg\" \\\n  --evaluation-periods 1 \\\n  --alarm-actions \"arn:aws:sns:us-east-1:123456789012:fis-alerts\" \\\n  --region us-east-1\n```\n\n**Critical:** without a stop condition, FIS runs the action to\ncompletion regardless of impact. Always configure at least one.\n\n## Step 5 — IAM role configuration\n\nMoved verbatim to [references\u002Fiam-and-stop-conditions.md](references\u002Fiam-and-stop-conditions.md) — load on demand.\nCovers: Step 5 — IAM role configuration. See the \"References (load on demand)\" section.\n\n## Step 6 — Log group and report generation\n\nFIS writes experiment state transitions and action output to a\nCloudWatch Logs log group. Create the log group first, then reference it\nin the template.\n\n```bash\naws logs create-log-group \\\n  --log-group-name \"\u002Faws\u002Ffis\u002Fstop-instance-experiment\" --region us-east-1\n```\n\n```json\n\"logConfiguration\": {\n  \"logSchemaVersion\": 1,\n  \"cloudWatchLogsConfiguration\": { \"logGroup\": \"\u002Faws\u002Ffis\u002Fstop-instance-experiment\" }\n}\n```\n\nAfter the experiment completes (or is aborted), FIS generates a report.\nUse `get-experiment` to retrieve it (key fields: state, startTime,\nendTime, actions state, targets, stopConditions fired). CloudWatch Logs\nInsights queries (filter `@logStream like \u002FFIS\u002F`) provide deeper\npost-experiment analysis.\n\n## Step 7 — Create, start, and rollback\n\n**Create the experiment template:**\n\n```bash\nTEMPLATE_ID=$(aws fis create-experiment-template \\\n  --cli-input-json file:\u002F\u002Fexperiment-template.json \\\n  --region us-east-1 \\\n  --query 'experimentTemplate.id' --output text)\n```\n\n**Verify the template:**\n\n```bash\naws fis get-experiment-template --id \"$TEMPLATE_ID\" --region us-east-1\n```\n\n**Start the experiment:**\n\n```bash\nEXPERIMENT_ID=$(aws fis start-experiment \\\n  --experiment-template-id \"$TEMPLATE_ID\" --region us-east-1 \\\n  --query 'experiment.id' --output text)\n```\n\n**Monitor the experiment state:** pending → running → completed |\naborted | failed.\n\n```bash\naws fis get-experiment --id \"$EXPERIMENT_ID\" \\\n  --region us-east-1 --query 'experiment.state'\n```\n\n**Rollback:** FIS automatically rolls back actions when they complete\nor when a stop condition fires (it aborts running actions, rolls back\neach action — e.g., restarts stopped instances — and sets the state to\n`aborted`). Manual abort: `aws fis stop-experiment --id\n\"$EXPERIMENT_ID\"`. Verify rollback with `describe-instances` on the\ntarget tag.\n\n**Common mistake:** starting the experiment before the IAM role\npermissions have propagated. IAM policy changes can take up to 30\nseconds to propagate. Wait before starting.\n\n## Step 8 — Recent features\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\nCovers: Step 8 — Recent features. See the \"References (load on demand)\" section.\n\n## NEVER do these things\n\n1. **NEVER run a FIS experiment without a stop condition.** Without a\n   stop condition, FIS runs the action to completion regardless of\n   impact. Always configure at least one CloudWatch alarm that\n   represents \"the system is degraded beyond acceptable limits.\"\n\n2. **NEVER use `ALL` selection mode in production.** `ALL` targets\n   every matched resource. Use `COUNT(n)` or `PERCENT(n)` to limit\n   blast radius. If `ALL` is needed (e.g., full-AZ failover test),\n   ensure the stop condition is aggressive and the experiment is\n   carefully reviewed.\n\n3. **NEVER target resources without an opt-in tag.** Always require\n   an explicit `FIS_Target=enabled` tag (or similar). Resources\n   without the tag should NEVER be matched, even if other filter\n   criteria are met.\n\n4. **NEVER use an over-permissive IAM role.** The FIS role should\n   have permissions scoped to the specific fault action on the\n   specific target resources (via `Condition` on resource tags).\n   `ec2:*` on `*` violates least privilege.\n\n5. **NEVER forget the IAM trust policy.** The role must trust\n   `fis.amazonaws.com` in its trust policy. Without it, FIS cannot\n   assume the role and the experiment fails to start.\n\n6. **NEVER create the experiment template before the CloudWatch\n   alarm.** The stop condition references the alarm ARN. If the alarm\n   does not exist, template creation fails with\n   `ResourceNotFoundException`.\n\n7. **NEVER assume resource IDs are stable.** EC2 instance IDs, ECS\n   task IDs, and similar change when resources are replaced (ASG,\n   karpenter, spot interruption). Use resource tags for target\n   stability.\n\n8. **NEVER skip log group configuration.** Without a log group,\n   experiment state changes and action output are not retained,\n   making post-experiment debugging impossible.\n\n9. **NEVER run `aws:ec2:terminate-instances` on production instances\n   without an ASG.** Termination is irreversible. Without an ASG\n   (or equivalent replacement mechanism), the instance is gone.\n   Use `aws:ec2:stop-instances` instead for reversible faults.\n\n10. **NEVER start an experiment before IAM permissions propagate.**\n    IAM policy changes can take up to 30 seconds to propagate. Wait\n    before starting the experiment to avoid opaque permission errors.\n\n## Output format\n\n```text\nFIS_TEMPLATE: \u003Ctemplate-id> — \u003Caction-id> on \u003Ctarget-description>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Action: \u003Caction-id> — \u003Cparameters>\n  [✓|✗] Target: \u003Cresource-type> via \u003Ctags|IDs|filter> (selectionMode: \u003Cmode>)\n  [✓|✗] Stop condition: \u003Ccloudwatch-alarm-arn>\n  [✓|✗] IAM role: \u003Crole-arn> (trust: fis.amazonaws.com; permissions: \u003Caction on tags>)\n  [✓|✗] Log group: \u003Clog-group-name>\n  [✓|✗] Resource tags verified: \u003Ctag-key>=\u003Cvalue> on \u003Cn> resources\n  [✓|✗] Duration: \u003Caction-duration>\n  [✓|✗] Region: \u003Cregion>\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws fis get-experiment-template --id \u003Ctemplate-id> --region \u003Cregion>\n  aws fis get-experiment --id \u003Cexperiment-id> --region \u003Cregion> (after start)\n  aws cloudwatch describe-alarms --alarm-names \u003Calarm-name>\n```\n\n### Worked example — EC2 stop-instances experiment with stop condition\n\n```text\nFIS_TEMPLATE: EXTVAR123456 — aws:ec2:stop-instances on EC2 instances tagged FIS_Target=enabled\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Action: aws:ec2:stop-instances — startAfter: 5m\n  [✓] Target: aws:ec2:instance via tags {FIS_Target=enabled, Environment=staging} (selectionMode: COUNT(1))\n  [✓] Stop condition: arn:aws:cloudwatch:us-east-1:123456789012:alarm:FIS-CPU-High\n  [✓] IAM role: arn:aws:iam::123456789012:role\u002FFISExperimentRole (trust: fis.amazonaws.com; permissions: ec2:StopInstances on tag:FIS_Target=enabled)\n  [✓] Log group: \u002Faws\u002Ffis\u002Fstop-instance-experiment\n  [✓] Resource tags verified: FIS_Target=enabled on 3 instances in staging\n  [✓] Duration: 5m (stop, then auto-restart)\n  [✓] Region: us-east-1\n  [✓] Tags: Environment=staging, ExperimentType=HA-Test\nVERIFICATION_COMMANDS:\n  aws fis get-experiment-template --id EXTVAR123456 --region us-east-1\n  aws fis get-experiment --id EXP1234567 --region us-east-1\n  aws cloudwatch describe-alarms --alarm-names FIS-CPU-High\n```\n\n## Error handling\n\nMoved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — load on demand.\nCovers: Error handling. See the \"References (load on demand)\" section.\n\n## References (load on demand)\n\n- [references\u002Factions-and-targets.md](references\u002Factions-and-targets.md) — the eight fault actions and target-selection detail (existing)\n- [references\u002Fiam-and-stop-conditions.md](references\u002Fiam-and-stop-conditions.md) — IAM role trust\u002Fpermissions and stop-condition detail (existing); now also the full Step 5 trust\u002Fpermissions policy documents and role-creation CLI\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert-heuristic deep dives (tag-based target scoping, stop-condition auto-abort, IAM permission matrix) and recent AWS features (Step 8)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — error-handling deep dives: start permission denied, zero matched targets, stop condition not firing, network disruption failure, stuck in pending\n\n## Domain\n\nAWS CloudOps \u002F AWS Fault Injection Simulator (FIS) Experiment Template\nProvisioning & Chaos Engineering.\n\n## AWS documentation\n\n- **FIS User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fwhat-is.html\n- **Experiment templates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fexperiment-templates.html\n- **FIS actions reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Ffis-actions-reference.html\n- **FIS targets** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Ftargets.html\n- **Stop conditions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fstop-conditions.html\n- **IAM role for FIS** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fiam-role.html\n- **AWS CLI fis** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Ffis\u002F\n- **FIS best practices** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffis\u002Flatest\u002Fuserguide\u002Fbest-practices.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, fis, fault-injection-simulator, cloudops, deploy, chaos-engineering, experiment-template, stop-conditions, cloudwatch-alarm, iam-role, resource-tags, auto-abort","1","Jacky Chan — AWS Community Builder","aws-cloudops","Management","0.1.0","aws, fis, fault injection simulator, chaos engineering, experiment template, cloudops, deploy, stop conditions, cloudwatch alarm, iam role, resource tags, target, auto-abort, ec2 stop instances, network disrupt connectivity, rds failover, ecs drain, lambda invoke, s3 pause bucket","deploy","high","false","capability","Invoke when the user wants to create an AWS Fault Injection Simulator experiment template, configure a chaos\u002Ffault injection experiment on EC2\u002FECS\u002FRDS\u002FLambda\u002FS3\u002Fnetwork resources, scope experiment targets via resource tags and filters, set stop conditions (CloudWatch alarms) for auto-abort, configure the FIS IAM role with appropriate trust and permissions, or start\u002Frollback an experiment. Do NOT invoke for AWS Resilience Hub (readiness assessment), Chaos Mesh (EKS-native), or Gremlin (third-party chaos tool).","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 fis, ec2, ecs, rds, lambda, iam, and cloudwatch access. Works with Terraform aws_fis_experiment_template resources and CloudFormation AWS::FIS::ExperimentTemplate templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Ffis-template-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 fis-template-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill fis-template-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill fis-template-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,117,121,125,129,133,137],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",7315,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fec2-stop-instances-experiment.md",833,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fbaselines\u002Fec2-stop-instances-experiment.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fecs-container-instance-drain.md",687,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fbaselines\u002Fecs-container-instance-drain.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fmissing-iam-role-permissions.md",714,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fbaselines\u002Fmissing-iam-role-permissions.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fnetwork-connectivity-disruption.md",785,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fbaselines\u002Fnetwork-connectivity-disruption.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Frds-failover-experiment.md",723,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fbaselines\u002Frds-failover-experiment.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1832,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",12483,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fec2-stop-instances-experiment.md",828,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fprompts\u002Fec2-stop-instances-experiment.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fecs-container-instance-drain.md",936,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fprompts\u002Fecs-container-instance-drain.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fmissing-iam-role-permissions.md",756,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fprompts\u002Fmissing-iam-role-permissions.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fnetwork-connectivity-disruption.md",835,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fprompts\u002Fnetwork-connectivity-disruption.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Frds-failover-experiment.md","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fevals\u002Fprompts\u002Frds-failover-experiment.md",{"path":118,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":119,"sourceHtmlUrl":120},"examples\u002FREADME.md",6286,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fexamples\u002FREADME.md",{"path":122,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Factions-and-targets.md",7816,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Freferences\u002Factions-and-targets.md",{"path":126,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",5247,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Ferror-handling.md",1482,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Freferences\u002Ferror-handling.md",{"path":134,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fiam-and-stop-conditions.md",11354,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Freferences\u002Fiam-and-stop-conditions.md",{"path":138,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":139,"sourceHtmlUrl":140},"skill.usf.yaml",4522,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Ffis-template-deployer\u002Fskill.usf.yaml",[142,149,156,163,170,177],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"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":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"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":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"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":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"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":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"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",[],[]]