SlideShare a Scribd company logo
Cost reconciliation
in a post CMDB world
Bram Vogelaar
@attachmentgenie
Confidential and Proprietary
~ ❯ whoami
• Used to be a Molecular Biologist
• Then became a Dev, now an Ops
• Currently Cloud Engineer @ Seaplane.io
Confidential and Proprietary
Who has said this before?
“If it isn’t in code (*),
it doesn’t exist!”
(*) puppet, chef, ansible, opentofu…..etc
Confidential and Proprietary
And also said…
“Just ignore that $17.63 on
on the AWS bill”
Confidential and Proprietary
And followed by……
“We don’t know
what that is for
….
but it has been
there since forever”
Confidential and Proprietary
And than said………
“ ¯_(ツ)_/¯ ”
Confidential and Proprietary
And while the CISO said…
Confidential and Proprietary
Because nobody told to the infra team(*)
“Trust but verify”
(*) {ops, sysadmin, infra, devops, sre, platform}
Confidential and Proprietary
To understand why, we need to understand how
Confidential and Proprietary
Let’s pretend it is data science
Confidential and Proprietary
Count the # resources in your state file/code
terraform show -json | jq -r '.values[].resources[]
grep -nr "resource "google_compute_instance""
Confidential and Proprietary
Count the # in your single source of truth
Confidential and Proprietary
Count the # in your 011y tools
sum (up{env="production",job="node_exporter"})
Confidential and Proprietary
Oh…Crap….
Confidential and Proprietary
Check your DNS/IPAM entries
Confidential and Proprietary
Count your CICD deploy targets
Confidential and Proprietary
Observe vendor billing
Confidential and Proprietary
The lack of signal is a singal
Confidential and Proprietary
You ll need to become good friends with UIs
Confidential and Proprietary
Compare your single source truth vs vendor
billing
SKUs applied === SKUs paid for
cloud regions defined in .tf files === regions with
resources
Confidential and Proprietary
Observe volume metrics
Confidential and Proprietary
Should I go crazy automating this?
Confidential and Proprietary
Vendors as a SQL Schema
SELECT
*
FROM
aws_elbv2_load_balancers
WHERE
scheme = 'internet-facing';
https://www.cloudquery.io/
Confidential and Proprietary
But what about…
Ways to
fix it
keep up with life
Confidential and Proprietary
“Make doing the right thing,
the simplest thing to do”
Confidential and Proprietary
Lock Vendor Regions Down
data "aws_iam_policy_document" "eu-central-1-only" {
statement {
actions = [
"ec2:RunInstances",
]
….
condition {
test = "StringEquals"
variable = "aws:RequestedRegion"
values = [
"eu-central-1",
]
}
}
}
Confidential and Proprietary
Lock Vendor Regions Down
resource "aws_organizations_policy" "eu-central-1-only" {
name = "eu-central-1-only"
content = data.aws_iam_policy_document.eu-central-1-only.json
}
Confidential and Proprietary
Tag everything
Confidential and Proprietary
Tag everything
provider "aws" {
profile = "default"
region = "eu-central-1"
default_tags {
tags = {
Environment = "Test"
Service = "Example"
terraform = true
}
}
}
Confidential and Proprietary
Forcing labels / Decorating metrics
global:
scrape_interval: 10s
external_labels:
datacenter: "%{::trusted.extensions.pp_datacenter}"
region: "%{::trusted.extensions.pp_region}" <- use ${IATA_CODES}
env: "%{::trusted.extensions.pp_environment}"
Confidential and Proprietary
But my system is Cloud native
Alert on $THING
that costs money
Confidential and Proprietary
psst………
“You really should use a
CMDB”
Confidential and Proprietary
e.g Netbox
https://netbox.dev/
Confidential and Proprietary
IPAM made easy
resource "netbox_prefix" "supplier_site" {
status = "active"
prefix = "${local.base_ip}/${local.base_bits}"
tags = [
"${local.supplier}-${var.supplier_site}"
]
}
data "netbox_prefix" "supplier_site" {
tag = "${local.supplier}-${var.supplier_site}"
}
resource "netbox_available_ip_address" "nebula_ip" {
prefix_id = data.netbox_prefix.supplier_site.id
dns_name = "${var.hostname}.${var.fqdn_suffix}"
}
Confidential and Proprietary
But that didn’t sounds very easy
resource "supplier_x_server" "vm" {
image_id = “Ubuntu 22.04”
hostname = "${var.hostname}.${var.fqdn_suffix}"
plan = var.supplier_type
location = var.supplier_site
user_data = module.cloud-init-vm.user_data
}
module "netbox_vm" {
source = "your.registry/record_node/supplier_x"
version = "1.0.0"
fqdn_suffix = var.fqdn_suffix
tags = [local.netbox_tag]
node_module = module.cloud-init-vm.user_data
supplier_x_instance = supplier_x_server.vm
}
Questions Before Takeoff?
bram@attachmentgenie.com
@attachmentgenie
https://www.slideshare.net/attachmentgenie

More Related Content

PDF
Painless Persistence in a Disconnected World
PDF
Beeline Firebase talk - Firebase event Jun 2017
PDF
Systems Bioinformatics Workshop Keynote
PDF
Asterisk, HTML5 and NodeJS; a world of endless possibilities
PDF
Java Hurdling: Obstacles and Techniques in Java Client Penetration-Testing
PDF
Auto scaling with Ruby, AWS, Jenkins and Redis
PPTX
Behind modern concurrency primitives
PDF
AWS Java SDK @ scale
Painless Persistence in a Disconnected World
Beeline Firebase talk - Firebase event Jun 2017
Systems Bioinformatics Workshop Keynote
Asterisk, HTML5 and NodeJS; a world of endless possibilities
Java Hurdling: Obstacles and Techniques in Java Client Penetration-Testing
Auto scaling with Ruby, AWS, Jenkins and Redis
Behind modern concurrency primitives
AWS Java SDK @ scale

Similar to Cost reconciliation in a post CMDB world (20)

PDF
Security pitfalls in script-able infrastructure pipelines.
PDF
Launching Beeline with Firebase
PPTX
Microservices, Continuous Delivery, and Elasticsearch at Capital One
KEY
[Coscup 2012] JavascriptMVC
PPTX
비동기 회고 발표자료
PPTX
Grokking Engineering - Data Analytics Infrastructure at Viki - Huy Nguyen
PDF
Vertically Scaled Design Patters
PDF
TIAD : Automating the modern datacenter
PPTX
Scaling Big While Sleeping Well
PPTX
Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto
PPTX
Final terraform
PDF
【IVS CTO Night & Day】Amazon Container Services
PPTX
Top 23 Things Not to Do in AWS
PDF
From Zero to CRUD with ORM - Led by Annette Liskey.pdf
PDF
Connect.Tech- Swift Memory Management
PDF
Building and running Spring Cloud-based microservices on AWS ECS
PPTX
Real World Azure - IT Pros
PPTX
Locking the Doors -7 Pernicious Pitfalls to avoid with Java
PDF
Understanding OpenStack Deployments - PuppetConf 2014
PDF
Erlang as a Cloud Citizen
Security pitfalls in script-able infrastructure pipelines.
Launching Beeline with Firebase
Microservices, Continuous Delivery, and Elasticsearch at Capital One
[Coscup 2012] JavascriptMVC
비동기 회고 발표자료
Grokking Engineering - Data Analytics Infrastructure at Viki - Huy Nguyen
Vertically Scaled Design Patters
TIAD : Automating the modern datacenter
Scaling Big While Sleeping Well
Orchestrating Docker with Terraform and Consul by Mitchell Hashimoto
Final terraform
【IVS CTO Night & Day】Amazon Container Services
Top 23 Things Not to Do in AWS
From Zero to CRUD with ORM - Led by Annette Liskey.pdf
Connect.Tech- Swift Memory Management
Building and running Spring Cloud-based microservices on AWS ECS
Real World Azure - IT Pros
Locking the Doors -7 Pernicious Pitfalls to avoid with Java
Understanding OpenStack Deployments - PuppetConf 2014
Erlang as a Cloud Citizen
Ad

More from Bram Vogelaar (20)

PPTX
Terraforming your Platform Engineering organisation.pptx
PDF
Secure second days operations with Boundary and Vault.pdf
PDF
Self scaling Multi cloud nomad workloads
PDF
Scraping metrics for fun and profit
PDF
10 things i learned building nomad-packs
PDF
10 things I learned building Nomad packs
PDF
Easy Cloud Native Transformation with Nomad
PDF
Uncomplicated Nomad
PDF
Observability; a gentle introduction
PDF
Running Trusted Payload with Nomad and Waypoint
PDF
Easy Cloud Native Transformation using HashiCorp Nomad
PDF
Securing Prometheus exporters using HashiCorp Vault
PDF
CICD using jenkins and Nomad
PDF
Bootstrapping multidc observability stack
PDF
Running trusted payloads with Nomad and Waypoint
PDF
Gamification of Chaos Testing
PDF
Puppet and the HashiStack
PDF
Bootstrapping multidc observability stack
PPTX
Creating Reusable Puppet Profiles
PDF
Gamification of Chaos Testing
Terraforming your Platform Engineering organisation.pptx
Secure second days operations with Boundary and Vault.pdf
Self scaling Multi cloud nomad workloads
Scraping metrics for fun and profit
10 things i learned building nomad-packs
10 things I learned building Nomad packs
Easy Cloud Native Transformation with Nomad
Uncomplicated Nomad
Observability; a gentle introduction
Running Trusted Payload with Nomad and Waypoint
Easy Cloud Native Transformation using HashiCorp Nomad
Securing Prometheus exporters using HashiCorp Vault
CICD using jenkins and Nomad
Bootstrapping multidc observability stack
Running trusted payloads with Nomad and Waypoint
Gamification of Chaos Testing
Puppet and the HashiStack
Bootstrapping multidc observability stack
Creating Reusable Puppet Profiles
Gamification of Chaos Testing
Ad

Recently uploaded (20)

PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Nekopoi APK 2025 free lastest update
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
history of c programming in notes for students .pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPT
Introduction Database Management System for Course Database
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
AI in Product Development-omnex systems
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
System and Network Administraation Chapter 3
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Odoo Companies in India – Driving Business Transformation.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Nekopoi APK 2025 free lastest update
ISO 45001 Occupational Health and Safety Management System
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Navsoft: AI-Powered Business Solutions & Custom Software Development
PTS Company Brochure 2025 (1).pdf.......
Understanding Forklifts - TECH EHS Solution
history of c programming in notes for students .pptx
How to Choose the Right IT Partner for Your Business in Malaysia
Introduction Database Management System for Course Database
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
AI in Product Development-omnex systems
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
How Creative Agencies Leverage Project Management Software.pdf
System and Network Administraation Chapter 3
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf

Cost reconciliation in a post CMDB world