Shift-Left FinOps: Adding SageMaker Support to Infracost
Infracost Go PR for SageMaker endpoints, serverless inference, shadow variants, and async Terraform pricing. GitHub PR: infracost/infracost#3567 (open, awaiting upstream review) “Shift-Left FinOps” is about moving cost visibility as far forward in the development lifecycle as possible. This project involved contributing to Infracost, a tool that sits in the CI/CD pipeline to show engineers the “price tag” of their Terraform changes before they hit production. AWS SageMaker pricing is complex because it involves multiple billing dimensions that are often opaque in Terraform code. My contribution adds pricing support for Working in the Go codebase of Infracost, I had to map complex Terraform resource attributes to the AWS Price List API. This required: Contributing to a FinOps tool is a masterclass in the “financial underbelly” of the cloud. It forces you to realize that as a software engineer, you are effectively a “financial architect.” Every line of infrastructure code is a spending decision. By building visibility into the PR level, we empower engineers to be proactive rather than reactive. The Technical Challenge
aws_sagemaker_endpoint_configuration, covering: Implementation Details
serverless_config block. Key Learnings