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.
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
.
Create a .zip
file containing the binary:
zip function.zip bootstrap
Upload the Zip file from the AWS Lambda console
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