---
name: "aws-s3-lifecycle-intelligent-tiering"
description: "Automate cost optimization across petabyte S3 buckets using Intelligent-Tiering and lifecycle rules."
metadata:
  author: "AWS"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "configure s3 lifecycle rule"
  - "enable s3 intelligent tiering"
  - "abort incomplete multipart uploads s3"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# AWS S3 Intelligent-Tiering & Storage Lifecycle Policies

Configures AWS S3: Intelligent-Tiering archive access tiers, lifecycle transitions (Standard -> Glacier Flexible -> Deep Archive), noncurrent version expiration, and aborting incomplete multipart uploads.

## When to Invoke
Invoke this skill whenever you need to:
- configure s3 lifecycle rule
- enable s3 intelligent tiering
- abort incomplete multipart uploads s3

## Execution SOP & Rules
1. Define lifecycle JSON with Filter (Prefix/Tags) and Status: Enabled.
2. Add rule: AbortIncompleteMultipartUpload: { DaysAfterInitiation: 7 }.
3. Add Transitions: [{ Days: 30, StorageClass: 'INTELLIGENT_TIERING' }, { Days: 180, StorageClass: 'DEEP_ARCHIVE' }].
4. Apply policy: aws s3api put-bucket-lifecycle-configuration --bucket <bucket> --lifecycle-configuration file://rules.json.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
