# Bill - 서버리스로 동작하는 AWS 비용 최적화 봇

> Clean Markdown view of GeekNews topic #7095. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=7095](https://news.hada.io/topic?id=7095)
- GeekNews Markdown: [https://news.hada.io/topic/7095.md](https://news.hada.io/topic/7095.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-08-02T10:45:37+09:00
- Updated: 2022-08-02T10:45:37+09:00
- Original source: [github.com/cremich](https://github.com/cremich/cdk-bill-bot)
- Points: 15
- Comments: 0

## Topic Body

- AWS 인프라 비용을 모니터링 하고, 예상치 못했던 비용이 발생하는 것을 감지   
  - 비용 이력을 정기적으로 모니터링   
  - 기본적인 비용 최적화 모범사례를 적용   
- 매일 이 달의 클라우드 비용에 대해 알림을 줌   
### 동작 방식  
- AWS Cost and Usage Reports(CUR)을 S3에 저장  
- Amazon EventBridge가 하루에 한번 AWS Step Functions를 실행   
  - AWS Lambda로 어제를 계산  
  - Athena의 Prepared Statement가 AWS Glue를 이용하여 S3를 Crawling 하고 Datacatalog를 생성/업데이트   
  - Lambda 로 슬랙에 메시지 보냄

## Comments



_No public comments on this page._
