[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABTRBSFHG166R5BA83ZZES":3,"skill-same:01M7ABTRBSFHG166R5BA83ZZES":143},{"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":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7ABTRBSFHG166R5BA83ZZES","s3-lifecycle-automator",null,"Designs and implements automated S3 lifecycle policy deployment across single and multi-account environments. Covers tag-based lifecycle policy deployment via CloudFormation StackSets and Lambda, bucket inventory collection for lifecycle audit, automated storage class transitions (Standard to IA to Glacier to Deep Archive) based on object age patterns, versioning lifecycle rules (NoncurrentVersionTransition and NoncurrentVersionExpiration), Intelligent-Tiering opt-in automation, Storage Lens analysis for identifying buckets without lifecycle policies, S3 Batch Operations for retroactive storage-class tiering of existing objects, lifecycle policy validation enforcing minimum-days rules per tier (30 days for IA, 90 days for Glacier Instant Retrieval), multi- account lifecycle enforcement via StackSets, and EventBridge notifications on lifecycle policy changes. Emits AUTOMATION_DEPLOYED with a fully validated lifecycle configuration or REVIEW_REQUIRED with the specific validation gap. Use when building S3...","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\u002Fs3-lifecycle-automator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: s3-lifecycle-automator\ndescription: Designs and implements automated S3 lifecycle policy deployment across single and multi-account environments. Covers tag-based lifecycle policy deployment via CloudFormation StackSets and Lambda, bucket inventory collection for lifecycle audit, automated storage class transitions (Standard to IA to Glacier to Deep Archive) based on object age patterns, versioning lifecycle rules (NoncurrentVersionTransition and NoncurrentVersionExpiration), Intelligent-Tiering opt-in automation, Storage Lens analysis for identifying buckets without lifecycle policies, S3 Batch Operations for retroactive storage-class tiering of existing objects, lifecycle policy validation enforcing minimum-days rules per tier (30 days for IA, 90 days for Glacier Instant Retrieval), multi- account lifecycle enforcement via StackSets, and EventBridge notifications on lifecycle policy changes. Emits AUTOMATION_DEPLOYED with a fully validated lifecycle configuration or REVIEW_REQUIRED with the specific validation gap. Use when building S3...\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline workflow design. Live deployment uses aws s3api put-bucket-lifecycle-configuration, get-bucket-lifecycle- configuration, put-bucket-intelligent-tiering-configuration, aws s3control create-job, get-storage-lens-configuration, and aws cloudformation create-stack-set, create-stack-instances — AWS CLI v2, SSO or key-based credentials.\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '4'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Storage\n  task_type: automate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\n  when_to_use: Building S3 lifecycle automation, deploying tiering policies (Standard to IA to Glacier to Deep Archive), setting up versioning lifecycle rules (NoncurrentVersionTransition, NoncurrentVersionExpiration), enabling Intelligent-Tiering at scale, remediating Storage Lens gaps, running S3 Batch Operations for retroactive tiering, validating lifecycle min-days rules, or deploying multi-account lifecycle via StackSets.\n  activation_triggers: automate S3 lifecycle policy, deploy lifecycle StackSets, put-bucket-lifecycle-configuration, Standard to IA to Glacier transition, NoncurrentVersionTransition, Intelligent-Tiering opt-in, S3 Batch Operations tiering, Storage Lens lifecycle gap, lifecycle min-days validation, multi-account lifecycle enforcement\n  invocation_schema: 'Input: either (a) an S3 lifecycle requirement (\"transition objects to IA after 30 days, Glacier after 90 days\", \"expire non-current versions after 60 days\"), OR (b) a Storage Lens report identifying buckets without lifecycle policies. Output: deterministic LIFECYCLE block per bucket — POLICY\u002FTRANSITIONS\u002FVERSIONING\u002FVALIDATION\u002FENFORCEMENT\u002F VERDICT — where VERDICT is AUTOMATION_DEPLOYED (policy validated and ready) or REVIEW_REQUIRED (specific gap cited).'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: S3 lifecycle, lifecycle policy, storage class transition, Standard to IA, Glacier, Deep Archive, Intelligent-Tiering, NoncurrentVersionTransition, NoncurrentVersionExpiration, S3 Batch Operations, Storage Lens, CloudFormation StackSets, lifecycle validation, min-days rules, multi-account lifecycle, tag-based lifecycle\n  tags: aws-s3, s3-lifecycle, storage-tiering, intelligent-tiering, storage-lens, batch-operations, automate\n---\n\n# S3 Lifecycle Automator\n\n## Mindset\n\n**One-line takeaway:** S3 lifecycle automation is a four-stage pipeline —\n**inventory** (identify buckets and object-age patterns) → **design**\n(lifecycle rules with correct transition days per tier) → **validate**\n(enforce min-days: 30 for IA, 90 for Glacier IR) → **deploy**\n(put-bucket-lifecycle-configuration or StackSets). A gap in ANY stage\nproduces silent cost leakage.\n\n- **Design** without **validation** is fragile: S3 silently rejects rules\n  that violate min-days constraints. A rule transitioning to IA at 15\n  days is accepted by the API but never executes.\n- **Lifecycle min-days per tier is enforced.** Standard to Standard-IA\n  requires 30 days. Standard-IA to Glacier Instant Retrieval requires\n  90 days total object age. These are hard constraints.\n- **Versioning lifecycle is SEPARATE from current-version rules.**\n  `NoncurrentVersionTransition` and `NoncurrentVersionExpiration` operate\n  on non-current versions only. A policy that only transitions current\n  versions leaves all deleted-object versions in Standard forever.\n\n## Quick navigation\n\n| You want to... | Go to |\n|---|---|\n| Design Standard→IA→Glacier→DeepArchive policy | Step 2 + Appendix A |\n| Validate min-days rules | Step 3 + Step 9 |\n| Add versioning lifecycle rules | Step 4 |\n| Enable Intelligent-Tiering | Step 5 |\n| Deploy via StackSets (multi-account) | Step 6 |\n| Find buckets without lifecycle via Storage Lens | Step 7 |\n| Retroactive tiering via Batch Operations | Step 8 |\n| Add EventBridge notifications on changes | Step 10 |\n| Avoid common pitfall patterns | Anti-Patterns |\n\n## Critical rules at a glance (do NOT bury these)\n\n1. **Lifecycle min-days per tier is a HARD constraint.** Minimum for\n   Standard-IA is 30 days. For Glacier Instant Retrieval, 90 days total\n   object age. For Deep Archive, 180 days total. A rule with `Days: 15`\n   for IA is silently accepted but NEVER executes.\n\n2. **Versioning lifecycle rules are SEPARATE from current-version\n   rules.** `NoncurrentVersionTransition` and\n   `NoncurrentVersionExpiration` operate exclusively on non-current\n   versions. Without them, non-current versions accumulate in Standard\n   indefinitely.\n\n3. **`put-bucket-lifecycle-configuration` REPLACES the entire policy.**\n   No append mode. Always `get-bucket-lifecycle-configuration` first,\n   merge, then PUT.\n\n4. **Intelligent-Tiering has no transition-day minimums.** Auto-moves\n   objects between access tiers based on access patterns. Key advantage\n   for buckets with unpredictable access.\n\n5. **Storage Lens identifies buckets without lifecycle policies at\n   scale.** The `LifecycleEnabled` metric shows which buckets lack\n   configuration. Use as the inventory input for multi-bucket deployment.\n\n## Pre-flight: data requirements\n\n| Input | Source | Why |\n|---|---|---|\n| Bucket name(s) | `aws s3api list-buckets` | Target for lifecycle |\n| Current lifecycle | `aws s3api get-bucket-lifecycle-configuration` | Don't overwrite blindly |\n| Versioning status | `aws s3api get-bucket-versioning` | Determines NoncurrentVersion rules |\n| Object age distribution | Storage Lens or S3 Inventory | Drives transition day selection |\n| Storage Lens report | `aws s3control get-storage-lens-configuration` | Identifies gaps |\n| Account list (multi-account) | `aws organizations list-accounts` | For StackSets |\n| StackSet status | `aws cloudformation list-stack-instances` | Verify rollout |\n\n**If the input is malformed**, emit:\n\n```text\nLIFECYCLE: \u003Creference>\nBUCKET: \u003Cbucket-name>\nVERDICT: ERROR\nREASON: Cannot design lifecycle policy — bucket name and transition schedule are required.\nGAP: Re-supply bucket name, versioning status, and desired transition days per storage class.\n```\n\n## Process — Lifecycle design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious S3 lifecycle behaviors\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — non-obvious lifecycle behaviors deep dive.\n### Step 1: Classify the lifecycle requirement\n\n| Requirement | Pattern | Transition schedule |\n|---|---|---|\n| Log archival | Standard→IA→Glacier→DeepArchive | 30d→90d→180d→365d |\n| Backup retention | Standard→IA→Glacier IR | 30d→90d |\n| Temporary uploads | Standard→Expire | 30d expire |\n| Versioned data | Current: Standard→IA; Noncurrent: IA→Expire | 30d current, 60d noncurrent |\n| Unknown access pattern | Intelligent-Tiering opt-in | Auto-tiering |\n| Compliance archive | Standard→DeepArchive | 180d |\n\nIf the access pattern is unknown, default to Intelligent-Tiering.\n\n### Step 2: Design the lifecycle policy\n\n```bash\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-logs-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [\n      {\n        \"ID\": \"log-archival-policy\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {\"Prefix\": \"logs\u002F\"},\n        \"Transitions\": [\n          {\"Days\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"Days\": 90, \"StorageClass\": \"GLACIER_IR\"},\n          {\"Days\": 180, \"StorageClass\": \"GLACIER\"},\n          {\"Days\": 365, \"StorageClass\": \"DEEP_ARCHIVE\"}\n        ]\n      }\n    ]\n  }'\n```\n\nTag-based lifecycle rule:\n\n```bash\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-data-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [{\n      \"ID\": \"archive-tagged-objects\",\n      \"Status\": \"Enabled\",\n      \"Filter\": {\"Tag\": {\"Key\": \"ArchiveClass\", \"Value\": \"glacier\"}},\n      \"Transitions\": [{\"Days\": 1, \"StorageClass\": \"GLACIER\"}]\n    }]\n  }'\n```\n\n### Step 3: Validate min-days rules\n\nBefore deploying, validate every transition against enforced minimums:\n\n| From | To | Min days (total object age) | Notes |\n|---|---|---|---|\n| STANDARD | STANDARD_IA | 30 | Hard minimum |\n| STANDARD_IA | GLACIER_IR | 90 | Must be >= 90 total |\n| STANDARD_IA | GLACIER | 91 (1 day after IA) | 30 (IA) + 61 |\n| STANDARD | GLACIER (direct) | 1 | Can skip IA |\n| Any | DEEP_ARCHIVE | 180 | Hard minimum |\n| STANDARD | ONEZONE_IA | 30 | Same as STANDARD_IA |\n| STANDARD | INTELLIGENT_TIERING | 0 | No minimum |\n\nIf ANY transition violates the minimum, emit:\n\n```text\nLIFECYCLE: \u003Creference>\nBUCKET: \u003Cbucket-name>\nRULE: \u003Crule-id>\nTRANSITION: STANDARD → STANDARD_IA\nCONFIGURED_DAYS: 15\nMINIMUM_DAYS: 30\nVERDICT: REVIEW_REQUIRED\nGAP: Transition to STANDARD_IA requires minimum 30 days. Configured 15 days will be silently accepted but NEVER execute.\n```\n\n### Step 4: Add versioning lifecycle rules\n\n```bash\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-versioned-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [\n      {\n        \"ID\": \"versioned-lifecycle-policy\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {},\n        \"Transitions\": [\n          {\"Days\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"Days\": 90, \"StorageClass\": \"GLACIER_IR\"}\n        ],\n        \"NoncurrentVersionTransitions\": [\n          {\"NoncurrentDays\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"NoncurrentDays\": 90, \"StorageClass\": \"GLACIER\"}\n        ],\n        \"NoncurrentVersionExpiration\": {\"NoncurrentDays\": 120},\n        \"AbortIncompleteMultipartUpload\": {\"DaysAfterInitiation\": 7},\n        \"ExpiredObjectDeleteMarker\": true\n      }\n    ]\n  }'\n```\n\n| Field | What it does |\n|---|---|\n| `NoncurrentVersionTransitions` | Transition non-current versions to cheaper storage |\n| `NoncurrentVersionExpiration` | Permanently delete non-current versions after N days |\n| `AbortIncompleteMultipartUpload` | Abort uploads incomplete within N days |\n| `ExpiredObjectDeleteMarker` | Remove delete marker when it's the only version |\n\n### Step 5: Enable Intelligent-Tiering\n\n```bash\n# Opt-in via lifecycle rule (Days: 0 = immediate transition to IT)\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-data-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [{\n      \"ID\": \"intelligent-tiering-all-objects\",\n      \"Status\": \"Enabled\",\n      \"Filter\": {},\n      \"Transitions\": [{\"Days\": 0, \"StorageClass\": \"INTELLIGENT_TIERING\"}]\n    }]\n  }'\n\n# Configure archive tiers (optional)\naws s3api put-bucket-intelligent-tiering-configuration \\\n  --bucket my-data-bucket \\\n  --id ArchiveConfig \\\n  --intelligent-tiering-configuration '{\n    \"Id\": \"ArchiveConfig\",\n    \"Status\": \"Enabled\",\n    \"Tierings\": [\n      {\"AccessTier\": \"ARCHIVE_ACCESS\", \"Days\": 90},\n      {\"AccessTier\": \"DEEP_ARCHIVE_ACCESS\", \"Days\": 180}\n    ]\n  }'\n```\n\n| IT tier | Auto-transition trigger | Retrieval |\n|---|---|---|\n| Frequent Access | Accessed within 30 days | Milliseconds |\n| Infrequent Access | Not accessed 31+ days | Milliseconds |\n| Archive Instant | Not accessed 90+ days | Milliseconds |\n| Archive | Configurable (default 90) | Minutes to hours |\n| Deep Archive | Configurable (default 180) | Up to 12 hours |\n\n### Step 6: Multi-account deployment via StackSets\n\n→ Advanced pattern moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — multi-account StackSets deployment.\n### Step 7: Identify lifecycle gaps via Storage Lens\n\n→ Moved to [references\u002Fstorage-lens-and-batch-operations.md](references\u002Fstorage-lens-and-batch-operations.md).\n### Step 8: Retroactive tiering via S3 Batch Operations\n\n→ Moved to [references\u002Fstorage-lens-and-batch-operations.md](references\u002Fstorage-lens-and-batch-operations.md).\n### Step 9: Pre-deployment validation function\n\n```python\nMIN_DAYS = {\n    ('STANDARD', 'STANDARD_IA'): 30,\n    ('STANDARD', 'ONEZONE_IA'): 30,\n    ('STANDARD_IA', 'GLACIER_IR'): 90,\n    ('STANDARD_IA', 'GLACIER'): 91,\n    ('STANDARD', 'GLACIER'): 1,\n    ('STANDARD', 'GLACIER_IR'): 90,\n    ('GLACIER', 'DEEP_ARCHIVE'): 180,\n    ('STANDARD', 'DEEP_ARCHIVE'): 180,\n}\n\ndef validate_lifecycle(config):\n    errors = []\n    for rule in config.get('Rules', []):\n        if rule.get('Status') != 'Enabled':\n            continue\n        prev_class = 'STANDARD'\n        for t in rule.get('Transitions', []):\n            key = (prev_class, t['StorageClass'])\n            min_required = MIN_DAYS.get(key, 0)\n            if t['Days'] \u003C min_required:\n                errors.append(f\"Rule '{rule['ID']}': {prev_class}->{t['StorageClass']} \"\n                              f\"configured {t['Days']} days, minimum is {min_required}.\")\n            prev_class = t['StorageClass']\n    return errors\n```\n\n### Step 10: EventBridge notifications on lifecycle changes\n\n```bash\naws events put-rule \\\n  --name s3-lifecycle-change \\\n  --event-pattern '{\n    \"source\": [\"aws.s3\"],\n    \"detail-type\": [\"AWS API Call via CloudTrail\"],\n    \"detail\": {\n      \"eventName\": [\"PutBucketLifecycleConfiguration\", \"DeleteBucketLifecycle\"],\n      \"eventSource\": [\"s3.amazonaws.com\"]\n    }\n  }'\n\naws events put-targets \\\n  --rule s3-lifecycle-change \\\n  --targets '[{\"Id\":\"lifecycle-monitor\",\"Arn\":\"arn:aws:lambda:us-east-1:111111111111:function:s3-lifecycle-monitor\"}]'\n```\n\n## Output format\n\n```text\nLIFECYCLE: \u003Creference>\nBUCKET: \u003Cbucket-name>\nPOLICY:\n  - Rule ID: \u003Crule-id>\n  - Status: Enabled\n  - Filter: \u003Cprefix, tag, or all>\nTRANSITIONS:\n  - Standard → Standard-IA: \u003Cdays> days (min 30)\n  - Standard-IA → Glacier IR: \u003Cdays> days (min 90)\nVERSIONING:\n  - NoncurrentVersionTransition: \u003Cdays> → \u003Cstorage class>\n  - NoncurrentVersionExpiration: \u003Cdays>\nVALIDATION:\n  - Min-days check: PASS | FAIL\n  - Overlap check: PASS | FAIL\nENFORCEMENT:\n  - Deployment: direct-CLI | StackSet | Lambda-tag-based\n  - Accounts: \u003Clist or \"single\">\n  - EventBridge: \u003Crule ARN or \"NOT WIRED\">\nVERDICT: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\nGAP: \u003Cif REVIEW_REQUIRED, the specific missing piece>\nTEMPLATE: \u003CCLI snippet for the lifecycle configuration>\n```\n\n### Worked example — AUTOMATION_DEPLOYED, log archival with versioning\n\n```text\nLIFECYCLE: log-archival-baseline\nBUCKET: app-access-logs\nPOLICY:\n  - Rule ID: log-archival-policy\n  - Status: Enabled\n  - Filter: Prefix \"logs\u002F\"\nTRANSITIONS:\n  - Standard → Standard-IA: 30 days (min 30) — PASS\n  - Standard-IA → Glacier IR: 90 days (min 90) — PASS\n  - Glacier IR → Deep Archive: 365 days (min 180) — PASS\nVERSIONING:\n  - NoncurrentVersionTransition: 30 days → STANDARD_IA\n  - NoncurrentVersionExpiration: 120 days\n  - AbortIncompleteMultipartUpload: 7 days\nVALIDATION:\n  - Min-days check: PASS\n  - Overlap check: PASS\nENFORCEMENT:\n  - Deployment: direct-CLI\n  - Accounts: single (111111111111)\nVERDICT: AUTOMATION_DEPLOYED\nGAP: None\nTEMPLATE:\n  aws s3api put-bucket-lifecycle-configuration --bucket app-access-logs --lifecycle-configuration '{\"Rules\":[{\"ID\":\"log-archival-policy\",\"Status\":\"Enabled\",\"Filter\":{\"Prefix\":\"logs\u002F\"},\"Transitions\":[{\"Days\":30,\"StorageClass\":\"STANDARD_IA\"},{\"Days\":90,\"StorageClass\":\"GLACIER_IR\"},{\"Days\":365,\"StorageClass\":\"DEEP_ARCHIVE\"}],\"NoncurrentVersionTransitions\":[{\"NoncurrentDays\":30,\"StorageClass\":\"STANDARD_IA\"}],\"NoncurrentVersionExpiration\":{\"NoncurrentDays\":120},\"AbortIncompleteMultipartUpload\":{\"DaysAfterInitiation\":7}}]}'\n```\n\n### Worked example — REVIEW_REQUIRED, invalid min-days\n\n→ Secondary example moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md); the AUTOMATION_DEPLOYED example above is primary.\n## Anti-Patterns — NEVER do these things\n\n- NEVER deploy lifecycle rules with transition days below the enforced\n  minimum without validation. The API accepts invalid rules silently.\n  Objects remain in the original storage class and costs never decrease.\n\n- NEVER call `put-bucket-lifecycle-configuration` without first calling\n  `get-bucket-lifecycle-configuration`. PUT is a full replacement. A\n  call with one new rule silently deletes all existing rules.\n\n- NEVER omit NoncurrentVersionExpiration on versioned buckets. Without\n  it, every deleted-object version accumulates in Standard indefinitely.\n  This is the single most common cause of \"S3 costs keep growing despite\n  lifecycle policies.\"\n\n- NEVER confuse Glacier Instant Retrieval (millisecond latency, 90-day\n  min) with Glacier Flexible Retrieval (minutes-hours latency, 1-day\n  min after IA). Choosing wrong produces excessive retrieval costs or\n  inaccessible data.\n\n- NEVER deploy lifecycle policies to production without testing on a\n  non-production bucket first. A misconfigured expiration rule deletes\n  objects permanently.\n\n- NEVER use overlapping lifecycle rules with conflicting transitions.\n  Design rules with non-overlapping filters.\n\n- NEVER omit `AbortIncompleteMultipartUpload` on buckets that receive\n  multipart uploads. Orphaned parts are billed at Standard and are NOT\n  visible in the standard object listing.\n\n- NEVER deploy StackSets without verifying the administration role has\n  `s3:PutBucketLifecycleConfiguration` in each target account.\n\n- NEVER assume Intelligent-Tiering is always cheaper. It charges a\n  monitoring fee ($0.0025 per 1,000 objects). For small objects with\n  predictable access, explicit transitions may be cheaper.\n\n- NEVER set `ExpiredObjectDeleteMarker: true` without understanding the\n  consequence. It removes the delete marker when it's the only version,\n  making the object name available for reuse.\n\n- NEVER forget to validate after deployment. `get-bucket-lifecycle-\n  configuration` shows the policy but does NOT confirm rules are\n  executing. Monitor Storage Lens `StorageClass` distribution over time.\n\n- NEVER use S3 Batch Operations without a test run on a small manifest\n  first. `S3SetStorageClass` changes are irreversible.\n\n- NEVER omit the Batch Operations report. Without `Report.Enabled: true`,\n  there is no audit trail of which objects were tiered.\n\n## Pre-flight safety checks (run before applying any lifecycle CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation,\n  emit: `CONFIRM: About to \u003Caction> for bucket \u003Cbucket>. Proceed? (yes\u002Fno)`\n\n- **Back up current configuration** before modifying:\n  `aws s3api get-bucket-lifecycle-configuration --bucket \u003Cbucket> >\n  \u002Ftmp\u002F\u003Cbucket>-lifecycle-backup-$(date +%s).json`\n\n- **Before deploying expiration rules**, verify the filter prefix targets\n  only intended objects. An empty prefix with `Expiration` deletes ALL.\n\n- **Before StackSets deployment**, validate the template:\n  `aws cloudformation validate-template --template-body file:\u002F\u002Flifecycle-stackset.yaml`\n\n- **For Batch Operations**, start with 10 objects. Verify storage class\n  changes before running the full manifest.\n\n## Appendix A — Storage class reference\n\n→ Storage class table moved to [references\u002Fstorage-class-transition-rules.md](references\u002Fstorage-class-transition-rules.md).\n## Appendix B — Decision tree\n\n```\nIs the access pattern predictable?\n├─ Yes → Retrieval latency requirement?\n│        ├─ Milliseconds → Standard → IA (30d) → Glacier IR (90d)\n│        └─ Minutes\u002Fhours → Standard → IA (30d) → Glacier (91d) → Deep Archive (180d)\n└─ No  → Enable Intelligent-Tiering (auto-tiering, no day configs)\n\nVersioning enabled?\n├─ Yes → Add NoncurrentVersionTransition + Expiration + AbortMultipart\n└─ No  → Current-version transitions + Expiration only\n\nMulti-account?\n├─ Yes → Deploy via CloudFormation StackSets\n└─ No  → Direct CLI per bucket\n\nExisting objects need immediate tiering?\n├─ Yes → S3 Batch Operations (S3SetStorageClass)\n└─ No  → Lifecycle rules handle going forward\n```\n\n## Recent AWS features (2024-2026)\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n## Expert heuristic: the silent lifecycle failure\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — the silent lifecycle failure.\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge, StackSets multi-account pattern, silent lifecycle failure, recent AWS features.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked example (REVIEW_REQUIRED, invalid min-days).\n- [references\u002Fstorage-class-transition-rules.md](references\u002Fstorage-class-transition-rules.md) — pre-existing; extended with Appendix A storage class reference.\n- [references\u002Fstorage-lens-and-batch-operations.md](references\u002Fstorage-lens-and-batch-operations.md) — pre-existing; extended with Steps 7-8 (Storage Lens gaps, Batch Operations tiering).\n\n## Domain\n\nAWS CloudOps \u002F Storage Automation — S3 Lifecycle and Intelligent-Tiering.\n\n## AWS documentation\n\n- **S3 Lifecycle Configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fobject-lifecycle-mgmt.html\n- **S3 Intelligent-Tiering** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage-class-intro.html#sc-glacier-tiering\n- **S3 Batch Operations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fbatch-ops.html\n- **S3 Storage Lens** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage_lens.html\n- **Lifecycle Transition Considerations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Flifecycle-transition-general-considerations.html\n","# S3 Lifecycle Automator\n\n## Mindset\n\n**One-line takeaway:** S3 lifecycle automation is a four-stage pipeline —\n**inventory** (identify buckets and object-age patterns) → **design**\n(lifecycle rules with correct transition days per tier) → **validate**\n(enforce min-days: 30 for IA, 90 for Glacier IR) → **deploy**\n(put-bucket-lifecycle-configuration or StackSets). A gap in ANY stage\nproduces silent cost leakage.\n\n- **Design** without **validation** is fragile: S3 silently rejects rules\n  that violate min-days constraints. A rule transitioning to IA at 15\n  days is accepted by the API but never executes.\n- **Lifecycle min-days per tier is enforced.** Standard to Standard-IA\n  requires 30 days. Standard-IA to Glacier Instant Retrieval requires\n  90 days total object age. These are hard constraints.\n- **Versioning lifecycle is SEPARATE from current-version rules.**\n  `NoncurrentVersionTransition` and `NoncurrentVersionExpiration` operate\n  on non-current versions only. A policy that only transitions current\n  versions leaves all deleted-object versions in Standard forever.\n\n## Quick navigation\n\n| You want to... | Go to |\n|---|---|\n| Design Standard→IA→Glacier→DeepArchive policy | Step 2 + Appendix A |\n| Validate min-days rules | Step 3 + Step 9 |\n| Add versioning lifecycle rules | Step 4 |\n| Enable Intelligent-Tiering | Step 5 |\n| Deploy via StackSets (multi-account) | Step 6 |\n| Find buckets without lifecycle via Storage Lens | Step 7 |\n| Retroactive tiering via Batch Operations | Step 8 |\n| Add EventBridge notifications on changes | Step 10 |\n| Avoid common pitfall patterns | Anti-Patterns |\n\n## Critical rules at a glance (do NOT bury these)\n\n1. **Lifecycle min-days per tier is a HARD constraint.** Minimum for\n   Standard-IA is 30 days. For Glacier Instant Retrieval, 90 days total\n   object age. For Deep Archive, 180 days total. A rule with `Days: 15`\n   for IA is silently accepted but NEVER executes.\n\n2. **Versioning lifecycle rules are SEPARATE from current-version\n   rules.** `NoncurrentVersionTransition` and\n   `NoncurrentVersionExpiration` operate exclusively on non-current\n   versions. Without them, non-current versions accumulate in Standard\n   indefinitely.\n\n3. **`put-bucket-lifecycle-configuration` REPLACES the entire policy.**\n   No append mode. Always `get-bucket-lifecycle-configuration` first,\n   merge, then PUT.\n\n4. **Intelligent-Tiering has no transition-day minimums.** Auto-moves\n   objects between access tiers based on access patterns. Key advantage\n   for buckets with unpredictable access.\n\n5. **Storage Lens identifies buckets without lifecycle policies at\n   scale.** The `LifecycleEnabled` metric shows which buckets lack\n   configuration. Use as the inventory input for multi-bucket deployment.\n\n## Pre-flight: data requirements\n\n| Input | Source | Why |\n|---|---|---|\n| Bucket name(s) | `aws s3api list-buckets` | Target for lifecycle |\n| Current lifecycle | `aws s3api get-bucket-lifecycle-configuration` | Don't overwrite blindly |\n| Versioning status | `aws s3api get-bucket-versioning` | Determines NoncurrentVersion rules |\n| Object age distribution | Storage Lens or S3 Inventory | Drives transition day selection |\n| Storage Lens report | `aws s3control get-storage-lens-configuration` | Identifies gaps |\n| Account list (multi-account) | `aws organizations list-accounts` | For StackSets |\n| StackSet status | `aws cloudformation list-stack-instances` | Verify rollout |\n\n**If the input is malformed**, emit:\n\n```text\nLIFECYCLE: \u003Creference>\nBUCKET: \u003Cbucket-name>\nVERDICT: ERROR\nREASON: Cannot design lifecycle policy — bucket name and transition schedule are required.\nGAP: Re-supply bucket name, versioning status, and desired transition days per storage class.\n```\n\n## Process — Lifecycle design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious S3 lifecycle behaviors\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — non-obvious lifecycle behaviors deep dive.\n### Step 1: Classify the lifecycle requirement\n\n| Requirement | Pattern | Transition schedule |\n|---|---|---|\n| Log archival | Standard→IA→Glacier→DeepArchive | 30d→90d→180d→365d |\n| Backup retention | Standard→IA→Glacier IR | 30d→90d |\n| Temporary uploads | Standard→Expire | 30d expire |\n| Versioned data | Current: Standard→IA; Noncurrent: IA→Expire | 30d current, 60d noncurrent |\n| Unknown access pattern | Intelligent-Tiering opt-in | Auto-tiering |\n| Compliance archive | Standard→DeepArchive | 180d |\n\nIf the access pattern is unknown, default to Intelligent-Tiering.\n\n### Step 2: Design the lifecycle policy\n\n```bash\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-logs-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [\n      {\n        \"ID\": \"log-archival-policy\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {\"Prefix\": \"logs\u002F\"},\n        \"Transitions\": [\n          {\"Days\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"Days\": 90, \"StorageClass\": \"GLACIER_IR\"},\n          {\"Days\": 180, \"StorageClass\": \"GLACIER\"},\n          {\"Days\": 365, \"StorageClass\": \"DEEP_ARCHIVE\"}\n        ]\n      }\n    ]\n  }'\n```\n\nTag-based lifecycle rule:\n\n```bash\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-data-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [{\n      \"ID\": \"archive-tagged-objects\",\n      \"Status\": \"Enabled\",\n      \"Filter\": {\"Tag\": {\"Key\": \"ArchiveClass\", \"Value\": \"glacier\"}},\n      \"Transitions\": [{\"Days\": 1, \"StorageClass\": \"GLACIER\"}]\n    }]\n  }'\n```\n\n### Step 3: Validate min-days rules\n\nBefore deploying, validate every transition against enforced minimums:\n\n| From | To | Min days (total object age) | Notes |\n|---|---|---|---|\n| STANDARD | STANDARD_IA | 30 | Hard minimum |\n| STANDARD_IA | GLACIER_IR | 90 | Must be >= 90 total |\n| STANDARD_IA | GLACIER | 91 (1 day after IA) | 30 (IA) + 61 |\n| STANDARD | GLACIER (direct) | 1 | Can skip IA |\n| Any | DEEP_ARCHIVE | 180 | Hard minimum |\n| STANDARD | ONEZONE_IA | 30 | Same as STANDARD_IA |\n| STANDARD | INTELLIGENT_TIERING | 0 | No minimum |\n\nIf ANY transition violates the minimum, emit:\n\n```text\nLIFECYCLE: \u003Creference>\nBUCKET: \u003Cbucket-name>\nRULE: \u003Crule-id>\nTRANSITION: STANDARD → STANDARD_IA\nCONFIGURED_DAYS: 15\nMINIMUM_DAYS: 30\nVERDICT: REVIEW_REQUIRED\nGAP: Transition to STANDARD_IA requires minimum 30 days. Configured 15 days will be silently accepted but NEVER execute.\n```\n\n### Step 4: Add versioning lifecycle rules\n\n```bash\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-versioned-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [\n      {\n        \"ID\": \"versioned-lifecycle-policy\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {},\n        \"Transitions\": [\n          {\"Days\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"Days\": 90, \"StorageClass\": \"GLACIER_IR\"}\n        ],\n        \"NoncurrentVersionTransitions\": [\n          {\"NoncurrentDays\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"NoncurrentDays\": 90, \"StorageClass\": \"GLACIER\"}\n        ],\n        \"NoncurrentVersionExpiration\": {\"NoncurrentDays\": 120},\n        \"AbortIncompleteMultipartUpload\": {\"DaysAfterInitiation\": 7},\n        \"ExpiredObjectDeleteMarker\": true\n      }\n    ]\n  }'\n```\n\n| Field | What it does |\n|---|---|\n| `NoncurrentVersionTransitions` | Transition non-current versions to cheaper storage |\n| `NoncurrentVersionExpiration` | Permanently delete non-current versions after N days |\n| `AbortIncompleteMultipartUpload` | Abort uploads incomplete within N days |\n| `ExpiredObjectDeleteMarker` | Remove delete marker when it's the only version |\n\n### Step 5: Enable Intelligent-Tiering\n\n```bash\n# Opt-in via lifecycle rule (Days: 0 = immediate transition to IT)\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-data-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [{\n      \"ID\": \"intelligent-tiering-all-objects\",\n      \"Status\": \"Enabled\",\n      \"Filter\": {},\n      \"Transitions\": [{\"Days\": 0, \"StorageClass\": \"INTELLIGENT_TIERING\"}]\n    }]\n  }'\n\n# Configure archive tiers (optional)\naws s3api put-bucket-intelligent-tiering-configuration \\\n  --bucket my-data-bucket \\\n  --id ArchiveConfig \\\n  --intelligent-tiering-configuration '{\n    \"Id\": \"ArchiveConfig\",\n    \"Status\": \"Enabled\",\n    \"Tierings\": [\n      {\"AccessTier\": \"ARCHIVE_ACCESS\", \"Days\": 90},\n      {\"AccessTier\": \"DEEP_ARCHIVE_ACCESS\", \"Days\": 180}\n    ]\n  }'\n```\n\n| IT tier | Auto-transition trigger | Retrieval |\n|---|---|---|\n| Frequent Access | Accessed within 30 days | Milliseconds |\n| Infrequent Access | Not accessed 31+ days | Milliseconds |\n| Archive Instant | Not accessed 90+ days | Milliseconds |\n| Archive | Configurable (default 90) | Minutes to hours |\n| Deep Archive | Configurable (default 180) | Up to 12 hours |\n\n### Step 6: Multi-account deployment via StackSets\n\n→ Advanced pattern moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — multi-account StackSets deployment.\n### Step 7: Identify lifecycle gaps via Storage Lens\n\n→ Moved to [references\u002Fstorage-lens-and-batch-operations.md](references\u002Fstorage-lens-and-batch-operations.md).\n### Step 8: Retroactive tiering via S3 Batch Operations\n\n→ Moved to [references\u002Fstorage-lens-and-batch-operations.md](references\u002Fstorage-lens-and-batch-operations.md).\n### Step 9: Pre-deployment validation function\n\n```python\nMIN_DAYS = {\n    ('STANDARD', 'STANDARD_IA'): 30,\n    ('STANDARD', 'ONEZONE_IA'): 30,\n    ('STANDARD_IA', 'GLACIER_IR'): 90,\n    ('STANDARD_IA', 'GLACIER'): 91,\n    ('STANDARD', 'GLACIER'): 1,\n    ('STANDARD', 'GLACIER_IR'): 90,\n    ('GLACIER', 'DEEP_ARCHIVE'): 180,\n    ('STANDARD', 'DEEP_ARCHIVE'): 180,\n}\n\ndef validate_lifecycle(config):\n    errors = []\n    for rule in config.get('Rules', []):\n        if rule.get('Status') != 'Enabled':\n            continue\n        prev_class = 'STANDARD'\n        for t in rule.get('Transitions', []):\n            key = (prev_class, t['StorageClass'])\n            min_required = MIN_DAYS.get(key, 0)\n            if t['Days'] \u003C min_required:\n                errors.append(f\"Rule '{rule['ID']}': {prev_class}->{t['StorageClass']} \"\n                              f\"configured {t['Days']} days, minimum is {min_required}.\")\n            prev_class = t['StorageClass']\n    return errors\n```\n\n### Step 10: EventBridge notifications on lifecycle changes\n\n```bash\naws events put-rule \\\n  --name s3-lifecycle-change \\\n  --event-pattern '{\n    \"source\": [\"aws.s3\"],\n    \"detail-type\": [\"AWS API Call via CloudTrail\"],\n    \"detail\": {\n      \"eventName\": [\"PutBucketLifecycleConfiguration\", \"DeleteBucketLifecycle\"],\n      \"eventSource\": [\"s3.amazonaws.com\"]\n    }\n  }'\n\naws events put-targets \\\n  --rule s3-lifecycle-change \\\n  --targets '[{\"Id\":\"lifecycle-monitor\",\"Arn\":\"arn:aws:lambda:us-east-1:111111111111:function:s3-lifecycle-monitor\"}]'\n```\n\n## Output format\n\n```text\nLIFECYCLE: \u003Creference>\nBUCKET: \u003Cbucket-name>\nPOLICY:\n  - Rule ID: \u003Crule-id>\n  - Status: Enabled\n  - Filter: \u003Cprefix, tag, or all>\nTRANSITIONS:\n  - Standard → Standard-IA: \u003Cdays> days (min 30)\n  - Standard-IA → Glacier IR: \u003Cdays> days (min 90)\nVERSIONING:\n  - NoncurrentVersionTransition: \u003Cdays> → \u003Cstorage class>\n  - NoncurrentVersionExpiration: \u003Cdays>\nVALIDATION:\n  - Min-days check: PASS | FAIL\n  - Overlap check: PASS | FAIL\nENFORCEMENT:\n  - Deployment: direct-CLI | StackSet | Lambda-tag-based\n  - Accounts: \u003Clist or \"single\">\n  - EventBridge: \u003Crule ARN or \"NOT WIRED\">\nVERDICT: AUTOMATION_DEPLOYED | REVIEW_REQUIRED\nGAP: \u003Cif REVIEW_REQUIRED, the specific missing piece>\nTEMPLATE: \u003CCLI snippet for the lifecycle configuration>\n```\n\n### Worked example — AUTOMATION_DEPLOYED, log archival with versioning\n\n```text\nLIFECYCLE: log-archival-baseline\nBUCKET: app-access-logs\nPOLICY:\n  - Rule ID: log-archival-policy\n  - Status: Enabled\n  - Filter: Prefix \"logs\u002F\"\nTRANSITIONS:\n  - Standard → Standard-IA: 30 days (min 30) — PASS\n  - Standard-IA → Glacier IR: 90 days (min 90) — PASS\n  - Glacier IR → Deep Archive: 365 days (min 180) — PASS\nVERSIONING:\n  - NoncurrentVersionTransition: 30 days → STANDARD_IA\n  - NoncurrentVersionExpiration: 120 days\n  - AbortIncompleteMultipartUpload: 7 days\nVALIDATION:\n  - Min-days check: PASS\n  - Overlap check: PASS\nENFORCEMENT:\n  - Deployment: direct-CLI\n  - Accounts: single (111111111111)\nVERDICT: AUTOMATION_DEPLOYED\nGAP: None\nTEMPLATE:\n  aws s3api put-bucket-lifecycle-configuration --bucket app-access-logs --lifecycle-configuration '{\"Rules\":[{\"ID\":\"log-archival-policy\",\"Status\":\"Enabled\",\"Filter\":{\"Prefix\":\"logs\u002F\"},\"Transitions\":[{\"Days\":30,\"StorageClass\":\"STANDARD_IA\"},{\"Days\":90,\"StorageClass\":\"GLACIER_IR\"},{\"Days\":365,\"StorageClass\":\"DEEP_ARCHIVE\"}],\"NoncurrentVersionTransitions\":[{\"NoncurrentDays\":30,\"StorageClass\":\"STANDARD_IA\"}],\"NoncurrentVersionExpiration\":{\"NoncurrentDays\":120},\"AbortIncompleteMultipartUpload\":{\"DaysAfterInitiation\":7}}]}'\n```\n\n### Worked example — REVIEW_REQUIRED, invalid min-days\n\n→ Secondary example moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md); the AUTOMATION_DEPLOYED example above is primary.\n## Anti-Patterns — NEVER do these things\n\n- NEVER deploy lifecycle rules with transition days below the enforced\n  minimum without validation. The API accepts invalid rules silently.\n  Objects remain in the original storage class and costs never decrease.\n\n- NEVER call `put-bucket-lifecycle-configuration` without first calling\n  `get-bucket-lifecycle-configuration`. PUT is a full replacement. A\n  call with one new rule silently deletes all existing rules.\n\n- NEVER omit NoncurrentVersionExpiration on versioned buckets. Without\n  it, every deleted-object version accumulates in Standard indefinitely.\n  This is the single most common cause of \"S3 costs keep growing despite\n  lifecycle policies.\"\n\n- NEVER confuse Glacier Instant Retrieval (millisecond latency, 90-day\n  min) with Glacier Flexible Retrieval (minutes-hours latency, 1-day\n  min after IA). Choosing wrong produces excessive retrieval costs or\n  inaccessible data.\n\n- NEVER deploy lifecycle policies to production without testing on a\n  non-production bucket first. A misconfigured expiration rule deletes\n  objects permanently.\n\n- NEVER use overlapping lifecycle rules with conflicting transitions.\n  Design rules with non-overlapping filters.\n\n- NEVER omit `AbortIncompleteMultipartUpload` on buckets that receive\n  multipart uploads. Orphaned parts are billed at Standard and are NOT\n  visible in the standard object listing.\n\n- NEVER deploy StackSets without verifying the administration role has\n  `s3:PutBucketLifecycleConfiguration` in each target account.\n\n- NEVER assume Intelligent-Tiering is always cheaper. It charges a\n  monitoring fee ($0.0025 per 1,000 objects). For small objects with\n  predictable access, explicit transitions may be cheaper.\n\n- NEVER set `ExpiredObjectDeleteMarker: true` without understanding the\n  consequence. It removes the delete marker when it's the only version,\n  making the object name available for reuse.\n\n- NEVER forget to validate after deployment. `get-bucket-lifecycle-\n  configuration` shows the policy but does NOT confirm rules are\n  executing. Monitor Storage Lens `StorageClass` distribution over time.\n\n- NEVER use S3 Batch Operations without a test run on a small manifest\n  first. `S3SetStorageClass` changes are irreversible.\n\n- NEVER omit the Batch Operations report. Without `Report.Enabled: true`,\n  there is no audit trail of which objects were tiered.\n\n## Pre-flight safety checks (run before applying any lifecycle CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation,\n  emit: `CONFIRM: About to \u003Caction> for bucket \u003Cbucket>. Proceed? (yes\u002Fno)`\n\n- **Back up current configuration** before modifying:\n  `aws s3api get-bucket-lifecycle-configuration --bucket \u003Cbucket> >\n  \u002Ftmp\u002F\u003Cbucket>-lifecycle-backup-$(date +%s).json`\n\n- **Before deploying expiration rules**, verify the filter prefix targets\n  only intended objects. An empty prefix with `Expiration` deletes ALL.\n\n- **Before StackSets deployment**, validate the template:\n  `aws cloudformation validate-template --template-body file:\u002F\u002Flifecycle-stackset.yaml`\n\n- **For Batch Operations**, start with 10 objects. Verify storage class\n  changes before running the full manifest.\n\n## Appendix A — Storage class reference\n\n→ Storage class table moved to [references\u002Fstorage-class-transition-rules.md](references\u002Fstorage-class-transition-rules.md).\n## Appendix B — Decision tree\n\n```\nIs the access pattern predictable?\n├─ Yes → Retrieval latency requirement?\n│        ├─ Milliseconds → Standard → IA (30d) → Glacier IR (90d)\n│        └─ Minutes\u002Fhours → Standard → IA (30d) → Glacier (91d) → Deep Archive (180d)\n└─ No  → Enable Intelligent-Tiering (auto-tiering, no day configs)\n\nVersioning enabled?\n├─ Yes → Add NoncurrentVersionTransition + Expiration + AbortMultipart\n└─ No  → Current-version transitions + Expiration only\n\nMulti-account?\n├─ Yes → Deploy via CloudFormation StackSets\n└─ No  → Direct CLI per bucket\n\nExisting objects need immediate tiering?\n├─ Yes → S3 Batch Operations (S3SetStorageClass)\n└─ No  → Lifecycle rules handle going forward\n```\n\n## Recent AWS features (2024-2026)\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n## Expert heuristic: the silent lifecycle failure\n\n→ Moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — the silent lifecycle failure.\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge, StackSets multi-account pattern, silent lifecycle failure, recent AWS features.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked example (REVIEW_REQUIRED, invalid min-days).\n- [references\u002Fstorage-class-transition-rules.md](references\u002Fstorage-class-transition-rules.md) — pre-existing; extended with Appendix A storage class reference.\n- [references\u002Fstorage-lens-and-batch-operations.md](references\u002Fstorage-lens-and-batch-operations.md) — pre-existing; extended with Steps 7-8 (Storage Lens gaps, Batch Operations tiering).\n\n## Domain\n\nAWS CloudOps \u002F Storage Automation — S3 Lifecycle and Intelligent-Tiering.\n\n## AWS documentation\n\n- **S3 Lifecycle Configuration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fobject-lifecycle-mgmt.html\n- **S3 Intelligent-Tiering** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage-class-intro.html#sc-glacier-tiering\n- **S3 Batch Operations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fbatch-ops.html\n- **S3 Storage Lens** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fstorage_lens.html\n- **Lifecycle Transition Considerations** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Flifecycle-transition-general-considerations.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"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,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"aws-s3, s3-lifecycle, storage-tiering, intelligent-tiering, storage-lens, batch-operations, automate","4","Jacky Chan — AWS Community Builder","aws-cloudops","Storage","0.1.0","S3 lifecycle, lifecycle policy, storage class transition, Standard to IA, Glacier, Deep Archive, Intelligent-Tiering, NoncurrentVersionTransition, NoncurrentVersionExpiration, S3 Batch Operations, Storage Lens, CloudFormation StackSets, lifecycle validation, min-days rules, multi-account lifecycle, tag-based lifecycle","automate","high","false","capability","Building S3 lifecycle automation, deploying tiering policies (Standard to IA to Glacier to Deep Archive), setting up versioning lifecycle rules (NoncurrentVersionTransition, NoncurrentVersionExpiration), enabling Intelligent-Tiering at scale, remediating Storage Lens gaps, running S3 Batch Operations for retroactive tiering, validating lifecycle min-days rules, or deploying multi-account lifecycle via StackSets.","true","AUTOMATION_DEPLOYED | REVIEW_REQUIRED","active","Input: either (a) an S3 lifecycle requirement (\"transition objects to IA after 30 days, Glacier after 90 days\", \"expire non-current versions after 60 days\"), OR (b) a Storage Lens report identifying buckets without lifecycle policies. Output: deterministic LIFECYCLE block per bucket — POLICY\u002FTRANSITIONS\u002FVERSIONING\u002FVALIDATION\u002FENFORCEMENT\u002F VERDICT — where VERDICT is AUTOMATION_DEPLOYED (policy validated and ready) or REVIEW_REQUIRED (specific gap cited).","automate S3 lifecycle policy, deploy lifecycle StackSets, put-bucket-lifecycle-configuration, Standard to IA to Glacier transition, NoncurrentVersionTransition, Intelligent-Tiering opt-in, S3 Batch Operations tiering, Storage Lens lifecycle gap, lifecycle min-days validation, multi-account lifecycle enforcement","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline workflow design. Live deployment uses aws s3api put-bucket-lifecycle-configuration, get-bucket-lifecycle- configuration, put-bucket-intelligent-tiering-configuration, aws s3control create-job, get-storage-lens-configuration, and aws cloudformation create-stack-set, create-stack-instances — AWS CLI v2, SSO or key-based credentials.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fs3-lifecycle-automator",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill s3-lifecycle-automator",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill s3-lifecycle-automator",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill s3-lifecycle-automator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",6194,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fintelligent-tiering-optin.md",688,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fbaselines\u002Fintelligent-tiering-optin.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fmin-days-validation-fail.md",715,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fbaselines\u002Fmin-days-validation-fail.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fstandard-tier-transition.md",879,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fbaselines\u002Fstandard-tier-transition.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fstorage-lens-gap.md",772,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fbaselines\u002Fstorage-lens-gap.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fversioning-lifecycle.md",817,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fbaselines\u002Fversioning-lifecycle.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1708,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4238,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fintelligent-tiering-optin.md",674,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fprompts\u002Fintelligent-tiering-optin.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fmin-days-validation-fail.md",568,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fprompts\u002Fmin-days-validation-fail.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fstandard-tier-transition.md",661,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fprompts\u002Fstandard-tier-transition.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fstorage-lens-gap.md",741,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fprompts\u002Fstorage-lens-gap.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fversioning-lifecycle.md",650,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fevals\u002Fprompts\u002Fversioning-lifecycle.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002Fend-to-end.md",6891,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fexamples\u002Fend-to-end.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",6994,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fstorage-class-transition-rules.md",6673,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Freferences\u002Fstorage-class-transition-rules.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fstorage-lens-and-batch-operations.md",8446,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Freferences\u002Fstorage-lens-and-batch-operations.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fworked-examples.md",1030,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Freferences\u002Fworked-examples.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"skill.usf.yaml",4602,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fs3-lifecycle-automator\u002Fskill.usf.yaml",[144,151,158,165,172,179],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"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":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},"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":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},"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":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},"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":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},"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":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},"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",[],[]]