<?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: Angelo Alberto Santos</title>
    <description>The latest articles on DEV Community by Angelo Alberto Santos (@asant_ops).</description>
    <link>https://dev.to/asant_ops</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%2F3903280%2F811d1306-0723-4f3f-b9c5-47e5847b3228.jpg</url>
      <title>DEV Community: Angelo Alberto Santos</title>
      <link>https://dev.to/asant_ops</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asant_ops"/>
    <language>en</language>
    <item>
      <title>teste3</title>
      <dc:creator>Angelo Alberto Santos</dc:creator>
      <pubDate>Wed, 30 Sep 2026 20:12:17 +0000</pubDate>
      <link>https://dev.to/asant_ops/teste3-1ha7</link>
      <guid>https://dev.to/asant_ops/teste3-1ha7</guid>
      <description>&lt;p&gt;teste3&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Managing Private EC2 Instances Without Opening Port 22 Using AWS Systems Manager Session Manager</title>
      <dc:creator>Angelo Alberto Santos</dc:creator>
      <pubDate>Wed, 30 Sep 2026 20:10:30 +0000</pubDate>
      <link>https://dev.to/asant_ops/managing-private-ec2-instances-without-opening-port-22-using-aws-systems-manager-session-manager-7mj</link>
      <guid>https://dev.to/asant_ops/managing-private-ec2-instances-without-opening-port-22-using-aws-systems-manager-session-manager-7mj</guid>
      <description>&lt;p&gt;When we need to manage a Linux instance, SSH is usually one of the first options that comes to mind.&lt;/p&gt;

&lt;p&gt;And there is nothing wrong with that. SSH is still a valid solution and can work through private networks, VPNs, Direct Connect, bastion hosts, and other controlled network paths.&lt;/p&gt;

&lt;p&gt;But on AWS, there is another option: using AWS Systems Manager Session Manager to establish an administrative session without exposing an inbound port on the instance.&lt;/p&gt;

&lt;p&gt;That leads to a more interesting question:&lt;/p&gt;

&lt;p&gt;If there is no SSH connection coming into the EC2 instance, how does the administrator reach it?&lt;/p&gt;

&lt;p&gt;To answer that, we first need to understand Session Manager before looking at any Terraform code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is AWS Systems Manager Session Manager?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Session Manager is a feature of AWS Systems Manager that allows you to establish interactive sessions with machines registered with Systems Manager as Managed Nodes.&lt;/p&gt;

&lt;p&gt;For a Linux EC2 instance, the session mainly depends on two sides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the administrator, authenticated and authorized through IAM;&lt;/li&gt;
&lt;li&gt;the SSM Agent running inside the instance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The administrator requests the session through Systems Manager. The agent maintains the required communication with AWS services and participates in establishing the session channel.&lt;/p&gt;

&lt;p&gt;Because this flow does not start with a direct network connection from the administrator to the EC2 instance, there is no need to expose TCP/22 in the instance Security Group for this type of access.&lt;/p&gt;

&lt;p&gt;That does not mean the instance can operate without connectivity.&lt;/p&gt;

&lt;p&gt;The SSM Agent still needs to reach the required Systems Manager endpoints. We will come back to this because it is one of the most important architectural decisions in this design.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changes compared to SSH?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>infrastructure</category>
      <category>security</category>
    </item>
    <item>
      <title>Managing Private EC2 Instances Without Opening Port 22 Using AWS Systems Manager Session Manager</title>
      <dc:creator>Angelo Alberto Santos</dc:creator>
      <pubDate>Tue, 01 Sep 2026 01:57:32 +0000</pubDate>
      <link>https://dev.to/asant_ops/managing-private-ec2-instances-without-opening-port-22-using-aws-systems-manager-session-manager-2fl2</link>
      <guid>https://dev.to/asant_ops/managing-private-ec2-instances-without-opening-port-22-using-aws-systems-manager-session-manager-2fl2</guid>
      <description></description>
    </item>
    <item>
      <title>teste teste</title>
      <dc:creator>Angelo Alberto Santos</dc:creator>
      <pubDate>Tue, 01 Sep 2026 01:20:50 +0000</pubDate>
      <link>https://dev.to/asant_ops/teste-4ba8</link>
      <guid>https://dev.to/asant_ops/teste-4ba8</guid>
      <description>&lt;p&gt;teste teste&lt;/p&gt;

</description>
    </item>
    <item>
      <title>EC2 not responding? The issue might be here (and it seems too basic to happen)</title>
      <dc:creator>Angelo Alberto Santos</dc:creator>
      <pubDate>Thu, 30 Apr 2026 21:46:35 +0000</pubDate>
      <link>https://dev.to/asant_ops/ec2-not-responding-the-issue-might-be-here-and-it-seems-too-basic-to-happen-33ch</link>
      <guid>https://dev.to/asant_ops/ec2-not-responding-the-issue-might-be-here-and-it-seems-too-basic-to-happen-33ch</guid>
      <description>&lt;p&gt;In day-to-day cloud operations, some incidents stand out not because of their complexity, but quite the opposite.&lt;/p&gt;

&lt;p&gt;They are those cases where, once you discover the root cause, you think:&lt;br&gt;
&lt;strong&gt;&lt;em&gt;“this can’t be it”.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is one of them.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The scenario&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The EC2 instance was running, with a public IP and everything seemingly correct.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Status: running&lt;/li&gt;
&lt;li&gt;Public IP available&lt;/li&gt;
&lt;li&gt;No visible alerts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even so, every attempt to access it resulted in a timeout.&lt;/p&gt;

&lt;p&gt;No clear error. No direct clue.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where to look first&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In situations like this, before assuming something more complex, the first step is always to review the Security Group.&lt;/p&gt;

&lt;p&gt;More specifically: the inbound rules.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5p7y6x73i1w4fp8yz754.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5p7y6x73i1w4fp8yz754.png" alt=" " width="800" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The problem&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When analyzing the Security Group, the situation was straightforward:&lt;/p&gt;

&lt;p&gt;No inbound rules configured.&lt;/p&gt;

&lt;p&gt;This means the instance was not accepting any external connections.&lt;br&gt;
No SSH, no HTTP, no any other port.&lt;/p&gt;

&lt;p&gt;This is expected behavior in AWS:&lt;br&gt;
everything is denied by default unless explicitly allowed.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why this happens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This type of situation is more common than it seems.&lt;/p&gt;

&lt;p&gt;Some examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating an instance without reviewing the Security Group&lt;/li&gt;
&lt;li&gt;Using a default Security Group with no rules&lt;/li&gt;
&lt;li&gt;Changes made during testing that were not reverted&lt;/li&gt;
&lt;li&gt;Switching Security Groups without proper validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the middle of daily operations, this kind of detail is easy to overlook.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to fix&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The fix is simple: add the required rule to the Security Group.&lt;/p&gt;

&lt;p&gt;Example for SSH access:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Type: SSH&lt;/li&gt;
&lt;li&gt;Port: 22&lt;/li&gt;
&lt;li&gt;Source: your IP (recommended) or 0.0.0.0/0 for testing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10z0ix1tfy48cou5ebtv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10z0ix1tfy48cou5ebtv.png" alt=" " width="800" height="111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After the fix&lt;/p&gt;

&lt;p&gt;Once the rule was added, access to the instance was restored immediately.&lt;/p&gt;

&lt;p&gt;No restart required. No additional changes needed.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practical takeaway&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before assuming complex issues, always check the basics.&lt;/p&gt;

&lt;p&gt;In many cases, what looks like a serious incident is just a simple configuration that went unnoticed.&lt;/p&gt;

&lt;p&gt;And precisely because it looks simple, it happens more often than expected.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick checklist for unreachable EC2&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Security Group&lt;/li&gt;
&lt;li&gt;Network ACL&lt;/li&gt;
&lt;li&gt;Route Table&lt;/li&gt;
&lt;li&gt;Instance status&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In most cases, the issue is in the first item.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Further reading&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to dive deeper, the official documentation explains how Security Groups work and how rules are evaluated:&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;docs.aws.amazon.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This content is based on real-world scenarios from day-to-day operations.&lt;br&gt;
AI tools were used only for text review.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>ec2</category>
      <category>security</category>
    </item>
    <item>
      <title>EC2 não responde? O erro pode estar aqui (e parece básico demais para acontecer)</title>
      <dc:creator>Angelo Alberto Santos</dc:creator>
      <pubDate>Thu, 30 Apr 2026 21:05:20 +0000</pubDate>
      <link>https://dev.to/asant_ops/ec2-nao-responde-o-erro-pode-estar-aqui-e-parece-basico-demais-para-acontecer-37nm</link>
      <guid>https://dev.to/asant_ops/ec2-nao-responde-o-erro-pode-estar-aqui-e-parece-basico-demais-para-acontecer-37nm</guid>
      <description>&lt;p&gt;No dia a dia de operações em cloud, alguns incidentes chamam atenção não pela complexidade, mas justamente pelo contrário.&lt;/p&gt;

&lt;p&gt;São aqueles casos que, quando você descobre a causa, pensa:&lt;br&gt;
&lt;strong&gt;&lt;em&gt;“não é possível que foi isso”&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Esse é um deles.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;O cenário&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A instância EC2 estava em execução, com IP público e tudo aparentemente correto.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Status: running&lt;/li&gt;
&lt;li&gt;IP público disponível&lt;/li&gt;
&lt;li&gt;Sem alertas aparentes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Mesmo assim, qualquer tentativa de acesso resultava em timeout.&lt;/p&gt;

&lt;p&gt;Sem erro claro. Sem pista direta.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Onde olhar primeiro&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Em situações como essa, antes de pensar em algo mais complexo, o primeiro passo é sempre revisar o Security Group.&lt;/p&gt;

&lt;p&gt;Mais especificamente: as regras de entrada (Inbound Rules).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5p7y6x73i1w4fp8yz754.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5p7y6x73i1w4fp8yz754.png" alt=" " width="800" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;O problema&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ao analisar o Security Group, o cenário era direto:&lt;/p&gt;

&lt;p&gt;Nenhuma regra de entrada configurada.&lt;/p&gt;

&lt;p&gt;Isso significa que a instância não aceitava nenhum tipo de conexão externa.&lt;br&gt;
Nem SSH, nem HTTP, nem qualquer outra porta.&lt;/p&gt;

&lt;p&gt;É um comportamento esperado da AWS:&lt;br&gt;
tudo é bloqueado por padrão, a menos que seja explicitamente permitido.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Por que isso acontece&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Esse tipo de situação é mais comum do que parece.&lt;/p&gt;

&lt;p&gt;Alguns exemplos:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Criação da instância sem revisar o Security Group&lt;/li&gt;
&lt;li&gt;Uso de um Security Group padrão sem regras&lt;/li&gt;
&lt;li&gt;Alterações feitas durante testes e não revertidas&lt;/li&gt;
&lt;li&gt;Troca de Security Group sem validação&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No meio da rotina, esse tipo de detalhe passa despercebido com facilidade.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Como resolver&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A correção é simples: adicionar a regra necessária no Security Group.&lt;/p&gt;

&lt;p&gt;Exemplo para acesso via SSH:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tipo: SSH&lt;/li&gt;
&lt;li&gt;Porta: 22&lt;/li&gt;
&lt;li&gt;Origem: seu IP (recomendado) ou 0.0.0.0/0 para testes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10z0ix1tfy48cou5ebtv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10z0ix1tfy48cou5ebtv.png" alt=" " width="800" height="111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Após a correção&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Depois de adicionar a regra, o acesso à instância foi restabelecido normalmente.&lt;/p&gt;

&lt;p&gt;Sem necessidade de reiniciar a instância, sem mudanças adicionais.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lição prática&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Antes de assumir problemas mais complexos, vale sempre revisar o básico.&lt;/p&gt;

&lt;p&gt;Em muitos casos, o que parece um incidente mais sério é apenas uma configuração simples que passou despercebida.&lt;/p&gt;

&lt;p&gt;E justamente por parecer simples, é o tipo de erro que mais acontece.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Checklist rápido para EC2 inacessível&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1. Security Group&lt;/li&gt;
&lt;li&gt;2. Network ACL&lt;/li&gt;
&lt;li&gt;3. Route Table&lt;/li&gt;
&lt;li&gt;4. Status da instância&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Na maioria das situações, o problema está no primeiro item.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Leitura complementar&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Se quiser se aprofundar, a documentação oficial explica bem como os Security Groups funcionam e como as regras são avaliadas:&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;docs.aws.amazon.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nota&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Este conteúdo foi baseado em cenários reais do dia a dia.&lt;br&gt;
Ferramentas de IA foram utilizadas apenas para revisão do texto.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ec2</category>
      <category>security</category>
      <category>cloudcomputing</category>
    </item>
  </channel>
</rss>
