[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6NW3Z5V89JF4J736CX37PGQ":3,"skill-same:01M6NW3Z5V89JF4J736CX37PGQ":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":28,"commitSha":57,"skillDirectory":58,"forksCount":13,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":61,"install":62,"resources":75},"01M6NW3Z5V89JF4J736CX37PGQ","aws-cost-optimization",null,"Reduce AWS spend with rightsizing, autoscaling, commitment planning, and storage lifecycle policies. Use when running FinOps reviews, lowering cloud bills, or improving cost-per-request metrics.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Faws-cost-optimization\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"cost optimization","Optimization","aws","cost","aws cost optimization","main","request","reduce","autoscaling","reviews","relevant","scripts","critical","os","security","community","only","access","devops-security","storage","2026-11-10 10:12:30",false,"---\nname: aws-cost-optimization\ndescription: Reduce AWS spend with rightsizing, autoscaling, commitment planning,\n  and storage lifecycle policies. Use when running FinOps reviews, lowering cloud\n  bills, or improving cost-per-request metrics.\ncategory: devops\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant OS\u002Fplatform tooling and privileged access where\n  noted. Docs-only; helper scripts and templates not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# AWS Cost Optimization\n\nApply practical FinOps controls to reduce AWS spend without sacrificing reliability or performance.\n\n## When to Use This Skill\n\n- Monthly AWS bill spikes unexpectedly or exceeds budget thresholds\n- Preparing cost reviews with engineering and finance teams\n- Rightsizing EC2, RDS, EKS, or Lambda workloads after load testing\n- Choosing between Savings Plans, Reserved Instances, or on-demand pricing\n- Setting up automated budget alerts and anomaly detection\n- Cleaning up unused resources (unattached EBS, idle load balancers, old snapshots)\n- Optimizing data transfer costs across regions and AZs\n\n## Prerequisites\n\n- AWS CLI v2 installed and configured (`aws configure`)\n- IAM permissions: `ce:*`, `budgets:*`, `ec2:Describe*`, `cloudwatch:PutMetricAlarm`, `s3:PutLifecycleConfiguration`\n- Cost Explorer enabled in the AWS billing console (takes 24 hours to populate)\n- Cost allocation tags activated in the Billing console\n\n## Cost Review Workflow\n\n1. Tag every resource by team, service, environment, and cost center.\n2. Enable Cost Explorer and activate Cost and Usage Reports (CUR) to S3.\n3. Identify top spend drivers by service, account, and tag.\n4. Rightsize underutilized compute and storage based on CloudWatch metrics.\n5. Apply commitment discounts (Savings Plans or RIs) for stable baseline usage.\n6. Set budgets, anomaly alerts, and build KPI dashboards.\n7. Review monthly and iterate.\n\n## Cost Explorer CLI Commands\n\n```bash\n# Get cost and usage for the last 30 days grouped by service\naws ce get-cost-and-usage \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY \\\n  --metrics \"BlendedCost\" \"UnblendedCost\" \"UsageQuantity\" \\\n  --group-by Type=DIMENSION,Key=SERVICE\n\n# Get cost forecast for the next 30 days\naws ce get-cost-forecast \\\n  --time-period Start=2026-03-24,End=2026-04-24 \\\n  --metric UNBLENDED_COST \\\n  --granularity MONTHLY\n\n# Get cost grouped by a specific tag (e.g., team)\naws ce get-cost-and-usage \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY \\\n  --metrics \"UnblendedCost\" \\\n  --group-by Type=TAG,Key=team\n\n# Get rightsizing recommendations for EC2\naws ce get-rightsizing-recommendation \\\n  --service \"AmazonEC2\" \\\n  --configuration '{\"RecommendationTarget\":\"SAME_INSTANCE_FAMILY\",\"BenefitsConsidered\":true}'\n\n# Get Savings Plans purchase recommendation\naws ce get-savings-plans-purchase-recommendation \\\n  --savings-plans-type COMPUTE_SP \\\n  --term-in-years ONE_YEAR \\\n  --payment-option NO_UPFRONT \\\n  --lookback-period-in-days SIXTY_DAYS\n\n# Get Savings Plans utilization\naws ce get-savings-plans-utilization \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY\n\n# Get Reserved Instance utilization\naws ce get-reservation-utilization \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY\n```\n\n## Budget Alerts\n\n```bash\n# Create a monthly cost budget with email alert at 80% and 100%\naws budgets create-budget \\\n  --account-id 123456789012 \\\n  --budget '{\n    \"BudgetName\": \"monthly-total\",\n    \"BudgetLimit\": {\"Amount\": \"5000\", \"Unit\": \"USD\"},\n    \"TimeUnit\": \"MONTHLY\",\n    \"BudgetType\": \"COST\",\n    \"CostFilters\": {},\n    \"CostTypes\": {\n      \"IncludeTax\": true,\n      \"IncludeSubscription\": true,\n      \"UseBlended\": false\n    }\n  }' \\\n  --notifications-with-subscribers '[\n    {\n      \"Notification\": {\n        \"NotificationType\": \"ACTUAL\",\n        \"ComparisonOperator\": \"GREATER_THAN\",\n        \"Threshold\": 80,\n        \"ThresholdType\": \"PERCENTAGE\"\n      },\n      \"Subscribers\": [{\"SubscriptionType\": \"EMAIL\", \"Address\": \"finops@example.com\"}]\n    },\n    {\n      \"Notification\": {\n        \"NotificationType\": \"ACTUAL\",\n        \"ComparisonOperator\": \"GREATER_THAN\",\n        \"Threshold\": 100,\n        \"ThresholdType\": \"PERCENTAGE\"\n      },\n      \"Subscribers\": [{\"SubscriptionType\": \"EMAIL\", \"Address\": \"finops@example.com\"}]\n    }\n  ]'\n\n# List all budgets\naws budgets describe-budgets --account-id 123456789012\n\n# Enable Cost Anomaly Detection monitor for all services\naws ce create-anomaly-monitor \\\n  --anomaly-monitor '{\n    \"MonitorName\": \"all-services\",\n    \"MonitorType\": \"DIMENSIONAL\",\n    \"MonitorDimension\": \"SERVICE\"\n  }'\n\n# Create anomaly subscription (alert when impact > $50)\naws ce create-anomaly-subscription \\\n  --anomaly-subscription '{\n    \"SubscriptionName\": \"cost-alerts\",\n    \"MonitorArnList\": [\"arn:aws:ce::123456789012:anomalymonitor\u002Fmonitor-id\"],\n    \"Subscribers\": [{\"Type\": \"EMAIL\", \"Address\": \"finops@example.com\"}],\n    \"Threshold\": 50,\n    \"Frequency\": \"DAILY\"\n  }'\n```\n\n## CloudWatch Cost Alarm\n\n```bash\n# Create alarm for estimated charges exceeding $4000\naws cloudwatch put-metric-alarm \\\n  --alarm-name \"billing-alarm-4000\" \\\n  --alarm-description \"Alert when estimated charges exceed $4000\" \\\n  --metric-name EstimatedCharges \\\n  --namespace AWS\u002FBilling \\\n  --statistic Maximum \\\n  --period 21600 \\\n  --threshold 4000 \\\n  --comparison-operator GreaterThanThreshold \\\n  --evaluation-periods 1 \\\n  --dimensions Name=Currency,Value=USD \\\n  --alarm-actions \"arn:aws:sns:us-east-1:123456789012:billing-alerts\" \\\n  --treat-missing-data notBreaching\n```\n\n## Find and Clean Unused Resources\n\n```bash\n# List unattached EBS volumes (wasted storage spend)\naws ec2 describe-volumes \\\n  --filters Name=status,Values=available \\\n  --query \"Volumes[].{ID:VolumeId,Size:Size,Created:CreateTime}\" \\\n  --output table\n\n# Find old EBS snapshots (older than 90 days)\naws ec2 describe-snapshots \\\n  --owner-ids self \\\n  --query \"Snapshots[?StartTime\u003C='2025-12-24'].{ID:SnapshotId,Size:VolumeSize,Date:StartTime}\" \\\n  --output table\n\n# List unused Elastic IPs (charged when not associated)\naws ec2 describe-addresses \\\n  --query \"Addresses[?AssociationId==null].{IP:PublicIp,AllocId:AllocationId}\" \\\n  --output table\n\n# Find idle load balancers (zero healthy targets)\naws elbv2 describe-target-health \\\n  --target-group-arn arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup\u002Fmy-tg\u002Fabc123\n\n# List RDS instances and their utilization\naws cloudwatch get-metric-statistics \\\n  --namespace AWS\u002FRDS \\\n  --metric-name CPUUtilization \\\n  --dimensions Name=DBInstanceIdentifier,Value=mydb \\\n  --start-time 2026-03-17T00:00:00Z \\\n  --end-time 2026-03-24T00:00:00Z \\\n  --period 86400 \\\n  --statistics Average\n```\n\n## S3 Lifecycle Cost Optimization\n\n```bash\n# Apply tiered lifecycle policy to reduce storage costs\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-data-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [\n      {\n        \"ID\": \"TierDownOldData\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {\"Prefix\": \"\"},\n        \"Transitions\": [\n          {\"Days\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"Days\": 90, \"StorageClass\": \"GLACIER\"},\n          {\"Days\": 365, \"StorageClass\": \"DEEP_ARCHIVE\"}\n        ],\n        \"NoncurrentVersionTransitions\": [\n          {\"NoncurrentDays\": 30, \"StorageClass\": \"GLACIER\"}\n        ],\n        \"NoncurrentVersionExpiration\": {\"NoncurrentDays\": 90}\n      },\n      {\n        \"ID\": \"CleanupIncompleteUploads\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {\"Prefix\": \"\"},\n        \"AbortIncompleteMultipartUpload\": {\"DaysAfterInitiation\": 7}\n      }\n    ]\n  }'\n```\n\n## Terraform Budget and Alarm Example\n\n```hcl\nresource \"aws_budgets_budget\" \"monthly\" {\n  name         = \"monthly-total\"\n  budget_type  = \"COST\"\n  limit_amount = \"5000\"\n  limit_unit   = \"USD\"\n  time_unit    = \"MONTHLY\"\n\n  notification {\n    comparison_operator        = \"GREATER_THAN\"\n    threshold                  = 80\n    threshold_type             = \"PERCENTAGE\"\n    notification_type          = \"ACTUAL\"\n    subscriber_email_addresses = [\"finops@example.com\"]\n  }\n\n  notification {\n    comparison_operator        = \"GREATER_THAN\"\n    threshold                  = 100\n    threshold_type             = \"PERCENTAGE\"\n    notification_type          = \"ACTUAL\"\n    subscriber_email_addresses = [\"finops@example.com\"]\n  }\n}\n\nresource \"aws_cloudwatch_metric_alarm\" \"billing\" {\n  alarm_name          = \"billing-alarm-4000\"\n  comparison_operator = \"GreaterThanThreshold\"\n  evaluation_periods  = 1\n  metric_name         = \"EstimatedCharges\"\n  namespace           = \"AWS\u002FBilling\"\n  period              = 21600\n  statistic           = \"Maximum\"\n  threshold           = 4000\n  alarm_description   = \"Billing exceeds $4000\"\n  alarm_actions       = [aws_sns_topic.billing_alerts.arn]\n\n  dimensions = {\n    Currency = \"USD\"\n  }\n}\n```\n\n## Scheduling Non-Production Shutdowns\n\n```bash\n# Stop all dev instances tagged Environment=dev (run via EventBridge + Lambda)\naws ec2 describe-instances \\\n  --filters \"Name=tag:Environment,Values=dev\" \"Name=instance-state-name,Values=running\" \\\n  --query \"Reservations[].Instances[].InstanceId\" \\\n  --output text | xargs -n1 aws ec2 stop-instances --instance-ids\n\n# Scale down dev ECS services to zero at night\naws ecs update-service \\\n  --cluster dev-cluster \\\n  --service dev-api \\\n  --desired-count 0\n```\n\n## Troubleshooting\n\n| Problem | Cause | Fix |\n|---|---|---|\n| Cost Explorer returns empty data | CE not enabled or \u003C 24h old | Enable in Billing console, wait 24h |\n| Budget alert not firing | SNS subscription not confirmed | Check email and confirm subscription |\n| Rightsizing shows no recommendations | Not enough usage data | Wait 14 days for sufficient metrics |\n| Savings Plans utilization low | Over-purchased or workload changed | Review and adjust SP coverage |\n| Unattached EBS not showing | Wrong region queried | Loop through all active regions |\n| Billing alarm never triggers | Billing metrics only in us-east-1 | Create alarm in us-east-1 region |\n| CUR data missing in S3 | Report not configured or bucket policy wrong | Verify CUR setup in Billing console |\n| Tag-based cost allocation empty | Tags not activated | Activate cost allocation tags in Billing |\n\n## Related Skills\n\n- aws-ec2 (`aws-ec2`) - EC2 operations, sizing, and Spot instances\n- aws-s3 (`aws-s3`) - S3 storage classes and lifecycle controls\n- aws-rds (`aws-rds`) - RDS instance sizing and reserved instances\n- aws-lambda (`aws-lambda`) - Lambda pricing and concurrency tuning\n- terraform-aws (`terraform-aws`) - Codifying cost guardrails in IaC\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n","# AWS Cost Optimization\n\nApply practical FinOps controls to reduce AWS spend without sacrificing reliability or performance.\n\n## When to Use This Skill\n\n- Monthly AWS bill spikes unexpectedly or exceeds budget thresholds\n- Preparing cost reviews with engineering and finance teams\n- Rightsizing EC2, RDS, EKS, or Lambda workloads after load testing\n- Choosing between Savings Plans, Reserved Instances, or on-demand pricing\n- Setting up automated budget alerts and anomaly detection\n- Cleaning up unused resources (unattached EBS, idle load balancers, old snapshots)\n- Optimizing data transfer costs across regions and AZs\n\n## Prerequisites\n\n- AWS CLI v2 installed and configured (`aws configure`)\n- IAM permissions: `ce:*`, `budgets:*`, `ec2:Describe*`, `cloudwatch:PutMetricAlarm`, `s3:PutLifecycleConfiguration`\n- Cost Explorer enabled in the AWS billing console (takes 24 hours to populate)\n- Cost allocation tags activated in the Billing console\n\n## Cost Review Workflow\n\n1. Tag every resource by team, service, environment, and cost center.\n2. Enable Cost Explorer and activate Cost and Usage Reports (CUR) to S3.\n3. Identify top spend drivers by service, account, and tag.\n4. Rightsize underutilized compute and storage based on CloudWatch metrics.\n5. Apply commitment discounts (Savings Plans or RIs) for stable baseline usage.\n6. Set budgets, anomaly alerts, and build KPI dashboards.\n7. Review monthly and iterate.\n\n## Cost Explorer CLI Commands\n\n```bash\n# Get cost and usage for the last 30 days grouped by service\naws ce get-cost-and-usage \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY \\\n  --metrics \"BlendedCost\" \"UnblendedCost\" \"UsageQuantity\" \\\n  --group-by Type=DIMENSION,Key=SERVICE\n\n# Get cost forecast for the next 30 days\naws ce get-cost-forecast \\\n  --time-period Start=2026-03-24,End=2026-04-24 \\\n  --metric UNBLENDED_COST \\\n  --granularity MONTHLY\n\n# Get cost grouped by a specific tag (e.g., team)\naws ce get-cost-and-usage \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY \\\n  --metrics \"UnblendedCost\" \\\n  --group-by Type=TAG,Key=team\n\n# Get rightsizing recommendations for EC2\naws ce get-rightsizing-recommendation \\\n  --service \"AmazonEC2\" \\\n  --configuration '{\"RecommendationTarget\":\"SAME_INSTANCE_FAMILY\",\"BenefitsConsidered\":true}'\n\n# Get Savings Plans purchase recommendation\naws ce get-savings-plans-purchase-recommendation \\\n  --savings-plans-type COMPUTE_SP \\\n  --term-in-years ONE_YEAR \\\n  --payment-option NO_UPFRONT \\\n  --lookback-period-in-days SIXTY_DAYS\n\n# Get Savings Plans utilization\naws ce get-savings-plans-utilization \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY\n\n# Get Reserved Instance utilization\naws ce get-reservation-utilization \\\n  --time-period Start=2026-02-01,End=2026-03-01 \\\n  --granularity MONTHLY\n```\n\n## Budget Alerts\n\n```bash\n# Create a monthly cost budget with email alert at 80% and 100%\naws budgets create-budget \\\n  --account-id 123456789012 \\\n  --budget '{\n    \"BudgetName\": \"monthly-total\",\n    \"BudgetLimit\": {\"Amount\": \"5000\", \"Unit\": \"USD\"},\n    \"TimeUnit\": \"MONTHLY\",\n    \"BudgetType\": \"COST\",\n    \"CostFilters\": {},\n    \"CostTypes\": {\n      \"IncludeTax\": true,\n      \"IncludeSubscription\": true,\n      \"UseBlended\": false\n    }\n  }' \\\n  --notifications-with-subscribers '[\n    {\n      \"Notification\": {\n        \"NotificationType\": \"ACTUAL\",\n        \"ComparisonOperator\": \"GREATER_THAN\",\n        \"Threshold\": 80,\n        \"ThresholdType\": \"PERCENTAGE\"\n      },\n      \"Subscribers\": [{\"SubscriptionType\": \"EMAIL\", \"Address\": \"finops@example.com\"}]\n    },\n    {\n      \"Notification\": {\n        \"NotificationType\": \"ACTUAL\",\n        \"ComparisonOperator\": \"GREATER_THAN\",\n        \"Threshold\": 100,\n        \"ThresholdType\": \"PERCENTAGE\"\n      },\n      \"Subscribers\": [{\"SubscriptionType\": \"EMAIL\", \"Address\": \"finops@example.com\"}]\n    }\n  ]'\n\n# List all budgets\naws budgets describe-budgets --account-id 123456789012\n\n# Enable Cost Anomaly Detection monitor for all services\naws ce create-anomaly-monitor \\\n  --anomaly-monitor '{\n    \"MonitorName\": \"all-services\",\n    \"MonitorType\": \"DIMENSIONAL\",\n    \"MonitorDimension\": \"SERVICE\"\n  }'\n\n# Create anomaly subscription (alert when impact > $50)\naws ce create-anomaly-subscription \\\n  --anomaly-subscription '{\n    \"SubscriptionName\": \"cost-alerts\",\n    \"MonitorArnList\": [\"arn:aws:ce::123456789012:anomalymonitor\u002Fmonitor-id\"],\n    \"Subscribers\": [{\"Type\": \"EMAIL\", \"Address\": \"finops@example.com\"}],\n    \"Threshold\": 50,\n    \"Frequency\": \"DAILY\"\n  }'\n```\n\n## CloudWatch Cost Alarm\n\n```bash\n# Create alarm for estimated charges exceeding $4000\naws cloudwatch put-metric-alarm \\\n  --alarm-name \"billing-alarm-4000\" \\\n  --alarm-description \"Alert when estimated charges exceed $4000\" \\\n  --metric-name EstimatedCharges \\\n  --namespace AWS\u002FBilling \\\n  --statistic Maximum \\\n  --period 21600 \\\n  --threshold 4000 \\\n  --comparison-operator GreaterThanThreshold \\\n  --evaluation-periods 1 \\\n  --dimensions Name=Currency,Value=USD \\\n  --alarm-actions \"arn:aws:sns:us-east-1:123456789012:billing-alerts\" \\\n  --treat-missing-data notBreaching\n```\n\n## Find and Clean Unused Resources\n\n```bash\n# List unattached EBS volumes (wasted storage spend)\naws ec2 describe-volumes \\\n  --filters Name=status,Values=available \\\n  --query \"Volumes[].{ID:VolumeId,Size:Size,Created:CreateTime}\" \\\n  --output table\n\n# Find old EBS snapshots (older than 90 days)\naws ec2 describe-snapshots \\\n  --owner-ids self \\\n  --query \"Snapshots[?StartTime\u003C='2025-12-24'].{ID:SnapshotId,Size:VolumeSize,Date:StartTime}\" \\\n  --output table\n\n# List unused Elastic IPs (charged when not associated)\naws ec2 describe-addresses \\\n  --query \"Addresses[?AssociationId==null].{IP:PublicIp,AllocId:AllocationId}\" \\\n  --output table\n\n# Find idle load balancers (zero healthy targets)\naws elbv2 describe-target-health \\\n  --target-group-arn arn:aws:elasticloadbalancing:us-east-1:123456789012:targetgroup\u002Fmy-tg\u002Fabc123\n\n# List RDS instances and their utilization\naws cloudwatch get-metric-statistics \\\n  --namespace AWS\u002FRDS \\\n  --metric-name CPUUtilization \\\n  --dimensions Name=DBInstanceIdentifier,Value=mydb \\\n  --start-time 2026-03-17T00:00:00Z \\\n  --end-time 2026-03-24T00:00:00Z \\\n  --period 86400 \\\n  --statistics Average\n```\n\n## S3 Lifecycle Cost Optimization\n\n```bash\n# Apply tiered lifecycle policy to reduce storage costs\naws s3api put-bucket-lifecycle-configuration \\\n  --bucket my-data-bucket \\\n  --lifecycle-configuration '{\n    \"Rules\": [\n      {\n        \"ID\": \"TierDownOldData\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {\"Prefix\": \"\"},\n        \"Transitions\": [\n          {\"Days\": 30, \"StorageClass\": \"STANDARD_IA\"},\n          {\"Days\": 90, \"StorageClass\": \"GLACIER\"},\n          {\"Days\": 365, \"StorageClass\": \"DEEP_ARCHIVE\"}\n        ],\n        \"NoncurrentVersionTransitions\": [\n          {\"NoncurrentDays\": 30, \"StorageClass\": \"GLACIER\"}\n        ],\n        \"NoncurrentVersionExpiration\": {\"NoncurrentDays\": 90}\n      },\n      {\n        \"ID\": \"CleanupIncompleteUploads\",\n        \"Status\": \"Enabled\",\n        \"Filter\": {\"Prefix\": \"\"},\n        \"AbortIncompleteMultipartUpload\": {\"DaysAfterInitiation\": 7}\n      }\n    ]\n  }'\n```\n\n## Terraform Budget and Alarm Example\n\n```hcl\nresource \"aws_budgets_budget\" \"monthly\" {\n  name         = \"monthly-total\"\n  budget_type  = \"COST\"\n  limit_amount = \"5000\"\n  limit_unit   = \"USD\"\n  time_unit    = \"MONTHLY\"\n\n  notification {\n    comparison_operator        = \"GREATER_THAN\"\n    threshold                  = 80\n    threshold_type             = \"PERCENTAGE\"\n    notification_type          = \"ACTUAL\"\n    subscriber_email_addresses = [\"finops@example.com\"]\n  }\n\n  notification {\n    comparison_operator        = \"GREATER_THAN\"\n    threshold                  = 100\n    threshold_type             = \"PERCENTAGE\"\n    notification_type          = \"ACTUAL\"\n    subscriber_email_addresses = [\"finops@example.com\"]\n  }\n}\n\nresource \"aws_cloudwatch_metric_alarm\" \"billing\" {\n  alarm_name          = \"billing-alarm-4000\"\n  comparison_operator = \"GreaterThanThreshold\"\n  evaluation_periods  = 1\n  metric_name         = \"EstimatedCharges\"\n  namespace           = \"AWS\u002FBilling\"\n  period              = 21600\n  statistic           = \"Maximum\"\n  threshold           = 4000\n  alarm_description   = \"Billing exceeds $4000\"\n  alarm_actions       = [aws_sns_topic.billing_alerts.arn]\n\n  dimensions = {\n    Currency = \"USD\"\n  }\n}\n```\n\n## Scheduling Non-Production Shutdowns\n\n```bash\n# Stop all dev instances tagged Environment=dev (run via EventBridge + Lambda)\naws ec2 describe-instances \\\n  --filters \"Name=tag:Environment,Values=dev\" \"Name=instance-state-name,Values=running\" \\\n  --query \"Reservations[].Instances[].InstanceId\" \\\n  --output text | xargs -n1 aws ec2 stop-instances --instance-ids\n\n# Scale down dev ECS services to zero at night\naws ecs update-service \\\n  --cluster dev-cluster \\\n  --service dev-api \\\n  --desired-count 0\n```\n\n## Troubleshooting\n\n| Problem | Cause | Fix |\n|---|---|---|\n| Cost Explorer returns empty data | CE not enabled or \u003C 24h old | Enable in Billing console, wait 24h |\n| Budget alert not firing | SNS subscription not confirmed | Check email and confirm subscription |\n| Rightsizing shows no recommendations | Not enough usage data | Wait 14 days for sufficient metrics |\n| Savings Plans utilization low | Over-purchased or workload changed | Review and adjust SP coverage |\n| Unattached EBS not showing | Wrong region queried | Loop through all active regions |\n| Billing alarm never triggers | Billing metrics only in us-east-1 | Create alarm in us-east-1 region |\n| CUR data missing in S3 | Report not configured or bucket policy wrong | Verify CUR setup in Billing console |\n| Tag-based cost allocation empty | Tags not activated | Activate cost allocation tags in Billing |\n\n## Related Skills\n\n- aws-ec2 (`aws-ec2`) - EC2 operations, sizing, and Spot instances\n- aws-s3 (`aws-s3`) - S3 storage classes and lifecycle controls\n- aws-rds (`aws-rds`) - RDS instance sizing and reserved instances\n- aws-lambda (`aws-lambda`) - Lambda pricing and concurrency tuning\n- terraform-aws (`terraform-aws`) - Codifying cost guardrails in IaC\n\n## Limitations\n\n- Infrastructure commands can disrupt services: confirm target host\u002Fscope and have backups\u002Fsnapshots before mutating state.\n- Docs-only import: upstream scripts and templates not bundled.\n\n",{"name":5,"risk":35,"source":48,"license":14,"category":49,"metadata":50,"date_added":53,"description":7,"source_repo":54,"source_type":38,"compatibility":55,"license_source":56},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","devops",{"author":51,"version":52},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant OS\u002Fplatform tooling and privileged access where noted. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Faws-cost-optimization","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill aws-cost-optimization",{"tool":68,"command":69},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill aws-cost-optimization",{"tool":71,"command":72},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill aws-cost-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Faws-cost-optimization\u002FSKILL.md",true,[],[77,98,122,147,175,199],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":86,"publishedAt":43},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[83],{"categoryNo":84,"categoryName":85,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署",[87,88,89,90,91,92,79,93,41,40,94,39,38,28,95,35,96,34,33,97],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","configure","active","scope","implementing",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":43},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[105,106,107,108,109,110,111,112,113,114,115,116,117,39,118,38,119,120,35,121],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":43},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[129,130,131,132,133,134,135,136,137,138,139,140,141,38,28,142,143,144,145,146],"transcript","youtube transcript","youtube","safe","github","codex","research","license","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":164,"publishedAt":43},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[153,156,159],{"categoryNo":154,"categoryName":155,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":157,"categoryName":158,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":160,"categoryName":161,"taxonomyType":162,"taxonomyTypeDesc":163},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[129,130,131,165,132,166,133,134,136,167,168,169,170,139,171,38,28,172,173,174],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":185,"publishedAt":43},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[181,184],{"categoryNo":182,"categoryName":183,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":157,"categoryName":158,"taxonomyType":20,"taxonomyTypeDesc":21},[131,186,187,109,132,188,189,190,191,136,169,192,193,194,195,28,196,142,197,198],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":206,"publishedAt":43},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[205],{"categoryNo":154,"categoryName":155,"taxonomyType":20,"taxonomyTypeDesc":21},[207,131,208,209,132,166,167,210,211,168,169,170,139,212,171,38,28,172,213,145],"youtube full","full","google","server","dlp","credits","automatic"]