본문 바로가기

좋아하는 것_매직IT/96.IT 핫이슈

Bill - 서버리스로 동작하는 AWS 비용 최적화 봇 (github.com/cremich)

반응형

Bill - 서버리스로 동작하는 AWS 비용 최적화 봇을 소개합니다.

깃허브에서는 아래와 같이 소개하고 있습니다. 

🤖 About Bill

Bill enables AWS customers to proactively monitor their infrastructure costs and identify unforeseen expenses in a timely manner. Bill wants to prevent AWS customers from receiving bad surprises in their monthly bill. Therefore he addresses two primary problem areas:

  1. cost history is not monitored on a regular basis
  2. basic cost optimization best practices are not setup

Bill is a happy bot, if you...

  • ...have more money in your pocket
  • ...are enabled to monitor your spends proactively

How does Bill help you?

By analyzing your cost and usage reports, Bill will inform you about your monthly costs on a daily basis. This way, AWS customers will always have an up-to-date snapshot of how their infrastructure costs are progressing. AWS customers can then take direct action in the event of increased costs to prevent unintended suprises in their bill.

In addition to the daily status report, Bill enables various best practices in the area of cost optimization so that you can reliably control your costs. For example, by setting up multi-level AWS budget notifications or enabling cost anomaly detection and notification once anomalies are detected.

한마디로, Bill은 서버리스로 동작하는 AWS 비용 최적화 봇이라고 머릿속에 넣어두시면 되고요..

깃허브에서 소개하고 있는 아키텍처는 아래와 같습니다. (개인적으로 참고하시면 될것 같고요..)

설치는 아래와 같이 진행하시면 됩니다.

Installation

You can install Bill in two ways. Either using the CDK library package or by provisioning a default and pre-packaged Cloudformation template within your existing AWS accounts.

CDK Library for Typescript

Bill can be added into your existing Typescript based CDK applications. Simply include the @cremich/cdk-bill-bot as a dependency within your application using either NPM or Yarn:

npm install @cremich/cdk-bill-bot --save-dev
# or
yarn add @cremich/cdk-bill-bot --save-dev

 

Bill 에 대한 특징을 간단하게 정리해보면 아래와 같습니다.

  • AWS 인프라 비용을 모니터링 하고, 예상치 못했던 비용이 발생하는 것을 감지
    • 비용 이력을 정기적으로 모니터링
    • 기본적인 비용 최적화 모범사례를 적용
  • 매일 이 달의 클라우드 비용에 대해 알림을 줌

동작방식

  • AWS Cost and Usage Reports(CUR)을 S3에 저장
  • Amazon EventBridge가 하루에 한번 AWS Step Functions를 실행
    • AWS Lambda로 어제를 계산
    • Athena의 Prepared Statement가 AWS Glue를 이용하여 S3를 Crawling 하고 Datacatalog를 생성/업데이트
    • Lambda 로 슬랙에 메시지 보냄

좀더 자세한 사항은 아래 깃허브 페이지를 참고하시면 될것 같네요..

오늘의 블로그는 여기까지고요..
항상 믿고 봐주셔서 감사합니다. 

728x90
300x250