본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)40k · #7073

aws-cost-optimize

하는 일

이 도구는 Amazon Web Services(AWS) 리소스를 분석해 돈을 절약할 방법을 찾습니다. 변경을 제안하고, 진행 상황을 추적할 수 있도록 프로젝트 관리 시스템(GitHub)에 작업을 만듭니다.

사용하는 경우

  • ✓매달 AWS 청구 금액을 줄이고 싶을 때.
  • ✓AWS에 새 서비스를 배포하기 전에 비용 효율을 확인하고 싶을 때.
  • ✓AWS에 과도하게 지출하고 있다고 의심되어 어디인지 알고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/aws-cost-optimize/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/aws-cost-optimize/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 AWS 계정을 분석하고 비용을 절약하는 방법을 알려 주세요. GitHub 저장소에 작업도 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 사용 중인 AWS 서비스를 확인하고, 비용 절감 모범 사례와 비교한 뒤 최적화 기회를 찾습니다. 그다음 이러한 절약을 실행할 수 있도록 상세한 작업을 자동으로 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

AWS Cost Optimize

This workflow analyzes Infrastructure-as-Code (IaC) files and AWS resources to generate cost optimization recommendations. It creates individual GitHub issues for each optimization opportunity plus one EPIC issue to coordinate implementation, enabling efficient tracking and execution of cost savings initiatives.

Prerequisites

  • AWS CLI configured and authenticated (aws sts get-caller-identity succeeds)
  • GitHub MCP server configured and authenticated
  • Target GitHub repository identified
  • AWS resources deployed (IaC files optional but helpful)

Workflow Steps

Step 1: Get AWS Cost Optimization Best Practices

Action: Retrieve cost optimization best practices before analysis Tools: fetch to retrieve AWS documentation Process:

  1. Load Best Practices:
    • Fetch https://docs.aws.amazon.com/cost-management/latest/userguide/cost-optimization-best-practices.html
    • Fetch the AWS Well-Architected Cost Optimization pillar summary
    • Use these practices to inform subsequent analysis and recommendations

Step 2: Discover AWS Infrastructure

Action: Dynamically discover and analyze AWS resources and configurations Tools: AWS CLI + Local file system access Process:

  1. Account & Region Discovery:

    • Execute aws sts get-caller-identity to confirm account
    • Execute aws configure get region to determine default region
  2. Resource Discovery (per region):

    • EC2 instances: aws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,InstanceType,State.Name,Tags]'
    • RDS instances: aws rds describe-db-instances --query 'DBInstances[].[DBInstanceIdentifier,DBInstanceClass,Engine,MultiAZ]'
    • Lambda functions: aws lambda list-functions --query 'Functions[].[FunctionName,Runtime,MemorySize,Architectures]'
    • ECS clusters/services: aws ecs list-clusters then aws ecs describe-services
    • S3 buckets: aws s3api list-buckets --query 'Buckets[].Name'
    • ElastiCache clusters: aws elasticache describe-cache-clusters
    • NAT Gateways: aws ec2 describe-nat-gateways
    • Load Balancers: aws elbv2 describe-load-balancers
  3. IaC Detection:

    • Scan for IaC files: **/*.tf, **/*.yaml (CloudFormation/SAM), **/*.json (CloudFormation), **/cdk.json, lib/**/*.ts (CDK)
    • Parse resource definitions to understand intended configurations
    • Do NOT use application code files — only IaC files as the source of truth
    • If no IaC files found: STOP and report to user

Step 3: Collect Usage Metrics & Validate Current Costs

Action: Gather utilization data and verify actual resource costs Tools: AWS CLI (CloudWatch, Cost Explorer) Process:

  1. CloudWatch Metrics (last 7 days):

    # EC2 CPU utilization
    aws cloudwatch get-metric-statistics \
      --namespace AWS/EC2 --metric-name CPUUtilization \
      --dimensions Name=InstanceId,Value=<id> \
      --start-time $(date -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ) \
      --end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \
      --period 3600 --statistics Average
    
    # Lambda duration
    aws cloudwatch get-metric-statistics \
      --namespace AWS/Lambda --metric-name Duration \
      --dimensions Name=FunctionName,Value=<name> \
      --start-time $(date -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ) \
      --end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \
      --period 86400 --statistics Average,Maximum
    
  2. AWS Cost Explorer:

    aws ce get-cost-and-usage \
      --time-period Start=$(date -u -d '30 days ago' +%Y-%m-%d),End=$(date -u +%Y-%m-%d) \
      --granularity MONTHLY --metrics BlendedCost \
      --group-by Type=DIMENSION,Key=SERVICE
    
  3. Calculate Baseline Metrics: CPU/Memory averages, Lambda invocation rates, data transfer patterns, and a realistic current monthly total.

Step 4: Generate Cost Optimization Recommendations

Action: Analyze resources to identify optimization opportunities Process:

  1. Apply Optimization Patterns:

    Compute:

    • EC2: Right-size based on CPU/memory (<20% average → downsize), convert On-Demand to Savings Plans, migrate to Graviton/ARM (up to 40% cheaper)
    • Lambda: Reduce memory for idle functions, switch to arm64 (20% cheaper)
    • ECS/EKS: Use Fargate Spot for dev/batch workloads

    Database:

    • RDS: Right-size instance class, convert single-AZ for dev, use Aurora Serverless v2 for variable load
    • DynamoDB: Switch Provisioned → On-Demand for unpredictable traffic

…

자주 묻는 질문

이 도구를 쓰려면 IaC 파일이 필요한가요?

필수는 아니지만, AWS 인프라를 설명하는 코드 파일이 있으면 도구가 설정을 더 잘 이해하고 더 정확한 추천을 할 수 있습니다.

‘IaC 파일’이란 무엇인가요?

IaC는 ‘Infrastructure as Code’(코드로서의 인프라)의 약자입니다. 서버나 데이터베이스 같은 IT 인프라를 수동으로 설정하지 않고 코드로 기술하는 파일입니다. Terraform, CloudFormation, CDK 파일이 예입니다.

도구가 절약 기회를 찾은 후 무슨 일이 일어나나요?

GitHub 저장소에 작업(이슈)을 만듭니다. 주요 작업(EPIC)이 모든 제안을 묶고, 더 작은 작업들이 각각의 구체적인 비용 절감 기회를 자세히 설명합니다.

상세 정보

작성자의 원본 설명

Analyze AWS resources used in the app (IaC files and/or resources in a target account/region) and optimize costs - creating GitHub issues for identified optimizations.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7073
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬