Cost Visibility for Infrastructure as Code
Talkat Open Source Summit Europe 2023 · on Wednesday, 2023-09-20· at 16:50· Room 0E-1 (Floor 0), Abandoibarra Etorb., 4, 48011 Bilbao, Bizkaia, Spain·
summary
Tool parses Terraform plan and returns a per-resource monthly estimate before apply, using Infracost API plus Terraform and GitHub Actions. A custom container GitHub Action is built (action.yml, Dockerfile, entrypoint) that reads the PR number from GITHUB_REF, stores the API key in repo secrets, and loops through multiple Terraform dirs for mono-repo setups. Demo shows instance prices (micro ≈ $10/mo, large ≈ $97/mo) and a sample $31 total estimate; comments sometimes fail to post but cost calc itself runs.
AI-written summary · about
chapters (11)
- 0:00Cost visibility intro
- 1:51What is Infracost and how it works
- 4:42Infracost for GitHub Actions
- 7:15Custom GitHub Action container
- 10:50Microservice infrastructure changes
- 15:05Monorepo action adaption
- 17:12Terraform demo setup
- 19:50Live Infracost plugin
- 22:13GitHub Action pipeline run
- 24:56Summary
- 25:59Q&A
related talks
29mCost Visibility for Infrastructure as Code
29mUsing GitHub Actions and HashiCorp Terraform
44mEvolution of Infrastructure Management
37mInfraCoding with Terraform: Writing Tests for Infrastructure-as-Code
24mTerraform Best Practices
29mDeploying CI/CD Infrastructure with Terraform and Packer
36mInfrastructure as Code with Terraform
32mCreate an Infrastructure Pipeline with GitHub Actions and Terraform
