<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: André Romão Quinhoneiro</title>
    <description>The latest articles on DEV Community by André Romão Quinhoneiro (@andromao).</description>
    <link>https://dev.to/andromao</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4277319%2Fecfe99d1-a7e8-46ac-b264-df1016249cc4.jpg</url>
      <title>DEV Community: André Romão Quinhoneiro</title>
      <link>https://dev.to/andromao</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andromao"/>
    <language>en</language>
    <item>
      <title>Whose cost is this? Cloud cost allocation before any optimization</title>
      <dc:creator>André Romão Quinhoneiro</dc:creator>
      <pubDate>Wed, 02 Dec 2026 02:24:04 +0000</pubDate>
      <link>https://dev.to/andromao/whose-cost-is-this-cloud-cost-allocation-before-any-optimization-73d</link>
      <guid>https://dev.to/andromao/whose-cost-is-this-cloud-cost-allocation-before-any-optimization-73d</guid>
      <description>&lt;p&gt;At a fictional podcast platform, only 40% of the cloud bill is tagged with a team. The other 60% sits in shared accounts, untagged resources, or services used by several teams at once.&lt;/p&gt;

&lt;p&gt;If nobody knows whose cost it is, nobody answers for it. This post summarizes chapter 3 of &lt;em&gt;FinOps and Cloud Economics&lt;/em&gt;, from the From Journey to Practice series.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why allocation comes first
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Capability&lt;/th&gt;
&lt;th&gt;Without allocation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Budgets per team&lt;/td&gt;
&lt;td&gt;Impossible: you don't know each team's spend&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anomaly investigation&lt;/td&gt;
&lt;td&gt;Slow: you don't know whom to ask&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Optimization&lt;/td&gt;
&lt;td&gt;Ownerless: nobody feels responsible for waste&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unit cost per product&lt;/td&gt;
&lt;td&gt;Wrong: you don't know what each product costs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Four layers, from strongest to most flexible
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Account:&lt;/strong&gt; each account belongs to one team and one environment. Strong and automatic, but doesn't solve shared accounts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tag:&lt;/strong&gt; each resource carries &lt;code&gt;team&lt;/code&gt;, &lt;code&gt;product&lt;/code&gt;, &lt;code&gt;environment&lt;/code&gt;. Granular, but depends on discipline, and not every cost accepts tags.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost category:&lt;/strong&gt; rules that group costs by account, tag or service into business categories (AWS Cost Categories).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split:&lt;/strong&gt; divides shared costs by an explicit rule.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  A small tagging standard
&lt;/h2&gt;

&lt;p&gt;The most common mistake is a 20-tag standard that nobody applies fully. Four mandatory tags cover most needs: &lt;code&gt;team&lt;/code&gt;, &lt;code&gt;product&lt;/code&gt;, &lt;code&gt;environment&lt;/code&gt; and &lt;code&gt;classification&lt;/code&gt;. Plus three rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;values from a closed list&lt;/strong&gt;, never free text ("billing", "Billing" and "billing-team" become three teams);&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;lowercase, no accents&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;tags activated for cost allocation&lt;/strong&gt; in the organization's management account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Optional tags don't get applied. From most preventive to most corrective: infrastructure modules that create resources already tagged, policy checks in the pipeline, organization tag policies, SCP denies for the most expensive resources (after testing, since it doesn't work for every resource type), and posture rules to catch what slipped through.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can't be tagged
&lt;/h2&gt;

&lt;p&gt;Some data transfer, support, taxes, credits. For these, the account solves it when there's a single team; a cost category solves it by rule; a split solves the rest. The goal isn't zero unallocated cost, which would be expensive. It's keeping it &lt;strong&gt;low, stable and explained&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Splitting: the rule creates the incentive
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;When to use&lt;/th&gt;
&lt;th&gt;Watch out&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Proportional to measured usage&lt;/td&gt;
&lt;td&gt;When usage can be measured (log GB per team)&lt;/td&gt;
&lt;td&gt;Requires measuring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Proportional to direct cost&lt;/td&gt;
&lt;td&gt;Support costs with no direct measure&lt;/td&gt;
&lt;td&gt;May punish those already big&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed&lt;/td&gt;
&lt;td&gt;Small or hard-to-measure costs&lt;/td&gt;
&lt;td&gt;May feel unfair&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Don't split&lt;/td&gt;
&lt;td&gt;Company investments, like the internal platform&lt;/td&gt;
&lt;td&gt;Needs an owner and its own budget&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The key point: &lt;strong&gt;a good split rule rewards the right behavior.&lt;/strong&gt; In the book's scenario, the logging account costs 7,300 units a month. Split by volume sent, one team with a forgotten debug log level ended up with 52% of the cost, saw it on the first line of its report, and fixed it the same week. With an equal split, nobody would have noticed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Showback or chargeback
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Showback:&lt;/strong&gt; each team sees its own cost; the budget stays central. Simple, no accounting conflict.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chargeback:&lt;/strong&gt; cost goes into each area's budget. Strong accountability, but requires very reliable allocation and creates disputes about splits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most companies start with showback and only move to chargeback once allocation is trusted and accepted.&lt;/p&gt;




&lt;p&gt;The book continues with budgets and anomalies, waste, economic comparison of architectures and unit cost for leadership. It's &lt;em&gt;FinOps and Cloud Economics&lt;/em&gt;, volume 6 of the From Journey to Practice series: &lt;a href="https://andreromao.com.br/livros/finops-cloud-economics" rel="noopener noreferrer"&gt;https://andreromao.com.br/livros/finops-cloud-economics&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What share of your company's cloud bill has a clear owner today?&lt;/p&gt;

</description>
      <category>finops</category>
      <category>aws</category>
      <category>cloud</category>
      <category>devops</category>
    </item>
    <item>
      <title>63 IAM users, 41 active keys and 9 belonging to former employees: least privilege at scale on AWS</title>
      <dc:creator>André Romão Quinhoneiro</dc:creator>
      <pubDate>Wed, 02 Dec 2026 02:18:57 +0000</pubDate>
      <link>https://dev.to/andromao/63-iam-users-41-active-keys-and-9-belonging-to-former-employees-least-privilege-at-scale-on-aws-50an</link>
      <guid>https://dev.to/andromao/63-iam-users-41-active-keys-and-9-belonging-to-former-employees-least-privilege-at-scale-on-aws-50an</guid>
      <description>&lt;p&gt;In a fictional but all-too-common inventory, a company with 14 AWS accounts found 63 IAM users and 41 active access keys. Of those, 17 hadn't been used in over 90 days, 9 belonged to people who had left the company, and 3 had administrator permissions. One of them was sitting in a public repository.&lt;/p&gt;

&lt;p&gt;Least privilege in one account is one thing. Across dozens of accounts, with many teams, pipelines and vendors, it's another. This post summarizes chapter 3 of &lt;em&gt;Cloud Security Architecture on AWS&lt;/em&gt;, from the From Journey to Practice series.&lt;/p&gt;

&lt;h2&gt;
  
  
  One rule before anything else
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;No long-term credentials unless there is no alternative, and then only as a recorded exception.&lt;/strong&gt; Temporary credentials expire on their own. A key forgotten in a repository keeps working until someone disables it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three kinds of identity, three treatments
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Kind&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;th&gt;How it should authenticate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;People&lt;/td&gt;
&lt;td&gt;Developers, operations, security&lt;/td&gt;
&lt;td&gt;Company identity provider, with MFA, receiving temporary credentials&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Company systems&lt;/td&gt;
&lt;td&gt;ECS, Lambda, pipeline&lt;/td&gt;
&lt;td&gt;Role attached to the resource or pipeline federation, no stored key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Third parties&lt;/td&gt;
&lt;td&gt;Vendor tool&lt;/td&gt;
&lt;td&gt;Role in another account with conditions; keys only as an exception&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  People: central identity, distributed access
&lt;/h2&gt;

&lt;p&gt;With &lt;strong&gt;AWS IAM Identity Center&lt;/strong&gt;, each person exists in one place, signs in once with MFA, picks an account and a role, and gets temporary credentials. When they leave, they're disabled in the identity provider and lose access to every account at once.&lt;/p&gt;

&lt;p&gt;The common mistake is creating a permission set per person or per request. Soon there are hundreds and nobody can review them. The alternative is a small catalog by job function (read-only, development, production operations, security audit, incident response, platform admin), always assigned to &lt;strong&gt;groups&lt;/strong&gt;, never to individuals.&lt;/p&gt;

&lt;p&gt;And notice: &lt;strong&gt;nobody has standing admin access in production.&lt;/strong&gt; Production changes come through the pipeline; emergency human actions use temporary, logged access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes instead of lists
&lt;/h2&gt;

&lt;p&gt;With 9 teams and dozens of accounts, one policy per combination doesn't scale. &lt;strong&gt;Attribute-based access control&lt;/strong&gt; (ABAC) compares a person's attribute with a resource tag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ecs:UpdateService"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ecs:DescribeServices"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Condition"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"StringEquals"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"aws:ResourceTag/team"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"${aws:PrincipalTag/team}"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The cost: &lt;strong&gt;tags become security controls.&lt;/strong&gt; Whoever can change a resource's tag can change who has access to it, so changing security tags must be restricted too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Systems: one role per application
&lt;/h2&gt;

&lt;p&gt;Applications get credentials from the role attached to the resource, rotated automatically. The scaling trap is a shared "app-role" holding the sum of every app's permissions: a flaw in any one app grants access to everything.&lt;/p&gt;

&lt;p&gt;For external pipelines like GitHub Actions, use &lt;strong&gt;OIDC federation&lt;/strong&gt; and restrict the role's trust:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"Condition"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"StringEquals"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"token.actions.githubusercontent.com:aud"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sts.amazonaws.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"token.actions.githubusercontent.com:sub"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"repo:company/platform:environment:production"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without the &lt;code&gt;sub&lt;/code&gt; condition, any repository on the same provider could try to assume the role.&lt;/p&gt;

&lt;h2&gt;
  
  
  Third parties: a role with an external ID
&lt;/h2&gt;

&lt;p&gt;For vendors, prefer a role in your account that their account can assume, with an &lt;strong&gt;external ID&lt;/strong&gt; (which prevents the &lt;em&gt;confused deputy&lt;/em&gt; problem) and minimal scope.&lt;/p&gt;

&lt;h2&gt;
  
  
  Know the permission layers
&lt;/h2&gt;

&lt;p&gt;An API call goes through SCPs, RCPs, permission boundaries, session policies, identity policies and resource policies. Simplified rule: the action is allowed only if no layer explicitly denies it and it is allowed within every ceiling. &lt;strong&gt;An explicit deny in any layer beats any allow.&lt;/strong&gt; For cross-account access and resource policies, check the policy evaluation logic in the official documentation and test with the simulation tools.&lt;/p&gt;




&lt;p&gt;The full path, from multi-account landing zones to detection, incident response and governance, with case studies and labs, is in &lt;em&gt;Cloud Security Architecture on AWS&lt;/em&gt;, volume 5 of the From Journey to Practice series: &lt;a href="https://www.amazon.com/dp/B0H7PGZ9PN" rel="noopener noreferrer"&gt;https://www.amazon.com/dp/B0H7PGZ9PN&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How many long-term access keys exist in your company's accounts today? Can anyone answer without looking?&lt;/p&gt;

</description>
      <category>aws</category>
      <category>security</category>
      <category>iam</category>
      <category>devsecops</category>
    </item>
    <item>
      <title>300 alerts a week and none when it mattered: rebuilding alerts from your SLOs</title>
      <dc:creator>André Romão Quinhoneiro</dc:creator>
      <pubDate>Wed, 02 Dec 2026 02:18:27 +0000</pubDate>
      <link>https://dev.to/andromao/300-alerts-a-week-and-none-when-it-mattered-rebuilding-alerts-from-your-slos-4mcp</link>
      <guid>https://dev.to/andromao/300-alerts-a-week-and-none-when-it-mattered-rebuilding-alerts-from-your-slos-4mcp</guid>
      <description>&lt;p&gt;Picture a team that gets about 300 alerts a week. On Black Friday, a critical service falls six hours behind and... no alert fires.&lt;/p&gt;

&lt;p&gt;Both facts are the same problem seen from opposite sides: alerts warn about what doesn't matter and stay silent about what does. On-call engineers quickly learn to ignore alerts that ask for nothing, and after a few weeks they stop reading the ones that do. It has a name: &lt;strong&gt;alert fatigue&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This post summarizes chapter 4 of &lt;em&gt;SRE and Reliability Engineering&lt;/em&gt;, from the From Journey to Practice series.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three questions for a good alert
&lt;/h2&gt;

&lt;p&gt;An alert that interrupts a person is only justified if the answer to all three is "yes":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Is it urgent?&lt;/strong&gt; If nobody acts now, will users be affected in a meaningful way?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is it actionable?&lt;/strong&gt; Is there something the person can do?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is it real?&lt;/strong&gt; Is the chance of a false alarm low?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If any answer is "no", it shouldn't wake anyone up. It can become a ticket, a dashboard chart, or nothing.&lt;/p&gt;

&lt;p&gt;In the book's fictional case, the team classified one week's 300 alerts: 41% were CPU above 80% for five minutes, 23% were health checks that recovered on their own, 18% were queues that drained on their own. &lt;strong&gt;Only 7% asked for any action.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Page on symptoms, not causes
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;Symptom alert&lt;/th&gt;
&lt;th&gt;Cause alert&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Says users are affected&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Not always&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Covers causes nobody predicted&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How many&lt;/td&gt;
&lt;td&gt;Few&lt;/td&gt;
&lt;td&gt;Many&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Noise risk&lt;/td&gt;
&lt;td&gt;Low, if well calibrated&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A symptom is what the user feels ("updates are more than 15 minutes late"). A cause is something that may lead to a symptom ("database CPU at 90%"). Cause alerts only go to on-call when they reliably predict a serious symptom, like a disk that will fill up in a few hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three destinations, not one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;On-call page:&lt;/strong&gt; users are affected now and someone needs to act.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ticket queue:&lt;/strong&gt; needs attention, but can wait for the next business day (a certificate expiring in seven days).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dashboard or report:&lt;/strong&gt; useful for diagnosis, no immediate action (CPU, memory, task count).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Burn-rate alerts with two windows
&lt;/h2&gt;

&lt;p&gt;A good symptom alert is built on the &lt;strong&gt;error budget burn rate&lt;/strong&gt;: how fast the budget is being spent compared with the sustainable pace. It comes already calibrated by the SLO.&lt;/p&gt;

&lt;p&gt;A single window has two problems: a long one is slow to fire and slow to clear; a short one fires on every spike. The fix is &lt;strong&gt;two windows per alert&lt;/strong&gt;: the long one confirms the consumption is significant, the short one confirms it is &lt;strong&gt;still happening&lt;/strong&gt;. A common starting point for a 99.9% SLO over about 28 days:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Severity&lt;/th&gt;
&lt;th&gt;Budget consumed&lt;/th&gt;
&lt;th&gt;Long window&lt;/th&gt;
&lt;th&gt;Short window&lt;/th&gt;
&lt;th&gt;Burn rate&lt;/th&gt;
&lt;th&gt;Destination&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;2% in 1 hour&lt;/td&gt;
&lt;td&gt;1 hour&lt;/td&gt;
&lt;td&gt;5 minutes&lt;/td&gt;
&lt;td&gt;14.4&lt;/td&gt;
&lt;td&gt;Page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;5% in 6 hours&lt;/td&gt;
&lt;td&gt;6 hours&lt;/td&gt;
&lt;td&gt;30 minutes&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;10% in 3 days&lt;/td&gt;
&lt;td&gt;3 days&lt;/td&gt;
&lt;td&gt;6 hours&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Ticket&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For low-traffic services, a few failures move the rate a lot. In that case, add a synthetic probe or require a minimum number of events in the window.&lt;/p&gt;

&lt;h2&gt;
  
  
  The alert must explain itself in seconds
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[HIGH] tracking-api: availability budget burning at 21x
What:     2.1% of requests failing in the last hour (SLO allows 0.1%).
Impact:   all stores; tracking requests returning 5xx.
Since:    02:47. Last deploy: 02:31, version 4.18.0.
Budget:   61% consumed in the 28-day window.
Runbook:  RB-API-01: check recent deploy, DB connections, errors per route.
Owner:    Tracking team on-call.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rule of thumb: &lt;strong&gt;every paging alert has a runbook.&lt;/strong&gt; If "every case is different", the alert is probably cause-based, or not actionable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Weekly review
&lt;/h2&gt;

&lt;p&gt;At on-call handover, for each alert of the week: did it ask for action? Could the action be automated? Did it arrive in time? Did the runbook help? Was there a problem with no alert? And track one metric above all: &lt;strong&gt;incidents found by users before the alert&lt;/strong&gt;, which should trend to zero.&lt;/p&gt;

&lt;p&gt;In the book's scenario, after two months of weekly reviews the team went from 300 alerts a week to 9 pages and about 20 tickets, and the share of pages that needed action rose from 7% to over 80%.&lt;/p&gt;




&lt;p&gt;The full path, from SLIs and SLOs to incidents, post-mortems and resilience, with labs, is in &lt;em&gt;SRE and Reliability Engineering&lt;/em&gt;, volume 4 of the From Journey to Practice series: &lt;a href="https://andreromao.com.br/livros/sre-engenharia-confiabilidade" rel="noopener noreferrer"&gt;https://andreromao.com.br/livros/sre-engenharia-confiabilidade&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How many of the alerts that paged your team last week actually needed someone to do something?&lt;/p&gt;

</description>
      <category>sre</category>
      <category>devops</category>
      <category>observability</category>
      <category>aws</category>
    </item>
    <item>
      <title>EC2, Fargate or Lambda? Three questions before you choose (and the record that saves you an argument six months later)</title>
      <dc:creator>André Romão Quinhoneiro</dc:creator>
      <pubDate>Wed, 02 Dec 2026 01:22:41 +0000</pubDate>
      <link>https://dev.to/andromao/ec2-fargate-or-lambda-three-questions-before-you-choose-and-the-record-that-saves-you-an-p21</link>
      <guid>https://dev.to/andromao/ec2-fargate-or-lambda-three-questions-before-you-choose-and-the-record-that-saves-you-an-p21</guid>
      <description>&lt;p&gt;"Let's use Lambda for everything" and "let's just spin up a few EC2 instances" are two sentences I've seen end a meeting too early. Choosing where an application runs on AWS is an architecture decision, and a decision needs criteria and a record.&lt;/p&gt;

&lt;p&gt;This post summarizes part of chapter 2 of &lt;em&gt;Cloud Solutions Architect on AWS&lt;/em&gt;, from the From Journey to Practice series.&lt;/p&gt;

&lt;h2&gt;
  
  
  A managed service is not an ownerless service
&lt;/h2&gt;

&lt;p&gt;Before comparing, a warning. Managed services move the responsibility line, but they don't erase your side of it. With PostgreSQL on RDS, AWS handles the operating system and engine patches. Your team still owns access, network, encryption, the data model, cost, and &lt;strong&gt;testing that a backup actually restores&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Rule of thumb: when comparing a managed option with a self-built one, list what your team stops doing and what it keeps doing. If the second list is empty, the analysis is incomplete.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three models, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criterion&lt;/th&gt;
&lt;th&gt;EC2&lt;/th&gt;
&lt;th&gt;ECS on Fargate&lt;/th&gt;
&lt;th&gt;Lambda&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Control over the environment&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operating system work&lt;/td&gt;
&lt;td&gt;Team&lt;/td&gt;
&lt;td&gt;AWS&lt;/td&gt;
&lt;td&gt;AWS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best usage pattern&lt;/td&gt;
&lt;td&gt;Continuous, or OS dependencies&lt;/td&gt;
&lt;td&gt;Continuous, web and API&lt;/td&gt;
&lt;td&gt;Event-driven, short, irregular&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost when idle&lt;/td&gt;
&lt;td&gt;Pay for running instances&lt;/td&gt;
&lt;td&gt;Pay for running tasks&lt;/td&gt;
&lt;td&gt;Close to zero&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost under high, steady load&lt;/td&gt;
&lt;td&gt;Predictable&lt;/td&gt;
&lt;td&gt;Predictable&lt;/td&gt;
&lt;td&gt;Can get high&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change needed for a legacy app&lt;/td&gt;
&lt;td&gt;Little&lt;/td&gt;
&lt;td&gt;Medium (containerize)&lt;/td&gt;
&lt;td&gt;Large (rewrite as functions)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Three questions that remove most of the doubt
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;What is the usage pattern?&lt;/strong&gt; Always on (web, API) points to containers or VMs. Event-driven, short and irregular points to functions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does it depend on something in the OS?&lt;/strong&gt; An agent, a native library or a machine-bound license that won't fit in a container points to EC2.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does it fit the execution limits?&lt;/strong&gt; Lambda has a maximum duration per invocation (currently 15 minutes), plus memory and package size limits. These values change: check the official documentation and write down the date you checked next to the decision.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The answers give you a &lt;strong&gt;starting point&lt;/strong&gt;, not a final decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  It doesn't have to be just one
&lt;/h2&gt;

&lt;p&gt;Different workloads can use different models. In a fictional online store:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;web app and API, always on: containers (ECS on Fargate);&lt;/li&gt;
&lt;li&gt;nightly import of a price spreadsheet: a scheduled function, &lt;strong&gt;if&lt;/strong&gt; it fits the limits;&lt;/li&gt;
&lt;li&gt;order confirmation email: a function triggered by a queue message.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Resolve the "if" with a proof of concept
&lt;/h2&gt;

&lt;p&gt;Compare two PoC goals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Weak: "let's try Lambda for the import".&lt;/li&gt;
&lt;li&gt;Strong: "we need to know whether importing the largest spreadsheet from the last six months finishes in under 10 minutes inside a function, using the library we use today".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The strong goal says what to measure, with which data, and which result keeps or rules out the option. Define the success criterion before you start, keep it short, and record the result, even when the answer is "it doesn't work". If the PoC uses AWS resources, use a lab account, a budget alert and a cleanup script: a forgotten PoC left running is a classic surprise bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Record the choice
&lt;/h2&gt;

&lt;p&gt;Six months from now, someone will ask "why didn't we use Lambda for everything?". The answer needs to exist in writing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ADR-002: execution model for the web application
Context:       web app and API active all day; campaign peak estimated
               at ~5x (assumption, not yet measured); team of 4 with no
               experience running servers.
Options:       EC2 with Auto Scaling; ECS on Fargate; Lambda.
Decision:      ECS on Fargate.
Why:           no OS to maintain; continuous load does not favor Lambda;
               the current app runs in a container with small changes
               (PoC-01).
Rejected:      EC2, due to OS upkeep with a small team;
               Lambda, due to rewriting the app as functions.
Consequences:  the team now owns the image (base, scanning, updates);
               cost grows with the number of running tasks.
Revisit if:    the measured peak differs a lot from the estimate; or an
               OS dependency appears that won't fit in a container.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice two lines: &lt;strong&gt;Rejected&lt;/strong&gt; (the reason for "no" matters as much as the reason for "yes") and &lt;strong&gt;Revisit if&lt;/strong&gt; (every decision has an expiry date).&lt;/p&gt;




&lt;p&gt;If you want the full path, from a vague request to a complete architecture package, with labs and case studies, it's in &lt;em&gt;Cloud Solutions Architect on AWS&lt;/em&gt;, volume 2 of the From Journey to Practice series: &lt;a href="https://www.amazon.com/dp/B0HMZGM278" rel="noopener noreferrer"&gt;https://www.amazon.com/dp/B0HMZGM278&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How does your team record architecture decisions today? ADRs, a wiki, nothing at all?&lt;/p&gt;

</description>
      <category>aws</category>
      <category>architecture</category>
      <category>serverless</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
