Skip to content

superstreamlabs/superstream-billing-data-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda Deployment Guide

The following Lambda function is responsible for fetching billing-related data in environments where the customer is unable to grant billing-related permissions to the IAM user or role assigned to the Superstream platform.


Steps to Deploy

1. Build the Go Lambda Function

Compile the Go Lambda function into a Linux-compatible binary:

GOOS=linux GOARCH=arm64 go build -o bootstrap main.go 

This will create an executable named bootstrap.


2. Package the Function

Create a .zip file containing the binary:

zip function.zip bootstrap

3. Deploy the Lambda Function

Upload the Zip file from the AWS Lambda console


4. Create an IAM role and attach it to the Lambda function

The role should have the following permissions

"kafka:ListTagsForResource"
"kafka:TagResource"
"ce:ListCostAllocationTags"
"ce:UpdateCostAllocationTagsStatus"
"ce:GetCostAndUsageWithResources"
"ce:GetCostAndUsage"
"ce:ListTagsForResource"
"ce:GetTags"
 +
AWSBillingReadOnlyAccess policy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages