<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Stas Kolenkin on Medium]]></title>
        <description><![CDATA[Stories by Stas Kolenkin on Medium]]></description>
        <link>https://medium.com/@stas.kolenkin?source=rss-defed876190f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NueGKHa0UftEIeIy</url>
            <title>Stories by Stas Kolenkin on Medium</title>
            <link>https://medium.com/@stas.kolenkin?source=rss-defed876190f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:05:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stas.kolenkin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AWS VPC CNI vs Cilium on EKS: Lessons from Production]]></title>
            <link>https://medium.com/@stas.kolenkin/aws-vpc-cni-vs-cilium-on-eks-lessons-from-production-f978787a9d29?source=rss-defed876190f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f978787a9d29</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cni]]></category>
            <category><![CDATA[cilium]]></category>
            <dc:creator><![CDATA[Stas Kolenkin]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 09:04:32 GMT</pubDate>
            <atom:updated>2026-11-18T09:04:32.605Z</atom:updated>
            <content:encoded><![CDATA[<p>On EKS, the AWS VPC CNI is the boring choice, and boring is good. Pods get real VPC IPs, AWS supports the whole stack, and most of the time you forget it’s even there. Cilium gives you a lot more: an eBPF datapath, kube-proxy replacement, L3 to L7 network policy and Hubble. The price is that a bigger chunk of Linux networking becomes your job.</p><p>This isn’t a benchmark. It’s an overview of how the two differ, when to pick which (including the middle ground of chaining, which is what we run), and the nuances that bit us or nearly did: prefix delegation in a VPC that isn’t infinite, Cilium identities at scale, and an AMI update that quietly broke S3 access.</p><h3>When to use what</h3><p>The short version: stay on VPC CNI unless you can name the Cilium feature you need and you have someone on the team who will own the datapath. If you do, start with chaining. Most teams never need more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WoIyzUCezCMoGJknHDsAlw.jpeg" /><figcaption><strong>Figure 1. </strong><em>A quick way to pick. Most teams stop at the first or third box.</em></figcaption></figure><h3>VPC CNI on its own</h3><p>Pick it when you need security groups for pods, want AWS to own and support the datapath, and standard Kubernetes NetworkPolicy is enough. It’s also the right call for small platform teams. Every EKS AMI is tested against it, and the managed add-on upgrades with the cluster.</p><h3>Cilium chaining on top of VPC CNI</h3><p>Pick it when you want Cilium’s policy model (identities, FQDN rules, L7, cluster-wide policies) and Hubble, but would rather keep AWS doing IPAM and routing. Pods keep their VPC IPs, security groups for pods keep working, and you can roll it back without rebuilding nodes.</p><p>This is our setup, with one addition: we removed kube-proxy and run Cilium’s kube-proxy replacement (KPR) in chaining mode (kubeProxyReplacement=true, with k8sServiceHost and k8sServicePort pointing at the EKS API endpoint). Cilium’s AWS chaining guide doesn’t cover that combination, so test it on your Cilium version before you rely on it. Things to keep in mind with chaining:</p><ul><li>You now have two components to upgrade and keep compatible. Cilium asks for VPC CNI 1.11.2 or newer.</li><li>Cilium’s docs warn that some advanced features, L7 policy and IPsec among them, may be limited when chaining.</li><li>Pods that were running before you installed Cilium aren’t covered until they restart.</li><li>Identities and policy behave exactly as in a full Cilium install, so the identity section below applies to you too.</li></ul><h3>Cilium ENI mode</h3><p>Pick it when you want Cilium to own the whole datapath (IPAM, routing, masquerading) or need something chaining limits. Pods still get routable VPC IPs, but the Cilium operator allocates them. The cost is that host networking is now yours: per-ENI routing, rp_filter, AMI sysctl changes and the operator’s EC2 permissions. The incident later in this article is a good example of what that means.</p><h3>Cilium overlay</h3><p>On EKS we’d mostly avoid it. It saves VPC addresses, but the control plane can’t reach overlay pod IPs, so every webhook needs hostNetwork. More on that below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qr0PsWIF3iJ82tY6aCj2Xw.png" /></figure><h3>How AWS VPC CNI works</h3><p>Every pod gets a secondary IP from an ENI attached to the node. There’s no overlay, so pods are ordinary citizens of the VPC. Two pieces do the work: aws-node, which runs ipamd and keeps a warm pool of ENIs and IPs, and the CNI binary that sets up the veth pair in the pod’s network namespace.</p><ul><li><strong>IP allocation.</strong> Each instance type has a hard limit on ENIs and IPs per ENI. With prefix delegation (ENABLE_PREFIX_DELEGATION=true) each slot holds a /28 prefix instead of a single IP, which raises pod density a lot. It has a catch, covered below.</li><li><strong>Routing.</strong> Every pod has a host route on the node. For pods on secondary ENIs, policy routing (ip rule) sends traffic into a per-ENI route table, so replies leave through the same ENI.</li><li><strong>SNAT.</strong> Anything going outside the VPC CIDR is SNATed by iptables to the node’s primary IP on eth0, unless you set AWS_VPC_K8S_CNI_EXTERNALSNAT=true. You can exclude extra ranges with AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS.</li><li><strong>rp_filter.</strong> Replies can come in on a different interface than the main table expects, so VPC CNI sets loose reverse-path filtering (rp_filter=2) on the primary interface.</li><li><strong>Services.</strong> Handled by kube-proxy in iptables or IPVS mode.</li><li><strong>Network policy.</strong> The built-in eBPF agent (enableNetworkPolicy) covers standard Kubernetes NetworkPolicy, L3/L4 only.</li><li><strong>Security groups for pods.</strong> On trunk-capable instances, branch ENIs let you attach AWS security groups straight to pods. Cilium on its own can’t do that, though it works alongside the feature in chaining mode.</li></ul><h3>How Cilium works on EKS</h3><p>Cilium replaces iptables-based networking with eBPF programs attached to pod veths and node interfaces. On EKS you’ll run it in one of three modes, and the mode drives almost every trade-off.</p><ol><li><strong>ENI mode</strong> (ipam.mode=eni). The Cilium operator allocates ENIs and IPs from the VPC, much like VPC CNI does. Pods keep routable VPC IPs, and Cilium manages the per-ENI route tables and ip rules. You’ll usually pair it with routingMode=native and ipv4NativeRoutingCIDR set to the VPC CIDR.</li><li><strong>Overlay</strong> (VXLAN or Geneve) with cluster-pool IPAM. Pods get IPs from a private pool instead of the VPC. That saves address space and gets around ENI limits, but nothing in the VPC can reach pods directly, and that includes the EKS control plane.</li><li><strong>Chaining</strong> (cni.chainingMode=aws-cni). VPC CNI keeps doing IPAM and routing, and Cilium adds eBPF policy, Hubble and, if you want it, kube-proxy replacement on top.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsCIxoQyqQHwxwxNvfD7WQ.jpeg" /><figcaption><strong>Figure 2. </strong><em>Who owns each layer in each setup. Chaining keeps AWS on IPAM and routing and hands Cilium the policy layer.</em></figcaption></figure><p>What Cilium adds on top of VPC CNI:</p><ul><li><strong>kube-proxy replacement.</strong> eBPF service load balancing, Maglev, DSR, and no iptables chains that grow with every Service.</li><li><strong>Network policy.</strong> CiliumNetworkPolicy with identities, FQDN rules (toFQDNs), L7 rules for HTTP, gRPC and Kafka, and cluster-wide policies.</li><li><strong>Observability.</strong> Hubble flow logs with verdicts, drop reasons and identities.</li><li><strong>Extras.</strong> Cluster Mesh, egress gateway, BGP, bandwidth manager, WireGuard or IPsec encryption.</li></ul><p>And what it costs you. Cilium isn’t an AWS-managed add-on, so upgrades are yours. So is compatibility with each new EKS AMI and kernel, and so is the way it interacts with host settings like rp_filter.</p><h3>Side by side</h3><p>Raw throughput is rarely what decides this. The differences that matter are policy, observability and who owns the datapath.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3mqDXhyipY5j7i8ecElxQ.png" /></figure><h3>Nuances worth your attention</h3><p>None of these show up in a proof of concept. They show up a few months in, under load, or right after an upgrade.</p><h3>Prefix delegation when your VPC isn’t infinite</h3><p>Prefix delegation looks like a free win. Each ENI slot gets a /28 (16 addresses) instead of one IP, pod density goes up, and attaching a prefix takes under a second where attaching a new ENI can take up to ten. It works the same way in Cilium ENI mode with eni.awsEnablePrefixDelegation, because the rules come from EC2, not from the CNI.</p><p>The catch is that every /28 has to be a contiguous, aligned block of free addresses in the subnet. The free-IP count you see in the console is just a count. A subnet can show hundreds of free IPs and still have no free /28 at all, because a few scattered addresses sit in every block. When that happens, the CNI can’t attach new prefixes and logs:</p><blockquote>InsufficientCidrBlocks: The specified subnet does not have enough free cidr blocks to satisfy the request</blockquote><p>Pods on the affected nodes sit in ContainerCreating while the subnet looks half empty. Fragmentation builds up when the subnet is shared with other things (Lambda, RDS, load balancers, nodes still in secondary-IP mode), when nodes scale up and down a lot, and when orphaned ENIs are left behind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7OUOXHxrOJmgIp_aqN16wQ.jpeg" /><figcaption><strong>Figure 3. </strong><em>Illustrative /24 with the same number of non-pod addresses in both cases. Scattered across every block, they leave 209 free IPs and no free /28. With a prefix reservation, prefixes come from a clean range.</em></figcaption></figure><p>We hit exactly this. To see what was going on, we vibe-coded a small analyzer that mapped every in-use address in the subnet to its /28 block. It made the problem obvious, and it showed just as clearly how much better things got once we started using subnet CIDR reservations. AWS has since published a similar open-source tool, the Subnet Fragmentation Analyzer in aws-support-tools, if you’d rather not write your own.</p><p>What actually helps:</p><ul><li><strong>Reserve space for prefixes.</strong> A subnet CIDR reservation of type prefix sets aside a range that EC2 uses for prefix assignment, so the CNI allocates from there and other workloads can’t fragment it. AWS’s recommended approach is a new subnet with a prefix reservation, and nodes in that subnet running prefix mode.</li><li><strong>Or give pods their own subnets.</strong> If a subnet is used only by EKS pods in prefix mode, the reservation is optional. Custom networking with a secondary CIDR (for example from 100.64.0.0/10) is the usual way to get there when RFC 1918 space is tight.</li><li><strong>Check before you switch.</strong> Look for contiguous /28 blocks before enabling prefix mode on existing subnets. If a subnet is badly fragmented, AWS’s own advice is not to use prefix mode there.</li><li><strong>Mind the warm pool.</strong> WARM_PREFIX_TARGET=1 is the default and fine for most clusters, but it can hold up to 15 unused IPs per node. If addresses are tight, set WARM_IP_TARGET below 16 (it overrides the prefix target) so the CNI doesn’t keep a whole spare prefix.</li><li><strong>Don’t migrate nodes in place.</strong> Switching between secondary-IP and prefix mode means new node groups. Raise max-pods with the max-pods calculator and — use-max-pods=false, and keep instance types within a node group similar, because the group gets the lowest max-pods of any type in it.</li><li><strong>Remember the side effects.</strong> In prefix mode pods share the node’s security group, and a /26 is the smallest subnet that can hold even one usable /28.</li></ul><pre># Reserve a range in an existing subnet for /28 prefixes<br>aws ec2 create-subnet-cidr-reservation \<br>  --subnet-id subnet-0123456789abcdef0 \<br>  --cidr 10.0.32.0/20 \<br>  --reservation-type prefix</pre><h3>Cilium identities at scale</h3><p>Cilium enforces policy on security identities, not IPs. A pod’s identity comes from its identity-relevant labels, and every pod with the same set of those labels shares one identity. That stays cheap as long as labels describe the application. It gets expensive once they describe the individual pod.</p><p><strong>How it goes wrong.</strong> Labels that change per pod or per rollout, like commit or build hashes, timestamps, CI run IDs, or Spark and Argo job IDs, give every pod its own identity. Each new identity has to be allocated (a CiliumIdentity object in CRD mode) and pushed to every agent, which then recomputes policy for the endpoints that select it. At scale you see it as identity churn, pods waiting on policy before they get traffic, and extra load on the API server. Cilium’s scalability report puts the default limit at 16k security identities (raised with bpf-policy-map-max) and points to low label cardinality as what keeps scaling cheap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cY023TYpBl-VpPVHWXr1Ew.jpeg" /><figcaption><strong>Figure 4. </strong><em>One per-rollout label is enough to turn one identity per app into one identity per pod.</em></figcaption></figure><p><strong>How to spot it.</strong> Compare the number of identities with the number of workloads. If you have far more identities than Deployments, some label is leaking per-pod values.</p><pre># Identities vs workloads<br>kubectl get ciliumidentities --no-headers | wc -l<br>kubectl get deploy,sts,ds -A --no-headers | wc -l<br> <br># Which label sets produce identities<br>kubectl -n kube-system exec ds/cilium -- cilium-dbg identity list</pre><p><strong>How to fix it.</strong> Filter identity-relevant labels. By default Cilium treats every label as relevant except a built-in exclusion list (pod-template-hash, controller-uid, job-name and most io.kubernetes and k8s.io labels). Your own high-cardinality labels aren’t on that list. Exclude them with !, or switch to an allow-list of the labels your policies actually select on:</p><pre># Helm values: exclude per-pod labels<br>labels: &quot;!git-sha !build-id !rollout-hash&quot;<br> <br># Or an allow-list: only these labels count<br>labels: &quot;io\\.kubernetes\\.pod\\.namespace app\\.kubernetes\\.io/name app k8s-app&quot;</pre><p>A few things to know before you change it:</p><ul><li><strong>Allow-lists are strict.</strong> As soon as you add one inclusive pattern, every label that isn’t on the list is ignored. A policy that selects on a label you left out stops matching, and nothing tells you. Grep your CiliumNetworkPolicies and NetworkPolicies for selectors first.</li><li><strong>Helm appends.</strong> The Helm labels value is added to the defaults. If you want an exact list, use label-prefix-file.</li><li><strong>You have to restart.</strong> Existing identities don’t change on their own. Run kubectl -n kube-system rollout restart ds/cilium, and restart the operator too if it manages identities. It garbage-collects the old ones once nothing uses them.</li></ul><h3>An AMI update that broke S3 access</h3><p>We moved node groups to a newer EKS AMI, and pods on the new nodes started timing out against S3 through the VPC Gateway endpoint. The same pods on old nodes were fine. The culprit was strict reverse-path filtering (rp_filter=1) in the new AMI’s default sysctls, together with asymmetric routing for pods on secondary ENIs.</p><h3>What we saw</h3><ul><li>aws s3 ls and SDK calls hung from pods on the new nodes, while DNS for s3.&lt;region&gt;.amazonaws.com resolved fine.</li><li>hostNetwork pods and the node itself reached S3 without any trouble.</li><li>Only pods with an IP on a secondary ENI (eth1, eth2 and so on) were affected. Pods on the primary ENI worked.</li><li>Security groups and NACLs weren’t dropping anything. VPC Flow Logs showed the request ACCEPTed and the response coming back.</li></ul><h3>Why it happened</h3><p>A Gateway endpoint isn’t an interface in your subnet. Traffic reaches S3’s public prefix list through a route table entry. If the pod’s source IP isn’t masqueraded to the node’s primary IP, the reply comes back to the pod IP, so it arrives on the secondary ENI that owns that IP. In strict mode the kernel then checks the route back to the S3 address, finds the main table pointing out of eth0, sees the packet came in on eth1 and quietly drops it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mipCqhSjZUpfYtR6iGRoHw.jpeg" /><figcaption><strong>Figure 5. </strong><em>The request leaves through eth1 without SNAT, the reply comes back to eth1, and strict rp_filter drops it because the main-table route to S3 points at eth0.</em></figcaption></figure><ul><li>With VPC CNI this never shows up: aws-node sets rp_filter=2 on the primary interface and SNATs external traffic to eth0, so the path stays symmetric.</li><li>With Cilium in ENI mode, masquerading depends on ipv4NativeRoutingCIDR and egressMasqueradeInterfaces. If S3 traffic isn’t masqueraded, or new ENIs inherit net.ipv4.conf.default.rp_filter=1 from the AMI, the reply hits strict rp_filter and is gone.</li></ul><p><strong>How to confirm it</strong></p><pre># On the node<br>sysctl -a 2&gt;/dev/null | grep &#39;\.rp_filter&#39;<br>ip rule show<br>ip route get &lt;s3-ip&gt; from &lt;pod-ip&gt; iif lxc&lt;xxx&gt;<br> <br># Count martian / rp_filter drops<br>nstat -az TcpExtIPReversePathFilter<br>echo 1 &gt; /proc/sys/net/ipv4/conf/all/log_martians   # then dmesg<br> <br># Cilium side<br>hubble observe --pod &lt;ns&gt;/&lt;pod&gt; --to-ip &lt;s3-ip&gt;<br>cilium-dbg bpf nat list | grep &lt;pod-ip&gt;</pre><p>If TcpExtIPReversePathFilter keeps climbing while the pod retries, that’s your answer.</p><h3>The fix</h3><ol><li>Set loose or disabled rp_filter for all ENIs in node bootstrap (user data in the launch template, or a DaemonSet). Include default so new ENIs inherit it: net.ipv4.conf.all.rp_filter=0 and net.ipv4.conf.default.rp_filter=0 (or 2).</li><li>Or make the path symmetric again: masquerade non-VPC traffic to the primary interface. Keep ipv4NativeRoutingCIDR equal to the VPC CIDR, turn on enableIPv4Masquerade and check egressMasqueradeInterfaces.</li><li>Pin the AMI and test it. Treat every AMI bump as a networking change and run an S3 and endpoint smoke test from a pod on a secondary-ENI IP before you roll node groups.</li></ol><p>With VPC CNI, AWS keeps this class of bug away from you. With Cilium, whatever sysctl defaults an AMI ships go straight into your datapath.</p><h3>Overlay mode and webhooks</h3><p>In overlay mode the EKS control plane can’t reach pod IPs, so every admission or conversion webhook and every aggregated API (metrics-server, for example) has to run with hostNetwork: true. Those pods then share the node’s port space, and no two of them on the same node can use the same port. Plenty of community charts hardcode the webhook port (9443 is a favorite) or don’t support hostNetwork at all. On paper overlay saves IPs. On a cluster with a lot of operators it rarely works out.</p><p><strong>BOTH CNI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-t6Li46-Lg4ivmvIE1kn6g.png" /></figure><p><strong>CILIUM DURING MIGRATION</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GwbCG_LCOuquLN1MmhVJQ.png" /></figure><p><strong>CILIUM IN STEADY STATE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z5xc2ATExfvJLFQcKK2CcQ.png" /></figure><h3>Troubleshooting: VPC CNI vs Cilium</h3><p>With VPC CNI you’re debugging Linux networking plus AWS: iptables, routes, ENIs, security groups. With Cilium most of the answers sit in eBPF maps and Hubble, and iptables -L tells you next to nothing. You still walk the same layers in the same order. The tools are just different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yaITWGb0uraIYCV8ifhM8g.png" /></figure><h3>A workflow that works for both</h3><ol><li>Reproduce from a debug pod on the same node (nicolaka/netshoot) and from hostNetwork. If only the pod fails, it’s the CNI or routing. If both fail, look at security groups, NACLs, route tables and endpoints.</li><li>Check whether the pod IP sits on the primary or a secondary ENI. A surprising number of “random” failures split exactly along that line.</li><li>Capture on both sides: tcpdump -i lxc&lt;xxx&gt; (or the pod’s veth) and tcpdump -i eth1 or eth0. A SYN going out and a SYN-ACK arriving on the node, with nothing reaching the pod, points at the host: rp_filter, conntrack or BPF.</li><li>Read the drop reasons. Hubble for Cilium, nstat counters and iptables for VPC CNI.</li><li>Compare against a node on the previous AMI. Diff sysctl -a, the kernel version, ip rule and the Cilium or aws-node versions.</li></ol><p>In practice, Cilium is far better at explaining its own decisions, and Hubble drop reasons save a lot of time. The kernel’s decisions around it (rp_filter, martians, conntrack) still need classic Linux tooling.</p><h3>Migration checklist</h3><p>Steps 3 to 5 apply to ENI mode, where Cilium replaces VPC CNI. Steps 6 and 7 apply whenever you drop kube-proxy, chaining included.</p><ol><li><strong>Learn on chaining first.</strong> Run Cilium in chaining mode in a non-prod cluster to get used to Hubble and policies without touching IPAM.</li><li><strong>On new clusters, skip the default add-ons.</strong> Since June 2024 you can create an EKS cluster with bootstrapSelfManagedAddons=false (Terraform: bootstrap_self_managed_addons = false, eksctl: addonsConfig.disableDefaultAddons: true). EKS then won’t install aws-node, kube-proxy or CoreDNS. Before that, EKS always installed them as self-managed components, even if you never added the managed add-ons, so older clusters still need them removed by hand. For chaining, install the vpc-cni add-on yourself, then Cilium, then node groups.</li><li><strong>Use new node groups instead of converting nodes in place.</strong> Removing aws-node doesn’t clean the node. Its iptables rules (AWS-SNAT-CHAIN-*, AWS-CONNMARK-CHAIN-*) stay behind and keep affecting routing and filtering. Create a fresh node group for Cilium ENI mode and taint it with node.cilium.io/agent-not-ready=true:NoExecute until the agent is ready.</li><li><strong>Exclude aws-node from Cilium nodes rather than deleting it.</strong> Cilium’s EKS guide patches the aws-node DaemonSet with a nodeSelector for io.cilium/aws-node-enabled=true. After the patch, aws-node runs only on nodes with that label. Label your existing VPC CNI node groups first, or aws-node disappears from them too.</li><li><strong>If vpc-cni is a managed add-on, configure it through the add-on.</strong> An add-on update with conflict resolution set to OVERWRITE resets any kubectl patch to EKS defaults. Put the node affinity in the add-on’s configuration values instead.</li><li><strong>Prepare kube-proxy replacement before removing kube-proxy.</strong> Without kube-proxy, Cilium can’t reach the API server through the kubernetes ClusterIP. Set k8sServiceHost to your EKS API endpoint host and k8sServicePort to 443.</li><li><strong>Keep kube-proxy off Cilium nodes, don’t delete it cluster-wide.</strong> Deleting the kube-proxy DaemonSet also takes Service handling away from nodes that don’t run Cilium yet. During the migration, add node affinity so kube-proxy skips Cilium nodes, and only remove it once cilium status — wait is healthy everywhere.</li><li><strong>Bake sysctls into bootstrap.</strong> Set rp_filter for all and default, plus anything else the AMI might change.</li><li><strong>Run a smoke suite on every AMI bump.</strong> DNS, ClusterIP, NodePort and load balancers, the S3 Gateway endpoint, interface endpoints, cross-AZ pod-to-pod and internet egress, all from a pod on a secondary-ENI IP.</li><li><strong>Move workloads gradually.</strong> Shift them with node selectors, keep an eye on hubble observe — verdict DROPPED, then drain the old node groups.</li><li><strong>Clean up last.</strong> Once the last old node group is gone, delete whatever Cilium replaced (aws-node in ENI mode, kube-proxy if you use kube-proxy replacement) along with their EKS add-ons, not just the DaemonSets. If you keep any node that ran kube-proxy, clear its leftover rules with iptables-save | grep -v KUBE | iptables-restore, or just replace the node.</li></ol><h3>Further reading</h3><ul><li><a href="https://docs.aws.amazon.com/eks/latest/best-practices/networking.html">Amazon EKS Best Practices: Networking</a></li><li><a href="https://docs.aws.amazon.com/eks/latest/best-practices/prefix-mode-linux.html">Amazon EKS Best Practices: Prefix mode for Linux</a></li><li><a href="https://docs.aws.amazon.com/vpc/latest/userguide/subnet-cidr-reservation.html">Amazon VPC: Subnet CIDR reservations</a></li><li><a href="https://github.com/awslabs/aws-support-tools/tree/master/EKS/subnet-fragmentation">Subnet Fragmentation Analyzer (aws-support-tools)</a></li><li><a href="https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html">Amazon VPC CNI documentation</a></li><li><a href="https://docs.cilium.io/en/stable/installation/cni-chaining-aws-cni/">Cilium: AWS VPC CNI chaining</a></li><li><a href="https://docs.cilium.io/en/stable/network/concepts/ipam/eni/">Cilium ENI IPAM mode</a></li><li><a href="https://docs.cilium.io/en/stable/installation/k8s-install-helm/">Cilium installation with Helm</a></li><li><a href="https://docs.cilium.io/en/stable/operations/performance/scalability/identity-relevant-labels/">Cilium: Limiting identity-relevant labels</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f978787a9d29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FinOps on AWS: Why Tagging Isn’t Red Tape, but Money]]></title>
            <link>https://medium.com/@stas.kolenkin/finops-on-aws-why-tagging-isnt-red-tape-but-money-bcb56e1628b6?source=rss-defed876190f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcb56e1628b6</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[cloud-finops]]></category>
            <dc:creator><![CDATA[Stas Kolenkin]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 12:24:09 GMT</pubDate>
            <atom:updated>2026-11-11T12:24:09.228Z</atom:updated>
            <content:encoded><![CDATA[<p>In most companies, the conversation about AWS tags starts the same way: architects and DevOps engineers propose a unified resource-tagging policy, and development teams see it as yet another bureaucratic requirement. At first glance, a few extra fields like Environment, Project or Owner do look like extra work that adds nothing to the product.</p><p>In reality, poor tagging is one of the main reasons cloud spending grows out of control. If a company does not know who created a resource, which project it serves, or whether it is still needed, it cannot manage its budget effectively.</p><p>That is why FinOps treats tagging not as a technical formality but as the foundation of financial transparency in cloud infrastructure.</p><h3>The Problem: There Is a Bill, but No Owner</h3><p>Imagine a company spending $100,000 per month on AWS. The CFO sees the total bill broken down by service:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qq9ZH0oiHcKCECJ6YasxEg.png" /></figure><p>But nobody can answer simple questions:</p><ul><li>Which team spent the most?</li><li>How much does a specific product cost to run?</li><li>Which resources belong to a project that has already been closed?</li><li>Why did costs grow by 20% last month?</li></ul><p><strong>Without tags, AWS sees only resources. The business sees only the invoice. Nobody sees the connection between them.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OchbGXEgIkHmo9Z-UWrQgA.jpeg" /><figcaption><em>Figure 1. AWS Billing Dashboard: total spend with no ownership breakdown</em></figcaption></figure><h3>What Are AWS Tags?</h3><p>Tags are key–value metadata pairs that can be attached to most AWS resources — EC2 instances, EBS volumes, S3 buckets, RDS databases, Lambda functions, VPCs and more — as well as to AWS accounts and organizational units (OUs) in AWS Organizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fn8H1sbDBiMrCyggKwNLA.jpeg" /><figcaption><em>Figure 2. A tag is a key/value pair attached to a resource</em></figcaption></figure><p>Basic rules worth knowing before you design a policy:</p><ul><li>up to 50 user-defined tags per resource;</li><li>key up to 128 characters, value up to 256 characters (UTF-8);</li><li>keys and values are case-sensitive: Environment and environment are two different tags;</li><li>the aws: prefix is reserved for tags generated by AWS (e.g. aws:createdBy, aws:cloudformation:stack-name);</li><li>tags are not encrypted and are visible in billing and reports — never store passwords, tokens or personal data in them.</li></ul><p>Below is the same tag set used throughout this article, expressed as code. Documentation, policies and IaC templates should all use identical keys and the same value format.</p><p><strong>Terraform: default tags for every resource the provider creates</strong></p><pre>provider &quot;aws&quot; {<br>  region = &quot;eu-central-1&quot;<br> <br>  default_tags {<br>    tags = {<br>      Project        = &quot;payments&quot;<br>      CostCenter     = &quot;cc-1042&quot;<br>      Environment    = &quot;prod&quot;<br>      Owner          = &quot;team-payments@company.com&quot;<br>      ManagedBy      = &quot;terraform&quot;<br>    }<br>  }<br>}</pre><p><strong>AWS CLI: tagging an existing resource</strong></p><pre>aws ec2 create-tags \<br>  --resources i-0a1b2c3d4e5f67890 \<br>  --tags Key=Project,Value=payments \<br>         Key=CostCenter,Value=cc-1042 \<br>         Key=Environment,Value=prod \<br>         Key=Owner,Value=team-payments@company.com \<br>         Key=ManagedBy,Value=manual</pre><p><strong>Technically, tags are just metadata. Financially, they are the basis for analysing and allocating cost.</strong></p><h3>Cost Allocation Tags: When AWS Starts Counting Properly</h3><p>A tag on a resource does not automatically show up in financial reports. For AWS to group costs by a tag, the tag must be activated as a <strong>Cost Allocation Tag</strong> in the Billing and Cost Management console. This is done in the organization’s management (payer) account.</p><ul><li><strong>User-defined tags</strong> — your own keys (Project, CostCenter, Environment, etc.).</li><li><strong>AWS-generated tags</strong> — tags created by AWS, such as aws:createdBy (who created the resource). These must be activated too; aws:createdBy fills in only for supported services and is not a retroactive source of owners.</li><li>A new tag key appears in the activation list within roughly 24 hours after it is first applied to a resource.</li><li>AWS Cost Explorer refreshes cost data at least once every 24 hours. AWS Cost and Usage Reports (CUR) can show costs at hourly granularity, but AWS updates the report in Amazon S3 one to three times a day. The first CUR delivery can take up to 24 hours after you create the report, and changes may take time to appear in either tool.</li></ul><p>Once activated, costs can be grouped and filtered by tag in:</p><ul><li>AWS Cost Explorer;</li><li>AWS Budgets;</li><li>AWS Cost and Usage Report (CUR 2.0) / AWS Data Exports;<br>The backfill bullet is now the last one in that list, right after the bullet about how often Cost Explorer and CUR refresh. The updated v3 is attached.</li><li>Amazon QuickSight and the Cloud Intelligence Dashboards (CUDOS, KPI, SCAD);</li><li>third-party FinOps platforms.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AVU1f9W1uY7Y_uPvz8nz6w.jpeg" /><figcaption><em>Figure 3. Cost Allocation Tags in action: from tag to cost breakdown</em></figcaption></figure><p>The same $100,000 bill, now grouped by the Project tag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzRpui4aFel72rNPWhKyew.png" /></figure><p>Now it is clear which business area drives spending — and, just as importantly, that 20% of the budget cannot be explained by anyone. That share is where optimization should start.</p><h3>From Tags to Unit Cost: Linking Spend to Business Metrics</h3><p>A cost breakdown by tag still does not tell you whether the spend is rational. $25,000 a month for Project=Payments could be cheap if the business processed ten times more payments than last quarter, or it could be a sign of performance degradation if volume stayed flat. To answer that, tags must link infrastructure cost to the business drivers behind it, so you can track <strong>unit cost</strong>:</p><ul><li><strong>Cost per transaction</strong> = monthly cost of Project=Payments / number of successful payments;</li><li><strong>Cost per active user</strong> = cost of a product (Project or Product tag) / monthly active users;</li><li><strong>Cost per API request</strong> = cost of a service (Service tag) / number of requests from API Gateway, ALB or application metrics.</li></ul><p>For this to work, tag values must match the dimensions used in business and observability data, so CUR or Cost Explorer exports can be joined with CloudWatch, Prometheus or BI data on a shared key. Track the unit cost trend rather than absolute spend: if total cost grows while cost per transaction falls, the platform is scaling efficiently; if unit cost itself grows, look for inefficient queries, over-provisioned resources or a regression in a recent release.</p><h3>The Most Expensive Tag Is the Missing One</h3><p>In practice, the largest waste usually comes from resources without an owner. Typical examples:</p><ul><li>test EC2 instances that were never stopped;</li><li>EBS volumes left behind after instances were terminated (unattached volumes);</li><li>old snapshots and AMIs;</li><li>temporary Kubernetes clusters and node groups;</li><li>idle Elastic IPs, NAT Gateways and load balancers;</li><li>S3 buckets from completed projects.</li></ul><p>After a few months, nobody remembers why these resources exist. When a resource carries a tag such as:</p><pre>Owner = team-payments@company.com</pre><p>finding the responsible person takes minutes. Without the tag, an investigation begins.</p><p>Tip: use a team mailbox or alias (team-payments@company.com) as the owner value rather than an individual’s name. People change roles and leave; teams and services remain. It also keeps personal data out of metadata that everyone with billing access can see.</p><p>Keep in mind that some costs cannot be tagged at all: AWS Support, taxes, parts of Data Transfer, Savings Plans and Reserved Instance purchases. For these, use <strong>AWS Cost Categories</strong> and <strong>split charges</strong> — rules that distribute shared costs across teams proportionally or by fixed percentages.</p><h3>Showback and Chargeback</h3><p>One of the key FinOps practices is allocating costs between teams. There are two common models.</p><h3>Showback</h3><p>Teams see their costs, but the money is not actually charged to their budget. The goal is transparency and awareness of what their decisions cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mCwyFlo6mg13VSXLY1Itqg.png" /></figure><h3>Chargeback</h3><p>Costs are actually charged to a specific department’s or project’s budget — usually via a CostCenter tag that matches the cost-center code in the finance system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kF5OpAnGFfSKFCsDmaZhwg.png" /></figure><p>Companies usually start with showback and move to chargeback once tag coverage is consistently above 90–95% and teams trust the numbers.</p><p><strong>Without tagging, neither model is possible.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhQyrzO24_amfmBxtKfa8Q.jpeg" /><figcaption><em>Figure 4. Showback and Chargeback: two cost allocation models</em></figcaption></figure><h3>Kubernetes and the Shared Infrastructure Problem</h3><p>Things get more complicated with Amazon EKS. A single cluster can serve dozens of teams:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kRfzV_2DL3OcDIXgZCkZwg.jpeg" /><figcaption><em>Figure 5. A shared EKS cluster: teams in separate namespaces, shared cluster resources</em></figcaption></figure><p>AWS sees one bill for EC2 nodes, EBS, load balancers and NAT Gateways, but does not know which team or service caused the cost. To understand the real cost per team you need additional mechanisms:</p><ul><li><strong>Split Cost Allocation Data for Amazon EKS</strong> — splits EC2 node cost between pods based on reserved CPU and memory. Enabled in the Billing and Cost Management console; requires CUR 2.0 / Data Exports.</li><li><strong>Kubernetes labels as cost allocation tags</strong> — since October 2025, Split Cost Allocation Data can import up to 50 custom labels per pod (e.g. team, cost-center, environment), which appear in CUR once activated.</li><li><strong>SCAD — Containers Cost Allocation Dashboard</strong> (part of the Cloud Intelligence Dashboards) — visualizes this data in QuickSight. It does not work without split cost allocation data enabled and labels/tags correctly propagated.</li><li><strong>Kubecost / OpenCost</strong> — in-cluster cost allocation by namespace, deployment or label.</li><li><strong>AWS Cost Categories</strong> — for distributing shared cluster costs (control plane, NAT, monitoring).</li></ul><p>A separate trap is <strong>tag propagation</strong>. A tag set on the cluster, an Auto Scaling Group or the Terraform provider does not always reach dynamically created EC2 nodes, EBS volumes and load balancers. Check:</p><ul><li>Auto Scaling Groups — PropagateAtLaunch = true for every tag;</li><li>Launch Templates — TagSpecifications for both instance and volume;</li><li>Karpenter — the tags block in EC2NodeClass;</li><li>EKS managed node groups — tags on the launch template, not only on the node group;</li><li>Amazon ECS — propagateTags = SERVICE or TASK_DEFINITION;</li><li>AWS Load Balancer Controller / EBS CSI driver — default tag settings in the controller configuration.</li></ul><p>Otherwise, platform costs become a “shared problem” that nobody can allocate.</p><p><strong>Important:</strong> cost allocation in Amazon EKS is a large topic in its own right that deserves a deep dive — in this article we only outline it. It raises many non-trivial questions: should node cost be split by requests or by actual CPU and memory usage; who pays for the cluster’s idle capacity; how to account for Spot instances, Savings Plans and Fargate; and how to allocate shared components such as the control plane, NAT Gateways, monitoring, ingress controllers and system DaemonSets. The answers directly determine how fair and understandable the numbers in reports will be for teams.</p><p>We will therefore cover EKS cost allocation in a separate article — setting up Split Cost Allocation Data, a Kubernetes labeling strategy, a comparison of Kubecost / OpenCost / SCAD, and models for allocating shared costs. To get started, one basic rule is enough: every namespace and workload should carry the same mandatory labels (Project, CostCenter, Environment, Owner) as the rest of your AWS resources.</p><h3>Tags as an Automation Mechanism</h3><p>Modern companies use tags not only for reporting but also as triggers for automated actions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xb7FaviF0LH7I1ff7z_Gow.png" /></figure><p>In this way, tags can drive automation for:</p><ul><li>cost optimization (FinOps) — non-prod schedules, rightsizing;</li><li>automatic scaling and shutdown of resources;</li><li>backup and disaster recovery;</li><li>security policies (attribute-based access control, ABAC);</li><li>resource classification and compliance;</li><li>automatic cleanup of temporary infrastructure.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b1vI3wvWtQJZ9OQMHq1rZg.jpeg" /><figcaption><em>Figure 6. How tags trigger automation</em></figcaption></figure><p>A simple example: shutting down dev environments at night and on weekends (12 h × 5 days + 48 h of weekend ≈ 108 of 168 hours per week) cuts on-demand compute cost in those environments by roughly 60–65%[1] . Without an Environment tag this automation is impossible — the script simply doesn’t know what is safe to stop. Be careful with Savings Plans and Reserved Instances, though: a commitment is billed whether the instances run or not, so if dev compute is covered by one, the shutdown only leaves it unused instead of lowering the bill. Size commitments to the always-on baseline and keep scheduled non-prod workloads on on-demand (or Spot).</p><h3>Where to Start: a Minimum Tag Set</h3><p>You don’t need twenty tags on day one. Five mandatory tags are enough to start, each answering a concrete business question. Together they already let you run showback, find resource owners and automate non-prod shutdown. Keep in mind that shutdown doesn’t free everything: storage (EBS volumes, snapshots) keeps billing.</p><p>Stopping instances only saves on compute: EBS volumes and snapshots keep billing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOhy1xDv85SE5FW0vw3mAA.png" /></figure><p>Once the base set consistently covers more than 90% of spend, extend the model: add BU, Type, Name, CI, ServiceOwner, DataClassification and so on.</p><h3>Example of an Extended Tagging Policy (anonymized)</h3><p>Below is an anonymized example of a corporate tagging policy applied at the AWS account and resource level. It contains the base set and extends it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z1mPtHu1FTziepqmCak9YQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDblFxXxb7AGNhzhsOEl-w.png" /></figure><p>Columns: <strong>Info source</strong> — who provides the value; <strong>Responsible role</strong> — who is responsible for applying it; <strong>Type</strong> — purpose of the tag: CostAllocation (activated as a cost allocation tag) or Info (operational information). All contact tags — BusinessOwner, Owner, ProjectManager and ServiceOwner — hold team or role mailboxes, never personal addresses, in line with the tip above about keeping personal data out of tags.</p><h3>How to Enforce the Tagging Policy</h3><p>The biggest mistake is relying on human discipline alone. As infrastructure grows, keeping standards consistent by hand becomes impossible, so the policy must be checked and applied automatically — at several layers at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fo2tPgKuQ4lLFnwKSUV4EQ.png" /></figure><p>Example IAM policy that allows launching EC2 instances only when their Owner tag matches the caller’s team alias (taken from the Owner tag on the caller’s IAM role):</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;RunInstancesWithTeamOwner&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: &quot;ec2:RunInstances&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:ec2:*:&lt;AccountNumber&gt;:instance/*&quot;,<br>      &quot;Condition&quot;: {<br>        &quot;StringEquals&quot;: {<br>          &quot;aws:RequestTag/Owner&quot;: &quot;${aws:PrincipalTag/Owner}&quot;<br>        }<br>      }<br>    },<br>    {<br>      &quot;Sid&quot;: &quot;RunInstancesOtherResources&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: &quot;ec2:RunInstances&quot;,<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:ec2:*::image/*&quot;,<br>        &quot;arn:aws:ec2:*:&lt;AccountNumber&gt;:subnet/*&quot;,<br>        &quot;arn:aws:ec2:*:&lt;AccountNumber&gt;:network-interface/*&quot;,<br>        &quot;arn:aws:ec2:*:&lt;AccountNumber&gt;:security-group/*&quot;,<br>        &quot;arn:aws:ec2:*:&lt;AccountNumber&gt;:volume/*&quot;<br>      ]<br>    },<br>    {<br>      &quot;Sid&quot;: &quot;TagOnLaunchOnly&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Action&quot;: &quot;ec2:CreateTags&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:ec2:*:&lt;AccountNumber&gt;:*/*&quot;,<br>      &quot;Condition&quot;: {<br>        &quot;StringEquals&quot;: { &quot;ec2:CreateAction&quot;: &quot;RunInstances&quot; }<br>      }<br>    }<br>  ]<br>}</pre><p>RunInstances also touches the AMI, subnet, network interface, security group and volume, so they are allowed in a separate statement without the tag condition. The last statement allows tagging only as part of the launch, so the Owner tag cannot be changed afterwards with this policy.</p><p>Example SCP that denies launching EC2 instances without the Project and CostCenter tags:</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;DenyEC2WithoutProject&quot;,<br>      &quot;Effect&quot;: &quot;Deny&quot;,<br>      &quot;Action&quot;: &quot;ec2:RunInstances&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:ec2:*:*:instance/*&quot;,<br>      &quot;Condition&quot;: { &quot;Null&quot;: { &quot;aws:RequestTag/Project&quot;: &quot;true&quot; } }<br>    },<br>    {<br>      &quot;Sid&quot;: &quot;DenyEC2WithoutCostCenter&quot;,<br>      &quot;Effect&quot;: &quot;Deny&quot;,<br>      &quot;Action&quot;: &quot;ec2:RunInstances&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:ec2:*:*:instance/*&quot;,<br>      &quot;Condition&quot;: { &quot;Null&quot;: { &quot;aws:RequestTag/CostCenter&quot;: &quot;true&quot; } }<br>    }<br>  ]<br>}</pre><p>Note: each required tag is checked in its own statement. If you list several keys inside one Null condition, they are combined with a logical AND, and the deny fires only when all of the tags are missing at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xsXCQ1AVxPUo47hf0wimWA.jpeg" /><figcaption><em>Figure 7. Layers of automated tagging-policy enforcement</em></figcaption></figure><h3>How to Measure Tagging Quality</h3><p>Approving a tagging policy is not enough — it has to be measured. The FinOps Foundation recommends tracking a few simple metrics:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nsB2ovCxLzi921Bj3jb4tA.png" /></figure><p>Measure coverage by <strong>spend</strong>, not just by resource count: a thousand tagged Lambda functions matter less than one untagged database cluster.</p><p>To find the gaps, use <strong>AWS Resource Explorer</strong>. The query <strong>tag:none</strong> returns resources with no user-defined tags at all, and <strong>-tag.key:Project</strong> returns resources missing a specific key (the view must include tags). With multi-account search enabled through AWS Organizations, a single view covers every account, and the results can be fixed in bulk with Tag Editor.</p><h3>Common Mistakes</h3><ul><li><strong>Inconsistent case and format:</strong> env, Env, Environment or prod, Prod, production are different tags and values to billing.</li><li><strong>Free text instead of an allowed-values list:</strong> pin allowed values in Tag Policies.</li><li><strong>Tags on resources but not activated in Billing:</strong> without Cost Allocation Tag activation, nothing appears in reports.</li><li><strong>Personal data and secrets in tags:</strong> tags are widely visible and not encrypted.</li><li><strong>Tagging only at creation time:</strong> without continuous checks (AWS Config), tag quality degrades.</li><li><strong>Ignoring propagation:</strong> tags exist on the ASG or in Terraform but are missing on nodes, volumes and load balancers.</li><li><strong>Too many mandatory tags:</strong> the more required fields, the more often they are filled in mechanically. Five good tags beat twenty random ones.</li></ul><h3>Rollout Plan: 30 / 60 / 90 Days</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NhSShRiP6dt2cR4aVLScKg.png" /></figure><h3>Tagging as the Foundation of FinOps</h3><p>Many companies start their FinOps journey with expensive analytics platforms and quickly hit the same wall: they have data, but no context. Even the best cost-optimization tool cannot answer “Who is spending this money?” if resources are not tagged.</p><p>That is why mature FinOps practices start not with dashboards or automation, but with a sound tagging model.</p><h3>Conclusion</h3><p>AWS tags are not bureaucracy and not an extra burden on engineers. They are the mechanism that connects technical infrastructure to the business. Without tags, a company sees only the total AWS bill. With tags, it can see:</p><ul><li>who creates the cost;</li><li>which products generate it;</li><li>where the inefficiencies are;</li><li>what can be optimized and automated.</li></ul><p><strong>Good tagging isn’t about a tidy AWS console. It’s about budget control, team accountability and decisions based on data rather than assumptions.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcb56e1628b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Drains Money or How to Build a FinOps Culture]]></title>
            <link>https://medium.com/@stas.kolenkin/what-drains-money-or-how-to-build-a-finops-culture-23962ecdf32e?source=rss-defed876190f------2</link>
            <guid isPermaLink="false">https://medium.com/p/23962ecdf32e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-finops]]></category>
            <dc:creator><![CDATA[Stas Kolenkin]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 14:33:20 GMT</pubDate>
            <atom:updated>2026-11-05T14:33:20.858Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Drains Money or How to Build a FinOps Culture</h3><h3>Introduction</h3><p>When cloud computing first became mainstream, it promised businesses a revolutionary model: <em>pay only for what you use</em>. In reality, however, many organizations discover a different story. Monthly Amazon Web Services (AWS) invoices often resemble complex puzzles, where actual costs consistently exceed expectations.</p><p>The problem is rarely the price of AWS services themselves. Instead, it is the hidden accumulation of unnecessary resources and inefficient architectures. The cloud makes provisioning infrastructure incredibly easy, but that convenience often comes with unintended consequences. Forgotten test environments, inefficient network paths, and terabytes of old snapshots can quietly drain budgets month after month.</p><p>Put simply, an AWS bill is the sum of every resource an architecture keeps running, multiplied by how long it runs. Decisions made during migration or infrastructure planning determine how many resources are needed, how big they are, how they are connected and how long they live. When those decisions are not optimal, the workload still works, but it uses far more AWS resources than it should, and every extra resource shows up on the invoice.</p><p>According to Flexera’s 2026 State of the Cloud Report, organizations estimate that about <strong>29% of their cloud spending</strong> is wasted on underutilized or improperly managed resources — the first increase in five years, driven in part by AI workloads. These funds could otherwise be invested in product innovation, business growth, or operational improvements.</p><p>In this article, we’ll explore some of the most common hidden costs in AWS, trace them back to the architectural decisions that cause them, and discuss how a FinOps mindset can help organizations regain control over cloud spending.</p><p><em>Note: all prices in this article are AWS list prices for US East (N. Virginia) as of November 2026. Rates differ by region and change over time, so check the official AWS pricing pages before budgeting.</em></p><h3>Storage Cost Pitfalls</h3><h3>Unattached EBS Volumes</h3><p>When an EC2 instance is terminated, its root volume is deleted by default, but additional EBS volumes are not always removed automatically (the DeleteOnTermination flag is off by default for them). These volumes remain in the AWS account, often sitting in an available state.</p><p>Even though they are no longer serving any workload, AWS continues to charge for the allocated storage capacity on a per-GB-month basis (about $0.08 per GB-month for gp3 in us-east-1), regardless of whether the volume is used.</p><p>Over time, dozens or hundreds of orphaned volumes can accumulate and generate significant recurring costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*B75WGDqHShewwIDYpatVrA.jpeg" /></figure><h3>Snapshot Sprawl</h3><p>EBS snapshots are incremental and relatively inexpensive individually (about $0.05 per GB-month in the Standard tier), which makes them particularly dangerous from a cost perspective.</p><p>Without properly configured retention policies (for example, Amazon Data Lifecycle Manager or AWS Backup), daily backups can accumulate for years. What starts as a few dollars per month can quietly become hundreds or even thousands of dollars in unnecessary storage charges.</p><h3>Example</h3><p>A customer recently approached us regarding unexpectedly high AWS costs. During the review, we discovered that thousands of outdated snapshots had accumulated over several years. Although each snapshot seemed inexpensive, together they were costing several thousand dollars every month.</p><h3>S3 Versioning and Hidden Storage Growth</h3><p>S3 Versioning is an excellent protection mechanism, but it can significantly increase storage costs when not properly managed.</p><p>Every time an object is overwritten, Amazon S3 creates a new version rather than replacing the original file. For frequently updated files such as logs, backups, or database exports, storage consumption can grow very quickly.</p><p>Even deleting an object does not immediately free storage space. AWS simply creates a <strong>Delete Marker</strong> while retaining all previous versions.</p><p>As a result, organizations often continue paying for terabytes of data they believe have already been deleted.</p><p>Without Lifecycle Rules to expire or archive noncurrent versions (and to clean up expired delete markers and incomplete multipart uploads), storage costs can increase dramatically within a matter of months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yr2J2Q1EuxXG21F9YLk2bg.jpeg" /></figure><h3>Using the Wrong Storage Tier</h3><p>Many companies store rarely accessed data in the Standard storage class simply because it was the default choice.</p><p>This is one of the easiest ways to waste money.</p><p>For archived backups, compliance reports, or historical datasets that may only be accessed once per year, cheaper storage classes provide substantial savings. From most to least expensive per GB stored, the main options are:</p><ul><li>S3 Standard</li><li>S3 Intelligent-Tiering</li><li>S3 Standard-IA</li><li>S3 Glacier Instant Retrieval / Flexible Retrieval</li><li>S3 Glacier Deep Archive</li></ul><p>Migrating archival workloads to Glacier Deep Archive can reduce storage costs by roughly 95% compared with S3 Standard (about $0.001 versus $0.023 per GB-month) while maintaining the durability AWS is known for. The trade-offs are retrieval times measured in hours, retrieval fees, and a 180-day minimum storage duration, so it suits data that is rarely, if ever, read.</p><h3>The Fine Print of Glacier Deep Archive</h3><p>The low storage price is only half of the Deep Archive bill. The other half appears when data is read back or removed too early, and both are easy to miss when a lifecycle rule is written in a hurry:</p><ul><li><strong>Retrieval fees and waiting time.</strong> Objects cannot be read directly; they must first be restored. A Standard restore takes up to 12 hours and costs about $0.02 per GB, a Bulk restore takes up to 48 hours and costs about $0.0025 per GB, and each restore request is billed on top. Restoring 50 TB with Standard retrieval costs roughly $1,000 in retrieval fees alone, which equals about 20 months of storing the same 50 TB in Deep Archive.</li><li><strong>The restored copy is billed too.</strong> A restore creates a temporary copy that is charged at S3 Standard rates for as many days as you keep it available, so the restore period should be as short as the job needs.</li><li><strong>A 180-day minimum storage charge.</strong> Every object moved to Deep Archive is billed for at least 180 days. If it is deleted, overwritten or transitioned to another class earlier, AWS charges a prorated early deletion fee for the remaining days. An object deleted after 30 days is still billed for 150 more days of storage. Glacier Flexible Retrieval has the same rule with a 90-day minimum, and Glacier Instant Retrieval with 90 days.</li><li><strong>Small objects are a poor fit.</strong> S3 adds about 40 KB of metadata to every archived object (32 KB billed at the Deep Archive rate and 8 KB at the Standard rate), and lifecycle transitions are charged per 1,000 objects. Millions of tiny files can cost more to move and keep in Deep Archive than they save, so bundle them into larger archives first.</li></ul><p>Rule of thumb: move data to Deep Archive only when you are confident it will stay there for at least six months and will almost never be read. Data that may be needed for an audit next quarter or for regular restores belongs in Glacier Instant Retrieval or Standard-IA.</p><h3>Missing Intelligent-Tiering Opportunities</h3><p>Without S3 Intelligent-Tiering, teams must manually analyze access patterns and move data between storage classes.</p><p>Intelligent-Tiering automates this process by moving objects between hot and cold storage tiers based on actual access patterns.</p><p>AWS cites savings of up to 40% for data that has not been accessed for 30 days or more, and more once the optional archive tiers are enabled — all without application changes. Keep in mind that Intelligent-Tiering adds a small per-object monitoring fee, and objects smaller than 128 KB are not auto-tiered, so it is not ideal for buckets full of tiny files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SukVRm5d1op9ysyIvcklcg.jpeg" /></figure><h3>Data Transfer and Networking Costs</h3><p>Many AWS users focus heavily on EC2 and RDS costs while overlooking networking expenses.</p><p>Unfortunately, networking is often where the largest surprises appear.</p><h3>Data Egress Charges</h3><p>AWS does not charge for transferring data <strong>into</strong> the cloud.</p><p>This strategy encourages organizations to move large volumes of data into AWS.</p><p>However, once the data is inside AWS, moving it out becomes expensive: in us-east-1, internet egress costs roughly $0.09 per GB for the first 10 TB per month, after a small monthly free allowance.</p><p>AWS charges for:</p><ul><li>Internet egress traffic</li><li>Cross-region traffic</li><li>Traffic through NAT Gateways</li><li>Certain service-to-service transfers</li></ul><p>For organizations considering migration away from AWS, data transfer costs can be a significant barrier. Since March 2024, AWS offers free data transfer out for customers leaving AWS entirely, but it has to be requested through AWS Support and completed within a limited window, so it does not help with ongoing multi-cloud or hybrid traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*Y8tFxcR1QzDwDDUJ7DVnmg.jpeg" /></figure><h3>Cross-Availability Zone Traffic</h3><p>Deploying workloads across multiple Availability Zones (AZs) is considered a best practice for high availability.</p><p>However, traffic between AZs is not free: in most regions AWS charges about $0.01 per GB in each direction ($0.02 per GB round trip).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*wrq5JhnTpHZsJM5jtmO44w.jpeg" /></figure><p>Consider the following example:</p><p>Every request crossing the AZ boundary incurs a charge.</p><p>In large microservice environments, these costs can become substantial.</p><p>Many teams incorrectly assume that all traffic inside a VPC is free.</p><p>In reality:</p><ul><li>Traffic within the same AZ over private IP addresses is free.</li><li>Traffic crossing AZ boundaries is charged.</li></ul><p>Without careful architecture decisions, internal networking costs can grow into a noticeable share of the bill, in chatty microservice environments sometimes rivaling compute.</p><h3>NAT Gateway Costs</h3><p>NAT Gateway is one of the most common hidden cost drivers in AWS.</p><p>Unlike many networking services, NAT Gateway charges:</p><ul><li>An hourly fee (about $0.045 per hour, or ≈ $33 per month per gateway in us-east-1)</li><li>A per-GB processing fee (about $0.045 per GB in us-east-1)</li></ul><p>This means traffic through a NAT Gateway is effectively billed more than once:</p><ol><li>For the NAT Gateway itself and every GB it processes</li><li>For the standard data transfer charges on top of that, including internet egress and any cross-AZ hops</li></ol><p>A common mistake is routing traffic to AWS services such as S3 and DynamoDB through NAT Gateways.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*FJuQo7dxCTD_3RISKgp2Zw.jpeg" /></figure><p>Instead, organizations should often use:</p><ul><li>Gateway VPC Endpoints (S3 and DynamoDB), which carry no hourly or data processing charge</li><li>Interface Endpoints (PrivateLink) for other AWS services — these have their own hourly and per-GB fees, so compare costs before rolling them out everywhere</li></ul><p>These options can reduce networking costs dramatically, especially for S3-heavy workloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*PKHY5Ie9mOhtOFzu6hWsAg.jpeg" /></figure><h3>Public IPv4 Charges</h3><p>Since February 2024, AWS charges for all public IPv4 addresses, including those attached to running workloads.</p><p>Previously, charges applied mainly to idle Elastic IPs that were not attached to a running instance.</p><p>Today:</p><p><strong>1 Public IPv4 Address ≈ $3.65 per month</strong></p><p>$0.005 × 730 hours ≈ $3.65/month ($3.72 in a 31-day month). Source: <a href="https://aws.amazon.com/vpc/pricing/">AWS VPC pricing</a></p><p>For organizations operating hundreds of load balancers, NAT Gateways, and public-facing services, these charges can quickly add up. The Public IP Insights feature in Amazon VPC IP Address Manager (IPAM) helps find and track them.</p><p>This change is part of AWS’s broader effort to encourage adoption of:</p><ul><li>IPv6</li><li>Private networking architectures</li></ul><p>Companies that continue assigning public IPs to every server now pay a measurable premium for that architectural choice.</p><h3>Database, Platform and AI Cost Pitfalls</h3><h3>Extended Support Fees for End-of-Life Engine Versions</h3><p>A workload that “still works” can cost far more simply because nobody upgraded it. When a database engine or a Kubernetes version passes its end of standard support date, AWS automatically enrolls it in Extended Support and bills a premium:</p><ul><li><strong>Amazon RDS / Aurora:</strong> roughly $0.10 per vCPU-hour in years 1–2, rising to about $0.20 per vCPU-hour in year 3, applied even to Multi-AZ standby instances. For a 16 vCPU Single-AZ instance, that is on the order of $14K per year on top of the normal bill (<a href="https://aws.amazon.com/rds/pricing/">RDS Extended Support pricing</a>).</li><li><strong>Amazon EKS:</strong> the control plane jumps from $0.10 to $0.60 per hour per cluster (6×) once the Kubernetes version enters extended support (<a href="https://aws.amazon.com/eks/pricing/">EKS pricing</a>).</li></ul><p>Track end-of-support dates for database engines and Kubernetes versions the same way you track certificate expirations, and schedule upgrades before the deadline rather than after the first surcharge appears.</p><h3>Paying Per I/O When You Do Not Have To (Aurora I/O-Optimized)</h3><p>Aurora Standard bills storage at about $0.10 per GB-month plus $0.20 per million I/O requests. For read- and write-heavy workloads, the I/O line can quietly grow larger than the compute line, and it is easy to miss because it scales with traffic rather than with anything provisioned.</p><p>Aurora I/O-Optimized removes I/O charges entirely in exchange for higher instance prices (about 30% more) and higher storage prices (about $0.225 per GB-month). AWS’s rule of thumb is that once I/O exceeds roughly 25% of total Aurora spend, I/O-Optimized is usually cheaper, with savings of up to 40% for I/O-intensive workloads. An existing cluster can be switched without downtime, and switched back to Standard once every 30 days, so it is a low-risk change to test.</p><h3>Tracking and Controlling AI Costs</h3><p>Generative AI is where the newest hidden costs are appearing, and it breaks some of the assumptions the rest of this article relies on. A traditional resource has a size and an hourly rate you can read off a console. An AI model bills per token consumed, with separate input and output rates, so the cost scales with how much text each request sends and receives rather than with anything you provisioned up front.</p><p>Two problems follow from this. The first is attribution: by default, Amazon Bedrock spend arrives as one aggregated line, so nobody can say which application, team, or tenant caused it. The second is the AI version of the forgotten resource: Provisioned Throughput, which reserves dedicated model capacity at a fixed hourly price and is billed whether the model is called or not. A proof of concept that bought Provisioned Throughput and was never torn down is the generative-AI equivalent of an orphaned EBS volume, except the hourly rate is far higher.</p><h3>Making AI Spend Visible</h3><ul><li><strong>Application inference profiles with cost allocation tags.</strong> You wrap a Bedrock model in a profile, attach tags such as team, application, or environment, and call the profile ARN instead of the raw model ID. The tags then flow onto the billing record for every request, and once activated as cost allocation tags, Cost Explorer and the Cost and Usage Report break Bedrock spend down by them. The profiles themselves cost nothing extra. This is the recommended starting point for most teams.</li><li><strong>Model invocation logging and CloudWatch token metrics.</strong> The native tagging methods produce aggregated dollars, not a per-request row. For per-request or per-user granularity, enable Bedrock model invocation logging and watch the InputTokenCount and OutputTokenCount metrics in CloudWatch, which is where the per-prompt view actually lives.</li></ul><h3>Controlling AI Spend</h3><ul><li><strong>Match the model to the task.</strong> The most capable model is rarely needed for every call. Routing simpler requests to smaller, cheaper models is usually the single largest lever.</li><li><strong>Batch inference for anything not real-time.</strong> Bedrock prices batch inference at roughly 50% of on-demand for supported models, with no quality trade-off, for workloads that can tolerate asynchronous processing.</li><li><strong>Prompt caching for repeated context.</strong> When many requests share a large static prefix, such as a system prompt or a reference document, cached input tokens are billed at a steep discount, which AWS describes as up to roughly 90% cheaper on the cached portion.</li><li><strong>Use Provisioned Throughput only at high, steady utilization.</strong> It beats on-demand only when the reserved capacity is heavily used. Treat every Provisioned Throughput commitment as a resource with an owner and a review date, and delete the ones that have gone idle.</li></ul><h3>Architecture: Where Costs Are Born</h3><p>The sections above describe symptoms: orphaned volumes, wrong storage tiers, NAT Gateway and cross-AZ charges. Behind almost every one of them is an architectural decision that was made, or never made, during migration or infrastructure planning. AWS unit prices are public and rarely surprising. What surprises teams is the number of units their architecture consumes: how many instances run and for how long, how many gigabytes are stored, and how many gigabytes cross a billing boundary.</p><h3>How a Design Decision Becomes a Bill</h3><p>An architecture that works is not necessarily an architecture that is efficient. A poorly chosen design usually passes every functional test, so nobody notices the problem. It simply uses more AWS resources than the workload needs, and every extra resource is billed whether it does useful work or not.</p><p>For architects and developers, the takeaway is that cost is a non-functional requirement, just like availability, security, and performance. It has to be designed in. It cannot be bolted on after the first invoice arrives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O001hy-3Y5G12kHeNzrUiw.jpeg" /></figure><h3>Migration: Moving Servers Is Not Moving to the Cloud</h3><p>Lift-and-shift is a legitimate first step, but it carries the assumptions of the data center into a pay-per-use environment. Typical patterns:</p><ul><li><strong>Copying on-premises server sizes one-to-one.</strong> Physical servers are sized for peak load plus years of growth, so they are idle most of the time. In AWS the same sizing means paying for that idle capacity every hour, even though instances can be resized in minutes.</li><li><strong>Running everything 24/7.</strong> Development, test and staging environments rarely need to run at night or on weekends. A system used 50 hours a week that runs all 730 hours in a month is paid for more than three times over.</li><li><strong>Keeping the old topology.</strong> Chatty components that shared a server on premises end up in different AZs or Regions, or the application moves while its database stays behind. Local calls become billable cross-AZ, cross-Region or egress traffic.</li><li><strong>Not using what the cloud offers.</strong> Fixed capacity instead of Auto Scaling, self-managed databases on EC2 instead of managed services, and older resource generations such as gp2 volumes instead of gp3 (about $0.10 versus $0.08 per GB-month).</li></ul><h3>Planning Gaps in Cloud Infrastructure Design</h3><p>New projects fall into the same traps when cost is not part of the design review:</p><ul><li><strong>High availability everywhere, regardless of need.</strong> Multi-AZ, one NAT Gateway per AZ and redundant everything is right for a payment system and wasteful for a development environment. Three NAT Gateways cost about $99 per month in hourly fees alone (3 × $32.85), before a single byte is processed. A single-AZ environment needs one.</li><li><strong>No data-flow plan.</strong> Nobody estimated how many GB per month move between components, AZs, Regions and the internet, so the network charges described earlier first appear on the invoice.</li><li><strong>Logging and monitoring without limits.</strong> Verbose application logs sent to Amazon CloudWatch Logs cost $0.50 per GB ingested in the Standard log class, and log groups keep data forever unless a retention period is set. Logs kept for audits or occasional troubleshooting can go to the Infrequent Access log class instead, which halves ingestion to $0.25 per GB in exchange for fewer real-time features such as metric filters and Live Tail.</li><li><strong>Defaulting to x86 instances.</strong> AWS Graviton (Arm-based) instances are typically priced around 20% below comparable x86 instances, and AWS cites up to 40% better price performance. Most Linux workloads built on interpreted or JVM languages, containers, and managed services such as RDS, Aurora, ElastiCache, OpenSearch and Lambda can move to Graviton with little or no code change.</li><li><strong>No lifecycle or ownership.</strong> Data without retention rules and resources without owner tags never get cleaned up, which is how orphaned volumes, snapshots and old S3 versions accumulate.</li><li><strong>Capacity “just in case”.</strong> Resources provisioned for a peak that never comes, with no autoscaling and no rightsizing review afterwards.</li></ul><h3>Questions to Ask Before You Build or Migrate</h3><p>A short checklist for architecture reviews:</p><ul><li>What are the real average and peak utilization, and can the system scale down?</li><li>What availability does the business actually need for this workload, and what does each extra level of redundancy cost?</li><li>Which components talk to each other, and how many GB per month will cross AZ, Region and internet boundaries?</li><li>How long must the data live, and in which storage tier?</li><li>Who owns each resource, and when will it be deleted?</li><li>Would a managed, serverless or scheduled option be cheaper than running this 24/7?</li><li>Would Graviton instances, Spot capacity, or Aurora I/O-Optimized lower the cost of this workload without changing what it does?</li><li>What will this cost per month at launch, and at ten times the load? The AWS Pricing Calculator can answer this before anything is built.</li></ul><p>These questions are the core of the Cost Optimization pillar of the AWS Well-Architected Framework, and they are the natural starting point for the FinOps practices described next.</p><h3>Pricing Models: Paying Less for the Same Compute</h3><p>Rightsizing and cleanup reduce how many resources you consume. Pricing models reduce what you pay for each unit you keep. Two levers matter most today: running interruptible capacity in production, and covering the steady baseline with flexible commitments.</p><h3>Spot Instances in Production, Not Only in CI/CD</h3><p>Spot Instances are spare EC2 capacity sold at a deep discount, typically 60–70% and up to 90% below On-Demand. The catch is that AWS can reclaim them with a two-minute warning. For years this limited Spot to batch jobs and CI/CD runners, but modern orchestration has changed the picture.</p><p>With the right orchestration, Spot is stable enough not only for CI/CD runners but also for a large share of stateless production microservices. In our experience, 60–70% of stateless services can run on Spot, which saves up to 70% on that compute. No Graviton migration or rightsizing exercise comes close to that on its own, although the two combine well: Graviton Spot instances are often the cheapest capacity available.</p><p>The tooling that makes this practical:</p><ul><li><strong>Karpenter (Amazon EKS).</strong> Karpenter provisions nodes directly from a wide pool of instance types, sizes and Availability Zones, chooses capacity with the price-capacity-optimized strategy, watches for Spot interruption notices and rebalance recommendations, and drains and replaces nodes before they are reclaimed. Its consolidation feature also removes and repacks underused nodes automatically.</li><li><strong>Amazon ECS capacity providers.</strong> On Fargate, the FARGATE_SPOT capacity provider runs tasks at up to 70% off regular Fargate prices. On EC2, an Auto Scaling group capacity provider with mixed instances does the same for Spot instances. In both cases a capacity provider strategy sets the split, for example a small On-Demand base plus Spot for everything above it.</li></ul><p>What makes a production service Spot-ready:</p><ul><li>It is stateless, or keeps its state in an external store such as a database, cache or queue.</li><li>It runs at least two or three replicas spread across Availability Zones, protected by PodDisruptionBudgets or ECS deployment settings, so losing a node never takes the service down.</li><li>It shuts down gracefully within the two-minute notice: it stops accepting new requests, finishes or hands off in-flight work, and passes load balancer health checks during draining.</li><li>It can run on many instance types. The more families and sizes you allow, the less likely an interruption is and the faster capacity is replaced.</li><li>A baseline stays on On-Demand capacity covered by Savings Plans. Stateful systems, primary databases and anything that cannot tolerate a restart should not run on Spot.</li></ul><h3>Commitments: Compute Savings Plans Instead of Reserved Instances</h3><p>The traditional way to discount steady workloads was to buy Reserved Instances for a specific instance type in a specific Region. It works only as long as the architecture does not change. Move to Graviton, switch instance families, containerize onto Fargate or move a workload to Lambda, and the reservation stays behind, still billed and no longer used.</p><p>Modern FinOps is built on <strong>Compute Savings Plans</strong> instead. You commit to a fixed amount of compute spend per hour (for example, $50 per hour) for one or three years, and AWS automatically applies the discount, up to 66% off On-Demand, to any eligible usage:</p><ul><li><strong>Amazon EC2</strong>, in any instance family, size, Region, operating system or tenancy.</li><li><strong>AWS Fargate</strong>, for both Amazon ECS and Amazon EKS.</li><li><strong>AWS Lambda</strong>.</li></ul><p>Because the commitment follows the spend rather than the hardware, it survives the very optimizations this article recommends: moving to Graviton, changing Regions, adopting containers or going serverless. EC2 Instance Savings Plans give a higher discount (up to 72%) but lock you to one instance family in one Region, so they suit only workloads whose shape is truly fixed. Separate Savings Plans exist for Amazon SageMaker and for databases, and Reserved Instances still matter for services that Savings Plans do not cover, such as ElastiCache, OpenSearch and Redshift.</p><p>A practical approach:</p><ul><li>Commit only to the baseline that runs 24/7. Use the lowest point of the last few months of usage, not the average, and leave peaks to On-Demand and Spot.</li><li>Start with the recommendations in AWS Cost Explorer or Cost Optimization Hub, then buy in smaller tranches every month or quarter instead of one large purchase, so commitments track real usage.</li><li>Track utilization (how much of the commitment is used) and coverage (how much eligible spend is discounted). Low utilization means you over-committed; low coverage means money is left on the table.</li><li>Remember the order of operations: rightsize and clean up first, then commit. A Savings Plan bought for waste locks that waste in for years.</li></ul><h3>Continuous Optimization: Bringing FinOps into CI/CD</h3><p>The days when cloud spending was reviewed quarterly by finance teams are over.</p><p>Cloud cost management must become part of the software delivery lifecycle.</p><h3>Governance and Visibility</h3><ul><li>Tag every resource with an owner and a purpose, and enforce it, so nothing becomes orphaned.</li><li>Set a retention period on every CloudWatch log group, and route rarely queried logs to the Infrequent Access class.</li><li>Set AWS Budgets with alerts and enable Cost Anomaly Detection so surprises surface within days, not at month end.</li><li>Make cost part of the change review, so every new workload has an owner, a lifecycle, and an estimated monthly cost before it ships.</li></ul><h3>From CI/CD to CI/CD/CO</h3><p>Most engineering organizations are already familiar with:</p><ul><li>Continuous Integration (CI)</li><li>Continuous Delivery (CD)</li></ul><p>The next evolution is:</p><ul><li>Continuous Optimization (CO)</li></ul><p>Under this model, every infrastructure change is evaluated not only for functionality and security, but also for cost efficiency.</p><h3>Building a FinOps Culture</h3><p>FinOps is not a responsibility that belongs solely to DevOps engineers or finance teams.</p><p>It is a shared responsibility model where:</p><ul><li>Developers understand infrastructure costs.</li><li>Platform teams provide visibility.</li><li>Finance teams gain transparency into cloud spending.</li></ul><p>When engineers understand the cost of every NAT Gateway, Load Balancer, or terabyte stored in S3, cost optimization becomes a natural part of the development process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*X_7sv_vlm_D69pOtQQo_Hw.jpeg" /></figure><p>Source: <a href="https://www.finops.org/framework/">FinOps Foundation — FinOps Framework</a></p><h3>Measuring Success: Unit Economics</h3><p>Most of this article talks about absolute numbers: dollars per GB, per hour, per month. They are useful for finding waste, but they are the wrong yardstick for judging whether FinOps is working. A shrinking bill can mean a shrinking business, and a growing bill can be perfectly healthy.</p><p>The main measure of successful FinOps is <strong>unit cost</strong>: not “how many dollars did we save in total”, but “how much does it cost to serve one request, one active user, one order or one tenant”. When the business grows, the total AWS bill may grow too, but the cost per unit of business value should go down.</p><p>A simple example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jv3n1TrvjzD4gufE3Xuxwg.png" /></figure><p>Looking only at the bill, June is 40% worse. Looking at unit cost, it is 30% better: the platform serves twice the traffic at a lower cost per request. Unit costs also show the opposite case early, when the bill is flat but traffic is falling and the cost per user is quietly rising.</p><p>To put unit economics into practice:</p><ul><li><strong>Choose a few units the business already understands</strong>, such as requests, transactions, active users, orders or GB processed, and agree on them with product and finance.</li><li><strong>Join cost data with business metrics.</strong> Allocate costs with tags and cost categories, take the numbers from the AWS Cost and Usage Report, and combine them with metrics from your application or analytics platform, for example in Cloud Intelligence Dashboards or Amazon QuickSight.</li><li><strong>Account for shared costs.</strong> Networking, observability and platform teams serve everyone, so decide how to split them, or the unit cost of each product will look better than it is.</li><li><strong>Set targets and track trends.</strong> Give each team a target unit cost and review the trend every month, not just the total bill. A new feature that raises the cost per user should be a conscious business decision, not a surprise.</li></ul><p>Unit economics is also what turns FinOps from a cost-cutting exercise into a business conversation. It lets engineering, product and finance discuss whether a feature or a customer is profitable, rather than only whether this month’s invoice is higher than last month’s.</p><h3>Automation as the Key</h3><p>Manual processes and unclear ownership are among the most common causes of wasted cloud spend.</p><p>Organizations should automate cost governance using tools such as:</p><ul><li><strong>AWS Cost Optimization Hub</strong> consolidates 18+ recommendation types (EC2 rightsizing, idle resource deletion, Graviton migration, RDS/Aurora, Savings Plans and Reserved Instances) across all accounts and Regions, with deduplicated savings estimates.</li><li><strong>AWS Compute Optimizer</strong> handles rightsizing and now covers EC2, Auto Scaling groups, EBS volumes, Lambda, ECS on Fargate and RDS/Aurora, plus idle-resource recommendations.</li><li><strong>AWS Budgets</strong> and <strong>Cost Anomaly Detection</strong> for alerts before month end.</li><li><strong>AWS Cost Explorer</strong> and <strong>AWS Trusted Advisor</strong> for visibility and best-practice checks.</li><li><strong>Savings Plans and Reserved Instances</strong> for steady-state workloads.</li><li><strong>Spot Instances</strong> for CI/CD runners, batch jobs and stateless production microservices, orchestrated with Karpenter or ECS capacity providers, at discounts of up to 90% compared with On-Demand.</li><li><strong>Cost allocation tags</strong> for ownership.</li><li><strong>S3 Storage Lens</strong> and <strong>Lifecycle Policies</strong> for storage visibility and cleanup.</li><li><strong>Cloud Intelligence Dashboards (CUDOS / CID)</strong> for organization-wide cost reporting.</li><li><strong>Automated cleanup workflows and infrastructure governance controls</strong> to remove idle resources and enforce guardrails.</li></ul><p>Automation transforms cloud cost management from a reactive exercise into a continuous operational process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*F644GYBdvEBxUiSdcCieZQ.jpeg" /></figure><h3>Conclusion</h3><p>AWS provides extraordinary flexibility and scalability, but that flexibility requires discipline.</p><p>Most cloud overspending does not come from expensive services. It comes from forgotten resources, inefficient architectures that consume more resources than the workload needs, unnecessary networking charges, and a lack of visibility into actual consumption.</p><p>By treating cost as a design requirement from the first architecture review, adopting FinOps principles and integrating Continuous Optimization into the development lifecycle, organizations can ensure they are spending money on innovation and business growth — not on idle infrastructure and hidden cloud costs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23962ecdf32e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>