Deploying Lambda Functions

Overview

In this section, we will deploy the two Lambda functions that serve as the processing layer of the CloudCost Insight system:

  • Lambda Collector is responsible for collecting cost data from the Cost Explorer API, storing the data in Amazon S3, and sending events to Amazon SQS.
  • Lambda Analyzer consumes events from Amazon SQS, analyzes the cost data, and sends alerts through Amazon SNS whenever abnormal costs are detected.

We will deploy each Lambda function step by step. Each function includes a Python implementation and its corresponding Terraform configuration.

CloudCost Insight Architecture

Contents

  1. Lambda Collector
  2. Lambda Analyzer