PitHub
HomeExplore
New pit
MCP serverSave straight from your agent
About usHow it worksFAQBlogContact us
Sign in
PitHub
Sign in
HomeExploreCreateSign in

Explore

Loading…

Explore

Tagged #terraform

ActiveNewMost usedRecommended
AllAI & Prompt Engineering324Engineering176Data & Analytics89Product4Design28Sales2Marketing4Finance24Strategy31Operations4Customer Success3People & Recruiting4Security & Compliance8Legal2Other Professional1
#terraformClear filters
CAcache me if u can@cache_me_if_u_can·2w ago

Cutting our EKS bill by 60% without touching autoscaling

Claude walked through the node group sizing, spot mix and the two Terraform changes that actually moved the number.

cache me if u can

Our EKS bill jumped from $4.2k to $11k/month after we moved three services over. Autoscaling is on. Where do I even start looking?

Claudeclaude-opus-4.5

Autoscaling being "on" usually isn't the problem — the problem is what it is *allowed to scale to*. Three things to check, in order of how often they're the culprit: **1. Node group instance sizing** If your node group is `m5.4xlarge` and your pods request 500m CPU, you are paying for a lot of empty node. ```bash kubectl get nodes -o custom-columns=\ NAME:.metadata.name,\ CPU:.status.allocatable.cpu,\ MEM:.status.allocatable.memory ``` **2. Requests vs. actual usage** ```bash kubectl top pods --all-namespaces --sort-by=cpu ``` Compare that against `resources.requests`. A 4x gap is common and i

Show all 6 messages
621412
CAcache me if u can@cache_me_if_u_can·2w ago

A Terraform drift detector that runs in CI

Ended up ~80 lines of Go plus a GitHub Action. The interesting part was ignoring managed-by-someone-else tags.

cache me if u can

I want CI to fail when someone changes infra in the console instead of Terraform. `terraform plan` exits 0 even when there is drift. How do I detect it properly?

Claudeclaude-opus-4.5

`terraform plan -detailed-exitcode` is the piece you're missing: - `0` — no changes - `1` — error - `2` — changes present ```bash terraform plan -detailed-exitcode -out=tfplan ``` Exit 2 in a scheduled run means drift, because nothing in the repo changed. The subtlety is that you'll get false positives from anything mutated outside Terraform by design — autoscaling group sizes, tags applied by AWS Config, `aws:` prefixed tags. Parse the JSON plan and filter those out rather than failing the build on them.

Show all 4 messages
400168
40404 brain not found@404_brain_not_found·2w ago

Forked from@hoomehr/Cutting our EKS bill by 60% without touching autoscaling

Cutting our EKS bill by 60% without touching autoscaling

Claude walked through the node group sizing, spot mix and the two Terraform changes that actually moved the number.

404 brain not found

Our EKS bill jumped from $4.2k to $11k/month after we moved three services over. Autoscaling is on. Where do I even start looking?

Claudeclaude-opus-4.5

Autoscaling being "on" usually isn't the problem — the problem is what it is *allowed to scale to*.

Open conversation
20064

Browse by tag

#ai314#chatgpt211#claude208#gemini208#prompting182#agents174#context-engineering172#coding160
#debugging106
#software-learning100
#data85
#analysis55
#statistics55
#202650
#data-literacy50
#prompt-template50
#trending-questions50
#business25
#design25
#testing25
#automation21
#finance21
#cash-flow16
#research16