<?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 Luiz Felipe Brasil on Medium]]></title>
        <description><![CDATA[Stories by Luiz Felipe Brasil on Medium]]></description>
        <link>https://medium.com/@luizfelipebrasil?source=rss-1023d8e5423d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3CtJZQr05sOaJUPHI_p2HA.jpeg</url>
            <title>Stories by Luiz Felipe Brasil on Medium</title>
            <link>https://medium.com/@luizfelipebrasil?source=rss-1023d8e5423d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:24:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@luizfelipebrasil/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[HumanGov: Deployment of a reusable Saas Multi-tenant AWS Infrastructure using Terraform Modules…]]></title>
            <link>https://medium.com/@luizfelipebrasil/humangov-deployment-of-a-reusable-saas-multi-tenant-aws-infrastructure-using-terraform-modules-9b0bb93570d1?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b0bb93570d1</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 12:26:54 GMT</pubDate>
            <atom:updated>2025-10-22T13:27:42.953Z</atom:updated>
            <content:encoded><![CDATA[<h3>HumanGov: Deployment of a reusable Saas Multi-tenant AWS Infrastructure using Terraform Modules Securely Storing Terraform Configuration Files On GitHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XLl2V9J8fyAVj8lqWd6b7A.png" /><figcaption>Figure 1 — Technology</figcaption></figure><p>In this project, based on a real-world scenario, I executed the implementation of a ‘reusable’ and ‘multi-tenant’ SaaS infrastructure on AWS using Terraform modules.</p><p>The main objective of this project was to create a continuous, efficient, and cost-effective method for deploying and managing SaaS applications on AWS.</p><p>The project development was structured considering the following phases:</p><ol><li>Requirements Gathering</li></ol><p>In this phase, the following premises were defined:</p><ul><li>The solution must be implemented on the AWS cloud.</li><li>Due to user experience requirements, the instances hosting the application need to be deployed across at least three different statets in the context of high availability.</li><li>The solution must utilize DevOps practices and the Terraform infrastructure provisioning tool (IaC) to ensure reusability, automation, standardization, agility, and security.</li><li>It will be necessary to store user data and application files in a segregated manner.</li></ul><p>2. Service Definition and Solution Architecture</p><p>Based on the validated requirements, I defined that the following services and tools would be used:</p><ul><li><strong>Terraform</strong> for automated infrastructure provisioning on the Cloud.</li><li><strong>GitHub</strong> for secure storage of configuration files.</li><li><strong>Amazon EC2</strong> for application hosting.</li><li><strong>Amazon Security Group</strong> for applying access security rules.</li><li><strong>Amazon DynamoDB</strong> for lock control and user data storage.</li><li><strong>Amazon S3</strong> for storing the Terraform state file (Remote Backend) and application data.</li></ul><p>Based on this scenario, the following solution architecture was defined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QI4_02m-SK8ul3IoAexjQw.png" /><figcaption>Figure 2 — Solution Architecture</figcaption></figure><p>3. Project Implementation</p><p>The project implementation was divided into three main steps:</p><p>3.1 Creating the Terraform Modules Structure</p><p>In this phase, I organized the infrastructure into reusable and well-defined modules, promoting standardization, easier maintenance, and code scalability, where:</p><p><strong><em>human-gov-infrastructure - </em></strong>Repository created on GitHub and synchronized with my IDE (VS Code).</p><p><strong><em>terraform</em></strong> - Root directory to store the Terraform files.</p><p><strong><em>modules/aws_humangov_infrastructure</em></strong> - Directory created to store the module’s .tf files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_gHJU9066BY0WbAEnqnFA.png" /><figcaption>Figure 3 — Terraform Module Structure</figcaption></figure><p>3.2 Creating the Module Configuration Files</p><p>In this step, I created the Terraform module configuration files, which included:</p><ul><li><strong><em>variables.tf</em></strong> - File containing variable declarations and descriptions.</li><li><strong><em>main.tf</em></strong> - File with the declarations of the resources to be created.</li><li><strong><em>outputs.tf</em></strong> - File containing the declaration of output values for visualization after resource creation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F1gdAMMyf9xzqBpuZ59OPg.png" /><figcaption>Figure 4 — Terraform Module Configuration Files</figcaption></figure><p>3.3 Creating the Root Folder Configuration Files</p><p>In this step, I created the necessary files in the root directory to implement the solution using the module:</p><ul><li><strong><em>variables.tf</em></strong> - In this file, I included the default values [“california”, “florida”, “texas”] for the “states” variable.</li><li><strong><em>main.tf </em></strong>- In this file, I included the provider and module blocks to implement the iteration logic and the creation of resources based on the states/regions.</li><li><strong><em>outputs.tf</em></strong> - In this file, I included the values for the iteration and display of the created resources.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRCwoz_n2IhLv7suI7-NLA.png" /><figcaption>Figure 5 — Terraform Root Folder Configuration Files</figcaption></figure><p>3.4 Resource Creation</p><p>After creating the files, I executed the steps of the “Core Terraform Workflow” along with subcommands for resource implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GbqfHwc--3sWuQEKdzujhg.png" /><figcaption>Figure 6 — Terraform Resource Creation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFBmTgS1UYedhQw8yUZKHw.png" /><figcaption>Figure 7 — Terraform Resources Created per State</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IrKIiwa1NPEAQBIZdVjl7g.png" /><figcaption>Figure 8 — Created EC2 Instances</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fRF-eTj7eLyLGb36CbC99w.png" /><figcaption>Figure 9 — Created S3 Buckets</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyWluWdV6FsyhkM3tiNN4A.png" /><figcaption>Figure 10 — Created DynamoDB Tables</figcaption></figure><p>3.5 Security Implementation</p><p>Below is the detail of the resources created to meet the security requirement, which demands the secure storage of the Terraform state file in an S3 bucket and an AWS DynamoDB table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1GI9b1Shc3XpE7CQrdzJA.png" /><figcaption>Figure 11 — S3 Bucket for “terraform.tfstate”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5SJ709F4JPWWaUj3C311g.png" /><figcaption>Figure 12 — DynamoDB Table for Concurrency Control (Lock)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTMds42jmANqvVfQ08LR-w.png" /><figcaption>Figure 13 — Creation of Remote “backend.tf” File (S3 / DynamoDB)</figcaption></figure><p>3.6 Synchronizing Used Files with GitHub</p><p>This phase was executed to synchronize the files developed with Terraform for creating the HumanGov application infrastructure between the local repository and the remote repository on GitHub.</p><p>As a first step, I created the .gitignore file to exclude sensitive information and temporary files generated by Terraform from being tracked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKEmxuyXO1P2tY3XNytbnw.png" /><figcaption>Figure 14 — Creation of “.gitignore” File</figcaption></figure><p>Following this, I performed the steps of the <strong>‘Git workflow’</strong> to synchronize the files between the local repository and the remote repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uPz-BTuCnZstaRTKc7d3Xw.png" /><figcaption>Figure 15 — GitHub File Synchronization</figcaption></figure><p>Conclusion</p><p>The implementation of this project details some of the main functionalities of Terraform and showcases the gains in agility, scalability, reusability, and security achieved through the use of this technology.</p><p>By combining Terraform modules, GitHub, and AWS resources, a robust solution that adhered to the project’s business requirements was successfully implemented.</p><p>The practical execution of these activities validates the successful completion of Module 3: Infrastructure as Code with Terraform, part of the MultiCloud, DevOps, and Artificial Intelligence (AI) Postgraduate Program.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b0bb93570d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HumanGov: Implementação de uma Infraestrutura ‘SaaS’, ‘Multi-tenant’ e ‘reutilizável’ na Aws…]]></title>
            <link>https://medium.com/@luizfelipebrasil/humangov-implementa%C3%A7%C3%A3o-de-uma-infraestrutura-saas-multi-tenant-e-reutiliz%C3%A1vel-na-aws-5841337e7ef2?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5841337e7ef2</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 01:46:01 GMT</pubDate>
            <atom:updated>2025-10-22T11:49:32.666Z</atom:updated>
            <content:encoded><![CDATA[<h3>HumanGov: Implementação de uma Infraestrutura ‘SaaS’, ‘Multi-tenant’ e ‘reutilizável’ na Aws, usando módulos do Terraform e armazenando os arquivos de configuração de forma segura no GitHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdsXoNca3_z7sxp-iu6ibw.png" /><figcaption>Figura 1- Tecnologia</figcaption></figure><p>Neste projeto baseado em um cenário do mundo real, executei a implementação de infraestrutura SaaS ‘reutilizável’ e ‘multi-tenant’ na AWS usando módulos do Terraform.</p><p>O objetivo principal deste projeto foi criar um método contínuo, eficiente e econômico para implantar e gerenciar aplicativos SaaS na AWS.</p><p>A elaboração do projeto foi desenvolvida considerando as seguintes etapas:</p><ol><li>Levantamento de premissas</li></ol><p>Nesta etapa foram definidas as seguintes premissas:</p><ul><li>A solução deverá ser implementada na cloud AWS.</li><li>Devido a experiência dos usuários, as instâncias que irão hospedar a aplicação precisam estar deployadas em pelo menos três estados diferentes.</li><li>A solução deverá utilizar de práticas DevOps e da ferramenta de aprovisionamento de infraestrutura Terraform (IaC) visando a reutilização, automação, padronização, agilidade e segurança da solução.</li><li>Será necessário armazenar de maneira segregada os dados dos usuários e os arquivos da aplicação.</li></ul><p>2. Definição de serviços e arquitetura de solução</p><p>Com base nas premissas validadas, defini que seriam utilizados os seguintes serviços e ferramentas:</p><ul><li>Terraform para aprovisionamento automatizado da infraestrutura na Cloud.</li><li>GitHub para armazenamento dos arquivos de configuração de forma segura.</li><li>Amazon EC2 para a hospedagem da aplicação.</li><li>Amazon Security Group para aplicação de regras de segurança de acesso.</li><li>Amazon DynamoDB para controle de locks e armazenamento dos dados dos usuários.</li><li>Amazon S3 para o armazenamento do arquivo terraform state (Backend remoto) e dos dados da aplicação.</li></ul><p>Com base neste cenário, foi possível definir a seguinte arquitetura de solução.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g8t7r2evS9KA2NDJDdz-QQ.png" /><figcaption>Figura 2- Arquitetura de Solução</figcaption></figure><p>3. Implementação do projeto</p><p>A implementação do projeto foi dividida em três principais etapas:</p><p>3.1 Criação da estrutura dos módulos do Terraform</p><p>Nesta etapa organizei a infraestrutura em módulos reutilizáveis e bem definidos, promovendo padronização, manutenção facilitada e escalabilidade do código, onde:</p><ul><li><strong><em>human-gov-infrastructure </em></strong><em>- </em>repositório criado no GitHub e sincronizado com minha IDE (VS Code).</li><li><strong><em>terraform - </em></strong>diretório raiz para armazenar os arquivos do terraform.</li><li><strong><em>modules/aws_humangov_infrastructure - </em></strong>diretório criado para armazenar os arquivos .tf do módulo.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_gHJU9066BY0WbAEnqnFA.png" /><figcaption>Figura 3- Terraform estrutura módulos</figcaption></figure><p>3.2 Criação dos arquivos de configuração do módulo</p><p>Nesta etapa criei os arquivos de configuração do módulo do Terraform que foram:</p><ul><li><strong><em>variables.tf</em></strong> - arquivo com a declaração da variável e a descrição.</li><li><strong><em>main.tf</em></strong> - arquivo com a declaração dos recursos a serem criados.</li><li><strong><em>outputs.tf</em></strong> - arquivo com a declaração dos values de output para visualização após a criação dos recursos.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F1gdAMMyf9xzqBpuZ59OPg.png" /><figcaption>Figura 4 - Arquivos de configuração Módulo Terraform</figcaption></figure><p>3.3 Criação dos arquivos de configuração da pasta root</p><p>Nesta etapa, para implementação da solução com o uso do módulo, criei os devidos arquivos no diretório root.</p><ul><li><strong><em>variables.tf - </em></strong>Neste arquivo incluí os valores default = [“california”, “florida”, “texas”] na variável “states”.</li><li><strong><em>main.tf - </em></strong>Neste arquivo incluí os blocos “provider” e “module” para a implementação do lógica de iteração e a criação dos recursos com base nos estados.</li><li><strong><em>outputs.tf - </em></strong>Neste arquivo incluí os valores para a iteração e amostragem dos recursos criados.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRCwoz_n2IhLv7suI7-NLA.png" /><figcaption>Figura 5 - Arquivos de configuração terraform pasta root.</figcaption></figure><p>3.4 Criação dos recursos</p><p>Após a criação dos arquivos, executei os passos do “Core Terraform Workflow” além de subcomandos para a implementação dos recursos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GbqfHwc--3sWuQEKdzujhg.png" /><figcaption>Figura 6 - Criação de recursos Terraform</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFBmTgS1UYedhQw8yUZKHw.png" /><figcaption>Figura 7 - Terraform recursos criados por estado</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IrKIiwa1NPEAQBIZdVjl7g.png" /><figcaption>Figura 8 - Instâncias EC2 criadas</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fRF-eTj7eLyLGb36CbC99w.png" /><figcaption>Figura 9 - Buckets S3 criados</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyWluWdV6FsyhkM3tiNN4A.png" /><figcaption>Figura 10 - Tabelas criadas no DynamoDB</figcaption></figure><p>3.5 Implementação de segurança</p><p>Abaixo o detalhamento dos recursos criados para atender ao requisito de segurança que exige o armazenamento seguro do arquivo de estado do Terraform em um bucket S3 e em uma tabela DynamoDB na AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1GI9b1Shc3XpE7CQrdzJA.png" /><figcaption>Figura 11 - Bucket S3 para “terraform.tfstate”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5SJ709F4JPWWaUj3C311g.png" /><figcaption>Figura 12 - Tabela no DynamoDB para controle de concorrência (lock)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lTMds42jmANqvVfQ08LR-w.png" /><figcaption>Figura 13 - Criação arquivo “backend.tf” remoto (S3 / DynamoDB)</figcaption></figure><p>3.6 Sincronização dos arquivos utilizados com o GitHub</p><p>Etapa realizada para a execução da sincronização dos arquivos utilizados para a criação da infraestrutura da aplicação HumanGov, desenvolvidos com o Terraform, entre o repositório local e o repositório remoto no GitHub.</p><p>Como primeiro step criei o arquivo <strong><em>gitignore </em></strong>para excluir informações sensíveis e arquivos temporários gerados pelo Terraform de serem rastreados.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKEmxuyXO1P2tY3XNytbnw.png" /><figcaption>Figura 14 - Criação arquivo “gitignore”</figcaption></figure><p>Após isso, realizei os passos do “git workflow” para a sincronização dos arquivos do respositório local com o repositório remoto.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uPz-BTuCnZstaRTKc7d3Xw.png" /><figcaption>Figura 15 - GitHub sincronização de arquivos</figcaption></figure><p>Conclusão</p><p>A implementação deste projeto detalha algumas das principais funcionalidades do Terraform e evidência os ganhos em agilidade, escalabilidade, reuso e segurança através da utilização desta tecnologia.</p><p>Através do uso combinado dos módulos do Terraform, do GitHub e dos recursos da AWS, foi possível implementar uma solução robusta e aderente aos requisitos de negócio do projeto.</p><p>A execução prática destas atividades, valida a conclusão bem-sucedida do Projeto do Módulo 3 - Infraestrutura como código com Terraform da Pós-Graduação em MultiCloud, DevOps e Inteligência Artificial (IA).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5841337e7ef2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HumanGov: Implemented Git repositories for storing application and infrastructure (IaC) code…]]></title>
            <link>https://medium.com/@luizfelipebrasil/humangov-implemented-git-repositories-for-storing-application-and-infrastructure-iac-code-b6a04deda021?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6a04deda021</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 21:47:38 GMT</pubDate>
            <atom:updated>2025-09-30T21:47:38.699Z</atom:updated>
            <content:encoded><![CDATA[<h3>HumanGov: Implemented Git repositories for storing application and infrastructure (IaC) code, utilizing AWS and GitHub resources.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_q0fVHf2x69W2RzJJaF8w.jpeg" /><figcaption>Figure 1 — Services and Technologies</figcaption></figure><p>In this real-world scenario project, I established segregated Git repositories for storing the code of a SaaS application and its infrastructure (IaC), utilizing AWS and GitHub resources.</p><p>This initiative aimed to implement the development and operations workflow for the services between the Development and DevOps Engineering teams, strictly adhering to the principles and practices of the DevOps culture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*kPg8I_XNBLbioImkdWUi8Q.png" /><figcaption>Figure 2- DevOps Culture</figcaption></figure><p>Based on this premise, the project was structured considering the following stages:”</p><p>1- Objective</p><p>Implement a secure and efficient solution by utilizing:</p><ul><li>Agile Methodology for project implementation.</li><li>Implementing a secure, scalable, and highly available code version control system.</li><li>DevOps culture and practices for solution development and operation.</li><li>Cloud Infrastructure usage.</li><li>Conducting a Proof of Concept (PoC) for operational validation.</li></ul><p>2- Solution Architecture Definition</p><p>Based on the proposed scenario, I designed the following solution architecture, considering the use of the following components:</p><ul><li><strong>VS Code:</strong> IDE utilized for code development, Git repository creation, and integration with GitHub.</li><li><strong>AWS EC2:</strong> Instance used within VS Code to host the code and the application.</li><li><strong>Git &amp; GitHub:</strong> Distributed code version control system.</li></ul><p>3- Project Workflow and Construction</p><p>3.1 GitHub</p><p>A distributed code repository service, where it was necessary to create two repositories for segregated team operations, as per the project scope:</p><ul><li>Application Code Repository: <strong>human-gov-application</strong></li><li>IaC Repository: <strong>human-gov-infrastructure</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HbMfmz5wNxgxWVvNh2i58w.png" /><figcaption>Figure 3- GitHub Repositories</figcaption></figure><p>3.2 AWS EC2- Instance developed for VS Code usage and code hosting</p><p>As part of the project scope, I developed an EC2 instance to host both the code and the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkmZ2etDpZOWA0X7Qr4QHQ.png" /><figcaption>Figure 4- EC2 Instance</figcaption></figure><p>3.3 VS Code- IDE Utilization</p><p>For the solution’s development, I determined that VS Code would be used for code development activities, local Git repository creation, and integration with GitHub for distributed version control.</p><p>The following activities were executed via VS Code:</p><ul><li>Preparation and configuration of the VS Code environment for connectivity with the EC2 instance (Remote Explorer).</li><li>Development and adjustments of application and infrastructure code.</li><li>Git installation, command execution, and repository creation (e.g., git add / git commit / git push).</li><li>Configuration of global Git user information for security and activity tracking (commits).</li><li>Cloning of repositories created on GitHub.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htEdQSGHokYPQCuTMUG5Xw.png" /><figcaption>Figura 5- VS Code and cloned directories</figcaption></figure><p>4- Proof of Concept (PoC)</p><p>To serve as a proof of concept for code control, I simulated a scenario where Developer 1 incorrectly modified the application code and pushed the change to GitHub, resulting in an application failure.</p><p>For the correction, Developer 2 was called upon to fix the code and revert the disruptive commit made by Developer 1.</p><p>This corrective action was executed directly by utilizing the commit’s hash that caused the application failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i1rWs9O6D8eZlVSLoB1NWQ.png" /><figcaption>Figure 6- PoC code reversion</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhDx6p5YHSNtGFv_Rkh1aw.png" /><figcaption>Figure 7- Application Repository Commits</figcaption></figure><p>5- Conclusion</p><p>The implementation of this real-world scenario project reinforces my depth of knowledge in DevOps practices geared toward agile project implementation, the use of Git repository tooling, and GitHub as a service for code version control.</p><p>The practical execution of these activities validates the successful completion of Module 2 — Code Versioning with Git &amp; GitHub Project, from the Post-Graduate Program in MultiCloud, DevOps, and Artificial Intelligence (AI).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6a04deda021" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HumanGov: Implementação de repositórios Git para armazenamento dos códigos de aplicação e…]]></title>
            <link>https://medium.com/@luizfelipebrasil/humangov-implementa%C3%A7%C3%A3o-de-reposit%C3%B3rios-git-para-armazenamento-dos-c%C3%B3digos-de-aplica%C3%A7%C3%A3o-e-8f0536433fb0?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f0536433fb0</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 21:17:22 GMT</pubDate>
            <atom:updated>2025-09-30T21:18:29.115Z</atom:updated>
            <content:encoded><![CDATA[<h3>HumanGov: Implementação de repositórios Git para armazenamento dos códigos de aplicação e infraestrutura (IaC) utilizando recursos da AWS e do GitHub.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OCLYJShRr1Nm_6MMz77g3Q.png" /><figcaption>Figura 1- Serviços e tecnologias</figcaption></figure><p>Neste projeto baseado em um cenário do mundo real, realizei a criação de repositórios Git para armazenamento dos códigos de uma aplicação SaaS e também da infraestrutura (IaC) de maneira segregada utilizando recursos da AWS e do GitHub.</p><p>Esta ação teve como objetivo implementar o fluxo de desenvolvimento e operação dos serviços entre os times de desenvolvimento e de engenharia DevOps seguindo os princípios e práticas da cultura DevOps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MxP_DmT6Pbm9j_L7yRS9Cg.png" /><figcaption>Figura 2- Cultura DevOps</figcaption></figure><p>Com base nesta premissa o projeto foi construído considerando as seguintes etapas:</p><p>1- Objetivo</p><p>Implementar uma solução segura e eficiente utilizando:</p><ul><li>Metodologia Ágil para implementação de projetos.</li><li>Implementação de ferramenta de controle de versão de código segura, escalável e de alta disponibilidade.</li><li>Práticas e cultura DevOps para desenvolvimento e operação de soluções.</li><li>Utilização de infra Cloud.</li><li>Realização de prova de conceito (PoC) para validação operacional</li></ul><p>2- Definição de arquitetura de solução</p><p>Com base no cenário proposto desenvolvi a seguinte arquitetura de solução considerando a utilização dos seguintes componentes:</p><ul><li><strong>VS Code</strong>: IDE utilizada para o desenvolvimento de código, criação do repositório Git e integração com o GitHub.</li><li><strong>AWS EC2</strong>: Instância utilizada no VS Code para hospedar o código e a aplicação.</li><li><strong>Git &amp; GitHub</strong>: Sistema de controle de versão de código distribuído.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxH4E_1HTlxjHjeuV-oOQA.png" /><figcaption>Figura 3- Arquitetura de solução</figcaption></figure><p>3- Fluxo de atividades e construção do projeto.</p><p>3.1 <strong>GitHub</strong></p><p>Serviço de repositório de código distribuído, nele foi necessário realizar a criação de dois repositórios para a atuação dos times de maneira segmentada conforme escopo do projeto.</p><ul><li>Repositório para código da aplicação: <strong>human-gov-application</strong></li><li>Repositório para IaC: <strong>human-gov-infrastructure</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HbMfmz5wNxgxWVvNh2i58w.png" /><figcaption>Figura 4- Repositórios no GitHub</figcaption></figure><p>3.2 <strong>AWS EC2</strong>- Instância desenvolvida para utilização no VS Code e hospedagem de código.</p><p>Como parte do escopo do projeto, desenvolvi uma instância do EC2 para hospedar o código e a aplicação.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkmZ2etDpZOWA0X7Qr4QHQ.png" /><figcaption>Figura 5- Instância EC2</figcaption></figure><p>3.3 <strong>VS Code</strong>- Utilização IDE</p><p>Para o desenvolvimento da solução, defini que utilizaria o VS Code para as atividades de desenvolvimento de código, criação de repositório Git local e integração com o GitHub para controle de versão distribuído.</p><p>Através do VS Code foram executadas as seguintes atividades:</p><ul><li>Preparação e configuração de ambiente do VS Code para conectividade com a EC2 (Remote Explorer).</li><li>Desenvolvimento e ajustes de códigos da aplicação e da infraestrutura.</li><li>Instalação do Git, execução de atividades e criação de repositórios (ex: git add / git commit / git push).</li><li>Configuração de informações globais de usuários do Git para segurança e rastreio de atividades (commites).</li><li>Clone dos repositórios criados no GitHub.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htEdQSGHokYPQCuTMUG5Xw.png" /><figcaption>Figura 6- VS Code e diretórios clonados</figcaption></figure><p>4- Prova de conceito (PoC)</p><p>Como prática de prova de conceito de controle de código, foi realizada a simulação de um cenário onde o desenvolvedor1 realizou uma alteração incorreta no código da aplicação e implementou no GitHub, o que ocasionou a quebra da aplicação.</p><p>Como correção, o desenvolvedor2 foi acionado para ajustar o código e reverter o commit realizado pelo desenvolvedor1 que causou o impacto na aplicação.</p><p>Esta atividade foi realizada utilizando a <strong>hash </strong>do commit que causou a quebra da aplicação.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i1rWs9O6D8eZlVSLoB1NWQ.png" /><figcaption>Figura 7- PoC reversão de código</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhDx6p5YHSNtGFv_Rkh1aw.png" /><figcaption>Figura 8- Commits repositório de aplicação</figcaption></figure><p>5- Conclusão</p><p>A implementação deste projeto baseado no cenário real reforça meu aprofundamento nas práticas de DevOps voltadas para a implementação de projetos ágeis, utilização de ferramenta de repositório Git e repositório como serviço GitHub para controle de versionamento de código.</p><p>A execução prática destas atividades, valida a conclusão bem-sucedida do Projeto do Módulo 2 — Versionamento de código com Git &amp; GitHub da Pós-Graduação em MultiCloud, DevOps e Inteligência Artificial (IA).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f0536433fb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP On-Premises to AWS Migration Project]]></title>
            <link>https://medium.com/@luizfelipebrasil/sap-on-premises-to-aws-migration-project-c930e58f2b01?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c930e58f2b01</guid>
            <category><![CDATA[aws-pricing-calculator]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 09:48:05 GMT</pubDate>
            <atom:updated>2025-09-15T09:48:05.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMSfjs3oRtaM-isZHBrPzw.png" /><figcaption><strong>Figure 1</strong> — Services and Technologies</figcaption></figure><p>This project involved creating an executive presentation detailing the infrastructure costs for migrating the workloads of an SAP application from a corporate Data Center to the AWS Cloud.</p><p>The activity plan was built considering the following steps:</p><p><strong>1. Scope</strong></p><p>As part of the scope definition, a project request was opened, asking for a migration plan for a scenario where the SAP application was running in a corporate Data Center with environments split into Production, Homologation, and Development/Testing.</p><p><strong>2. As-Is Architecture- Detailing On-Premises SAP Workloads</strong></p><p>In this phase, I performed a functional detailing of the SAP workloads’ infrastructure, which included:</p><p><strong>2.1 Application - Production Environment:</strong></p><ul><li>5 application servers (8/16)</li><li>1 Application Load Balancer</li><li>2TB of Block Storage</li><li>1TB of NFS Storage</li></ul><p><strong>2.2 Application - Stage Environment</strong></p><ul><li>3 application servers (4/8)</li><li>1 Application Load Balancer</li><li>1TB of Block Storage</li><li>500GB of NFS Storage</li></ul><p><strong>2.3 Application - Development/Testing Environment</strong></p><ul><li>2 application servers (4/8)</li><li>1 Application Load Balancer</li><li>500GB of Block Storage</li><li>250GB of NFS Storage</li></ul><p><strong>2.4 Oracle Database - Production Environment</strong></p><ul><li>2 Oracle DBs (38/156)</li><li>3 TB of storage</li></ul><p><strong>2.5 Oracle Database - Stage Environment</strong></p><ul><li>2 Oracle DBs (16/64)</li><li>3 TB of storage</li></ul><p><strong>2.6 Oracle Database- Development/Testing Environment</strong></p><ul><li>2 Oracle DBs (8/30)</li><li>3 TB of storage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAWiEB6UsU4Npr2a7D_c8w.png" /><figcaption><strong>Figure 2</strong> — On-Premises Solution Architecture</figcaption></figure><p>3. <strong>Planning</strong></p><p>In this phase, I validated the minimum requirements for building the solution architecture on the AWS cloud and detailed the costs.</p><p>The following requirements were considered:</p><ul><li><strong>Compliance and LGPD:</strong> For data security and protection, the application workloads should be implemented in Brazil.</li><li><strong>Operations:</strong> The SAP ERP workloads support critical business operational flows, so they must have a high level of operational security and support for failures.</li><li><strong>High Availability:</strong> The high availability of the SAP solution workloads must be considered.</li><li><strong>Cost:</strong> The project must consider viable solutions for reducing implementation costs.</li></ul><p>4. <strong>Solution Architecture</strong></p><p>Based on the details from the previous steps, I developed a proposed cloud solution architecture using the following services:</p><ul><li><strong>Amazon EC2:</strong> Virtual machines that will be used to host the SAP application.</li><li><strong>Amazon Elastic Block Storage (EBS):</strong> EC2 instances use EBS volumes as their boot disks, where the operating system and applications are installed. This allows the instance to be started and restarted quickly.</li><li><strong>Amazon Elastic Load Balancer (ELB):</strong> A service used to implement high-availability traffic at the application level for SAP.</li><li><strong>Amazon Elastic File System (EFS):</strong> A system that will be used for shared file manipulation across EC2 instances.</li><li><strong>Amazon RDS for Oracle:</strong> The Oracle engine of RDS was chosen for data storage, considering the use of already-acquired licenses.</li></ul><p>5. <strong>Cost Detailing and Estimation</strong></p><p>After defining the cloud solution architecture, I created a cost estimate using the <a href="https://calculator.aws/#/"><strong>AWS Calculator</strong></a>. The illustrations below detail the steps taken to build the estimate.</p><p><strong>5.1 AWS EC2 PRD — Specification and Cost Estimation</strong></p><ul><li><strong>Region:</strong> São Paulo</li><li><strong>Tenancy:</strong> Shared instances</li><li><strong>Number of Instances:</strong> 5</li><li><strong>Instance Type:</strong> t3a</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oe-llnVt-cvJx_iykWSCCQ.png" /><figcaption><strong>Figure 3</strong> — Amazon EC2 PRD Instance Cost Estimate</figcaption></figure><p>To meet the cost reduction requirement for the solution, I recommended using a <strong>Compute Savings Plan (EC2, Fargate, and Lambda)</strong> with a three-year term and no upfront payment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-nj7K5LdyTjfFeVVPKHwQ.png" /><figcaption><strong>Figure 4</strong> — EC2 Savings Plans</figcaption></figure><p>I sized the other EC2 instances for the Dev and HML environments by following their respective technical requirements and using the same cost reduction approach.</p><p>5.2 <strong>AWS Elastic Load Balancer (ELB) PRD/STG/DEV — Specification and Cost Estimation</strong></p><ul><li><strong>Region:</strong> São Paulo</li><li><strong>ELB:</strong> Application Load Balancer</li><li><strong>Number of ELBs:</strong> 3</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3UWfTKOkK8f1IkaYh-Ixg.png" /><figcaption><strong>Figure 5</strong> — AWS ELB PRD/HML/DEV Cost Estimate</figcaption></figure><p>5.3 <strong>Amazon Elastic File System (EFS) PRD/STG/DEV — Specification and Cost Estimation</strong></p><ul><li><strong>Region:</strong> São Paulo</li><li><strong>Throughput:</strong> Elastic</li><li><strong>Desired Storage Capacity:</strong> 1750 GB/month</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GGU9n1NyBxUa6azi8X4cmQ.png" /><figcaption><strong>Figure 6</strong> — AWS EFS PRD/HML/DEV Cost Estimate</figcaption></figure><p>5.4 <strong>Amazon RDS for Oracle PRD — Specification and Cost Estimation</strong></p><ul><li><strong>Region:</strong> São Paulo</li><li><strong>Nodes:</strong> 2</li><li><strong>Instance Type</strong>: db.m4</li><li><strong>Deployment Option:</strong> Multi-AZ (*high availability)</li><li><strong>Storage per Instance:</strong> 1500 GB</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFCpLus-dUOzv56BX3mY1w.png" /><figcaption><strong>Figure 7</strong> — Amazon RDS for Oracle PRD Cost Estimate</figcaption></figure><p>I sized the other RDS instances for the Dev and HML environments by following their respective technical requirements.</p><p>5.5 <strong>AWS Support</strong></p><p>Finally, I included the cost estimate for AWS Support, considering the critical operational nature of the SAP solution. This requires a response time for failures from AWS within 15 minutes, which is provided by the <strong>Enterprise Support plan</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEC0BIz0DqWzgJSZKvKFIA.png" /><figcaption><strong>Figure 8</strong> — AWS Support Cost Estimate</figcaption></figure><p>6. <strong>Overall Cost Estimate</strong></p><p>After detailing all the necessary services for building the solution, I obtained the following cost estimate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUnMvOYIVsQxM6DkM3v8oQ.png" /><figcaption><strong>Figure 9</strong> — Overall Cost Estimate</figcaption></figure><p><strong>Monthly Cost</strong>: $39,826.03<br><strong>Annual Cost</strong>: $477,912.36</p><p>7. <strong>Cloud Investment Defense Committee</strong></p><p>After completing all the detailed planning, I prepared a presentation to explain the project and the cost forecast to the technology board committee.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2lDZtmAo0yYXzZTkC_UNA.png" /><figcaption><strong>Figure 10</strong> — Technology Board Committee</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfNw8y5Lq_trW_0x_owNPw.png" /><figcaption><strong>Figure 11</strong> — Technology Board Committee Monthly Cost</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxYOByxZe5OU4yqUFVSxVw.png" /><figcaption><strong>Figure 12</strong> — Technology Board Committee Annual Cost</figcaption></figure><p>8. <strong>Conclusion</strong></p><p>The journey to complete each step of this project reinforced my deep technical knowledge of AWS services like <strong>EC2</strong>, <strong>ELB</strong>, <strong>RDS</strong>, <strong>EBS</strong>, and <strong>EFS</strong>, enabling me to build a modern, secure, and scalable solution proposal.</p><p>By using the <a href="https://calculator.aws/#/"><strong>AWS Calculator</strong></a>, I was able to translate the solution architecture plan into a budget forecast. This also helps with the <strong>TCO</strong> and <strong>ROI</strong> analysis process for the cloud migration journey.</p><p>Finally, this material validates the successful completion of the practical project for Module 6 — SAP Migration Strategy to AWS of the Post-Graduation in MultiCloud, DevOps, and Artificial Intelligence (AI) program at The Cloud Bootcamp.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c930e58f2b01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Projeto de migração SAP On-Premises para a AWS]]></title>
            <link>https://medium.com/@luizfelipebrasil/projeto-de-migra%C3%A7%C3%A3o-sap-on-premises-para-a-aws-ac70fb50d0e0?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac70fb50d0e0</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[aws-pricing-calculator]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Sat, 13 Sep 2025 02:10:47 GMT</pubDate>
            <atom:updated>2025-09-15T08:54:20.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kmku2m8AyRJz4UEVTpQ9pQ.png" /><figcaption>Figura 1 — Serviços e Tecnologias</figcaption></figure><p>Este projeto previa a elaboração de uma apresentação executiva com o detalhamento dos custos de infra para a execução da migração dos workloads de uma aplicação SAP de um DataCenter corporativo para a Cloud AWS.</p><p>O planejamento das atividades foi construído considerando os seguintes passos:</p><ol><li><strong>Escopo</strong></li></ol><p>Como definição do escopo, foi realizada a abertura da demanda de projeto com a solicitação de um plano de migração considerando o cenário onde a aplicação SAP estava sendo executada em um DataCenter corporativo com o ambiente dividido nas camadas de Produção, Homologação e Desenvolvimento/Testes.</p><p>2. <strong>Arquitetura As Is</strong>- <strong>Detalhamento workloads SAP On Premises</strong></p><p>Nesta etapa realizei o detalhamento funcional da infra dos workloads SAP onde tínhamos:</p><p>2.1 Aplicação - Ambiente de produção:</p><ul><li>5 servidores de aplicação (8/16)</li><li>1 Load Balancer (Aplicação)</li><li>2TB de Block Storage</li><li>1TB de NFS Storage</li></ul><p>2.2 Aplicação - Ambiente de homologação</p><ul><li>3 servidores de aplicação (4/8)</li><li>1 Load Balancer (Aplicação)</li><li>1TB de Block Storage</li><li>500GB de NFS Storage</li></ul><p>2.3 Aplicação - Ambiente de desenvolvimento/teste</p><ul><li>2 servidores de aplicação (4/8)</li><li>1 Load Balancer (Aplicação)</li><li>500GB de Block Storage</li><li>250GB de NFS Storage</li></ul><p>2.4 Banco de dados Oracle- Ambiente de produção</p><ul><li>2 Oracle DBs (38/156)</li><li>3 TB de storage</li></ul><p>2.5 Banco de dados Oracle - Ambiente de homologação</p><ul><li>2 Oracle DBs (16/64)</li><li>3 TB de storage</li></ul><p>2.6 Banco de dados Oracle - Ambiente de desenvolvimento/teste</p><ul><li>2 Oracle DBs (8/30)</li><li>3 TB de storage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YpvO-WvxqrZmD7l8oURKrA.png" /><figcaption>Figura 2 — Arquitetura de Solução On-Premises</figcaption></figure><p>3. <strong>Planejamento</strong></p><p>Nesta etapa foram realizadas validações de requisitos mínimos para a construção da arquitetura de solução na cloud AWS e o detalhamento de custos.</p><p>Foram considerados os seguintes requisitos:</p><ul><li><strong>Compliance e LGPD</strong> - Por questões de segurança e proteção dos dados, os workloads da aplicação deveriam ser implementados no Brasil.</li><li><strong>Operação</strong> - Os workloads do ERP SAP suportam fluxos operacionais críticos de negócio, devendo possuir elevado nível de segurança operacional e suporte para o caso de falhas.</li><li><strong>Alta disponibilidade</strong>- Deve ser considerada a alta disponibilidade dos workloads da solução SAP.</li><li><strong>Custo</strong> - O projeto deve considerar soluções viáveis para a redução de custos em sua implementação.</li></ul><p>4. <strong>Definição arquitetural</strong></p><p>Com base no detalhamento das etapas anteriores, elaborei uma proposta de arquitetura de solução cloud indicando a utilização dos seguintes serviços:</p><ul><li><strong>Amazon EC2</strong>- Máquinas virtuais que serão utilizadas para a hospedagem da aplicação SAP.</li><li><strong>Amazon Elastic Block Storage (EBS)</strong>- As instâncias do EC2 usam volumes EBS como seus discos de inicialização, onde o sistema operacional e as aplicações são instalados. Isso permite que a instância seja iniciada e reiniciada rapidamente.</li><li><strong>Amazon Elastic Load Balancer (ELB)</strong>- Serviço utilizado para a implementação de alta disponibilidade de tráfego no nível de aplicação para o SAP.</li><li><strong>Amazon Elastic File System (EFS)</strong>- Sistema que será utilizado para a manipulação de arquivos compartilhados nas instâncias EC2.</li><li><strong>Amazon RDS for Oracle</strong>- Definida a utilização da engine Oracle do RDS para o armazenamento dos dados considerando a utilização de licenças já adquiridas.</li></ul><p>5. <strong>Detalhamento e estimativa de custo</strong></p><p>Após a definição da arquitetura de solução na cloud, elaborei uma estimativa de custo utilizando a <a href="https://calculator.aws/#/"><strong><em>calculadora da AWS</em></strong></a>, as ilustrações abaixo detalham os passos executados para a construção da estimativa.</p><p>5.1 <strong>AWS</strong> <strong>EC2 PRD</strong>- Especificação e estimativa de custo</p><p>Região: São Paulo</p><p>Locação: Instâncias compartilhadas</p><p>Número de Instâncias: 5</p><p>Tipo de instância: t3a</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oe-llnVt-cvJx_iykWSCCQ.png" /><figcaption>Figura 3- Estimativa de custo instância Amazon EC2 PRD</figcaption></figure><p>Visando atender ao requisito de redução de custos na solução, indiquei o uso do compute savings plan (EC2, Fargate e Lambda) considerando o prazo de reserva de 3 anos e sem pagamento adiantado.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-nj7K5LdyTjfFeVVPKHwQ.png" /><figcaption>Figura 4- EC2 Saving Plans</figcaption></figure><p>Realizei o dimensionamento das demais instâncias EC2 para os ambientes de DEV e HML seguindo os seus respectivos requisitos técnicos e com a mesma abordagem de redução de custos.</p><p>5.2 <strong>AWS Elastic Load Balancer (ELB) PRD/HML/DEV- </strong>Especificação e estimativa de custo</p><p>Região: São Paulo</p><p>ELB: <strong>Application</strong> Load Balancer</p><p>Número de de ELB: 3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3UWfTKOkK8f1IkaYh-Ixg.png" /><figcaption>Figura 5- Estimativa de custo AWS ELB PRD/HML/DEV</figcaption></figure><p>5.3 <strong>Amazon Elastic File System (EFS) PRD/HML/DEV- </strong>Especificação e estimativa de custo</p><p>Região: São Paulo</p><p>Throughput: Elástico</p><p>Capacidade de armazenamento desejada: 1750 GB/mês *considerando os três ambientes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GGU9n1NyBxUa6azi8X4cmQ.png" /><figcaption>Fiugra 6- Estimativa de custo AWS EFS PRD/HML/DEV</figcaption></figure><p>5.4 <strong>Amazon RDS for Oracle PRD- </strong>Especificação e estimativa de custo</p><p>Região: São Paulo</p><p>Nós: 2</p><p>Opção de implementação: MultiAz (*alta disponibilidade)</p><p>Quantidade de armazenamento por instância: 1500 GB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFCpLus-dUOzv56BX3mY1w.png" /><figcaption>Figura 7- Estimativa de custo <strong>Amazon RDS for Oracle PRD</strong></figcaption></figure><p>Realizei o dimensionamento das demais instâncias de RDS para os ambientes de DEV e HML seguindo os seus respectivos requisitos técnicos.</p><p>5.5 <strong>AWS Suporte</strong></p><p>Por fim, incluí a estimativa de custo para o suporte AWS considerando o cenário crítico de operação da solução SAP, onde o atendimento para o caso de falhas deve ser realizado pela AWS em até 15 minutos através do <strong>plano de suporte empresarial</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEC0BIz0DqWzgJSZKvKFIA.png" /><figcaption>Figura 8- Estimativa de custo AWS Suporte</figcaption></figure><p>6. Estimativa de custo geral</p><p>Após o detalhamento de todos os serviços necessários para a construção da solução, obtive a seguinte estimativa de custo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUnMvOYIVsQxM6DkM3v8oQ.png" /><figcaption>Figura 9- Estimativa custo geral</figcaption></figure><p><strong>Custo Mensal</strong>: $ 39,826.03</p><p><strong>Custo Anual</strong>: $ 477,912,36</p><p>7. Comitê de defesa de investimentos em Cloud</p><p>Após a conclusão de todo o planejamento detalhado, elaborei uma apresentação para a explicação do projeto e da previsão de custos no comitê da diretoria de tecnologia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2lDZtmAo0yYXzZTkC_UNA.png" /><figcaption>Figura 10- Comitê diretoria de tecnologia</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rA5FSscI5uMFAXj9-2oxw.png" /><figcaption>Figura 11- Comitê diretoria de tecnologia custo mensal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lVhg4ZyzdtoNQu22plXZtg.png" /><figcaption>Figura 12- Comitê diretoria de tecnologia custo anual</figcaption></figure><p>8- <strong>Conclusão</strong></p><p>A trilha para a elaboração de cada etapa deste projeto reforça meu aprofundamento no conhecimento técnico dos serviços da AWS EC2, ELB, RDS, EBS e EFS permitindo construir uma proposta de solução moderna, segura e escalável.</p><p>Através do uso da calculadora da AWS foi possível traduzir o plano de arquitetura de solução deste projeto em previsão orçamentária, o que auxilia também no processo de análise de TCO e ROI da jornada de migração de serviços para a cloud.</p><p>Por fim, este material valida a conclusão bem-sucedida do Projeto prático do Módulo 6 — Estratégia de Migração SAP para AWS da Pós-Graduação em MultiCloud, DevOps e Inteligência Artificial (IA) da The Cloud Bootcamp.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac70fb50d0e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Automation and Security: Provisioning EC2 instances using tools like Terraform (IaC) and AWS…]]></title>
            <link>https://medium.com/@luizfelipebrasil/cloud-automation-and-security-provisioning-ec2-instances-using-tools-like-terraform-iac-and-aws-6fbcfbc8e0fd?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fbcfbc8e0fd</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Wed, 10 Sep 2025 21:40:07 GMT</pubDate>
            <atom:updated>2025-09-11T08:25:12.775Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloud Automation and Security: Provisioning EC2 instances using tools like Terraform (IaC) and AWS Systems Manager to automate security agent installation on instances.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKdof7cu7jfz9EzF6PRNpw.png" /></figure><p>Continuing my journey of implementing practical projects based on real-world scenarios within the Postgraduate Program in Multi-Cloud, DevOps &amp; Artificial Intelligence, I took on the challenge of this project as a DevSecOps Engineer, implementing a set of EC2 instances and the infrastructure in an automated way using Terraform (Infrastructure as Code — IaC).</p><p>Additionally, it was necessary to perform the automated installation of a specific security agent across all instances.</p><p>After provisioning the infrastructure, I used AWS Systems Manager and its Run Command feature to automate the installation of the security agents. I also leveraged Amazon Simple Notification Service (SNS) to send an email notification confirming that the entire process was successfully completed.</p><p>The project implementation plan was designed and executed based on the following steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*GhpM4UWgOKeqPvdY1KCocA.png" /><figcaption>Figure 1 — Project stages</figcaption></figure><ol><li><strong>Scope Definition</strong></li></ol><p>In this phase, the following scope was defined:</p><p><strong>1.1</strong> Beginning the cloud journey for the DevSecOps area.</p><p><strong>1.2</strong> Automation tools for the implementation of resources, security practices, and notifications in the cloud environment.</p><p><strong>1.3</strong> Use of virtual machines in a test environment.</p><p><strong>1.4</strong> Deployment of corporate security agents on machines/servers.</p><p><strong>2. Requirements Validation</strong></p><p>At this stage, the minimum organizational requirements to support the project were discussed and validated, which included:</p><p><strong>2.1</strong> Use of only one organizational cloud account.</p><p><strong>2.2</strong> High availability across multiple AZs was not required.</p><p><strong>2.3</strong> Use of a general-purpose virtual machine from the “t2” family.</p><p><strong>2.4</strong> Implementation of security policies based on the common principle of least privilege.</p><p>3. <strong>Planning</strong></p><p>Based on the previous steps, the following plan was established:</p><p><strong>3.1</strong> Use of AWS Cloud for project implementation.</p><p><strong>3.2</strong> Creation and use of only two EC2 instances for solution validation.</p><p><strong>3.3</strong> Utilization of AWS services — EC2, Systems Manager (SSM), SNS and the Terraform (IaC) tool as the core components of the solution, where:</p><ul><li><strong>AWS EC2</strong> — Instance type defined to host applications and corporate security agents.</li><li><strong>AWS Systems Manager (SSM)</strong> — Hub used to automate security operational tasks in the cloud environment.</li><li><strong>AWS SNS</strong> — Service used to configure email notifications for the responsible party based on process status.</li><li><strong>Terraform (IaC)</strong> — Automation tool used for infrastructure creation and resource provisioning in the cloud.</li></ul><p>4. <strong>Architectural Technical Definition</strong></p><p>Based on the execution and completion of the previous steps, the proposed technical architecture was defined as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5nIFDSszczl4WNhBGpnYA.png" /><figcaption>Figure 2 — Technical architecture of solution</figcaption></figure><p>5. <strong>Implementation and Validation</strong></p><p>For the implementation, I defined that the workflow should follow the steps below:</p><p><strong>5.1 Terraform (IaC) — Setup</strong></p><p>I defined that the Terraform setup should consider the creation of resources within a single Availability Zone (AZ) and that infrastructure provisioning would be carried out via <strong>AWS CloudShell</strong>. In this way, it was not necessary to create or use a programmatic user for infrastructure deployment through an IDE (such as VS Code).</p><p>The Terraform provider file was configured as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0_VJ-rkOlrms7l26sSKPQ.png" /><figcaption>Figure 3 — Terraform (IaC) provider “us-east-1”</figcaption></figure><p>Based on the project scope, I built the main Terraform file (<strong>main.tf</strong>) as follows, where:</p><ul><li><strong>“data”</strong> — Specifies the type of image (AMI) to be used for creating the instances.</li><li>I created the variables <strong>“vpc_id”</strong>, <strong>“subnet_id”</strong>, and <strong>“key_name”</strong> to indicate the VPC, Subnet, and access keys for the instances that would be used in the resource creation process.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22vJi35pFqk5sYs7ZIB1ig.png" /><figcaption>Figure 4 — Terraform (IaC) principal archive (main)</figcaption></figure><p>I then proceeded to configure the main.tf file with the setup of the “security_group” resource, including inbound and outbound access rules, as well as the instance types (t2.micro, webserver 1, and webserver 2) that should be created, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNL98PVbk-39GnOaWujovQ.png" /><figcaption>Figure 5 — Terraform (IaC) resources (main)</figcaption></figure><p>5.2 CloudShell Setup and Resource Creation</p><p>After that, it was necessary to configure <strong>AWS CloudShell</strong> so that Terraform could be executed and the infrastructure provisioned.</p><p>I followed the Terraform installation steps in CloudShell, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S0XFNbVqeH5yI2i4jOATjQ.png" /><figcaption>Figure 6 — Terraform (IaC) installation on CloudShell</figcaption></figure><p>After completing the installation and configuration of Terraform in CloudShell, the resources were successfully created in the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UIv9hSI_GUESwwk0SGiC6g.png" /><figcaption>Figure 7 — Terraform (IaC) resource creation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BClHopdEwOMJ28bG1vjB5g.png" /><figcaption>Figure 8 — Implemented resources</figcaption></figure><p>5.3 AWS Systems Manager (SSM) and AWS SNS Setup</p><p>Starting the configuration of <strong>AWS Systems Manager (SSM)</strong>, it was necessary to create an IAM role with <strong>SNS policies</strong> to allow SSM to use the <strong>AWS SNS</strong> service for sending notifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mh_DsnrBnIfR-21iKUPwzQ.png" /><figcaption>Figure 9 — IAM Role “SystemsManagerToSNS”</figcaption></figure><p>It was also necessary to create the SNS topic and subscription, considering the notification should be sent via email (protocol).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*biUT5lpHT5-2V31H3hPKOA.png" /><figcaption>Figure 10 — Creation of topic ‘DevOpsNotification’</figcaption></figure><p>Continuing with the SSM setup, I created host management exclusively for the generated machines. The machine operational tasks I defined include:</p><ul><li>Updating the SSM Agent every two weeks.</li><li>Collecting instance inventory every 30 minutes.</li><li>Scanning and applying patches daily.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a7QRRnKv0wxRITFeJDWKEQ.png" /><figcaption>Figure 11 — SSM Host Management´s creating</figcaption></figure><p>After that, it was possible to start sessions with the machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aSzBmHN1C3dF0A9qjqcZPw.png" /><figcaption>Figure 12 — Target instances</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*D0tw0x8os3aQ2LZtdna9wQ.png" /><figcaption>Figure 13 - Session creation with the machines</figcaption></figure><p>Next, I executed the security Agent installation command on the machines (Shell Script).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HTY7XqIWMEIhn8-dPXngAw.png" /><figcaption>Figure 14 — Security Agent Installation (Shell Script)</figcaption></figure><p>I also included notification sending for all events that occurred on the instances, based on the already-created SNS topic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUrItX29h2igBX7qThOGWA.png" /><figcaption>Figure 15 — SNS Event Notification</figcaption></figure><p>After that, I was able to successfully validate the command execution and the agent installation on the machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pNTFTgXOHOvW_SPe-55ntg.png" /><figcaption>Figure 16 — Agent Installation Commands Successfully Executed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*LYYYGq_cR4HO0PFrwzN6DQ.png" /><figcaption>Figure 17 — Confirmation of Agent Installation on the Machine</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmAiDJgJH1OHcTbxmxZw4A.png" /><figcaption>Figure 18 — Output of the Security Agent Installation Command</figcaption></figure><p>Finally, I was able to validate the receipt of notifications related to the actions executed on the instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZ5NpK6Gw0dZfDsciKffEw.png" /><figcaption>Figure 19 — Validation of Notification Receipt</figcaption></figure><p>6. <strong>Conclusion</strong></p><p>This project’s challenge, based on a real-world scenario, validates the practical implementation of an automated, secure, and scalable solution based on the best practices of the AWS Well-Architected Framework.</p><p>By implementing this project, I was able to deepen my theoretical and practical knowledge in some of the main AWS services such as <strong>VPC</strong>, <strong>Security Group</strong>, <strong>EC2</strong>, <strong>AWS Systems Manager (SSM)</strong>, and <strong>Amazon Simple Notification Service (Amazon SNS)</strong>. I also gained experience with the automation tool <strong>Terraform</strong>, which is one of the market’s leading high-scale DevOps tools.</p><p>The successful implementation of this project validates the practical project from Module 5 — Automation and Security on AWS Cloud of the Post-Graduation in MultiCloud, DevOps, and Artificial Intelligence (AI) at The Cloud Bootcamp.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fbcfbc8e0fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automação e segurança em Cloud — Provisionamento de instâncias EC2 usando a ferramenta de…]]></title>
            <link>https://medium.com/@luizfelipebrasil/automa%C3%A7%C3%A3o-e-seguran%C3%A7a-em-cloud-provisionamento-de-inst%C3%A2ncias-ec2-usando-a-ferramenta-de-52aba15ab92f?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/52aba15ab92f</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Wed, 10 Sep 2025 19:09:29 GMT</pubDate>
            <atom:updated>2025-09-10T20:08:38.540Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automação e segurança em Cloud: Provisionamento de instâncias EC2 utilizando ferramentas como Terraform (IaC) e AWS Systems Manager para automação da instalação de agente de segurança nas instâncias.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HpxwHgOqPGnOiYQJcfkBxw.png" /></figure><p>Seguindo com minha jornada de implementação de projetos práticos baseados em cenários reais inseridos no programa de Pós Graduação de Multi Cloud, Devops &amp; Inteligência Artificial, atuei no desafio deste projeto como Engenheiro de DevSecOps, implementando um conjunto de instâncias EC2 e a infraestrutura de forma automatizada utilizando Terraform (infraestrutura como código — IaC).</p><p>Adicionalmente, foi necessário realizar a instalação de um agente de segurança específico de forma automatizada em todas as instâncias.</p><p>Após o aprovisionamento da infraestrutura, utilizei o AWS System Manager e seu componente Command Run para a instalação dos agentes de segurança de forma automatizada. Também fiz uso do Amazon Simple Notification Service — SNS para enviar um e-mail informando que todo o processo foi concluído com sucesso.</p><p>O plano de implementação do projeto foi construído e executado com base nas seguintes etapas:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*d6Mn_JBgHfZn3NQ8oK1c6g.png" /><figcaption>Figura 1 — Etapas do projeto</figcaption></figure><ol><li><strong>Definição de escopo</strong></li></ol><p>Nesta fase, o seguinte escopo foi definido:</p><p><strong>1.1</strong> Início da jornada para cloud da área de DevSecOps.</p><p><strong>1.2</strong> Utilização de automação para o processo de implementação de recursos, práticas de segurança e notificação no ambiente da nuvem.</p><p><strong>1.3</strong> Utilização de máquinas virtuais em ambiente de teste.</p><p><strong>1.4</strong> Implementação de agentes de segurança corporativos nas máquinas/servidores.</p><p>2. <strong>Validação de requisitos</strong></p><p>Nesta etapa foram discutidos e validados os requisitos organizacionais mínimos para o atendimento ao projeto, que foram:</p><p><strong>2.1</strong> Utilização de somente uma conta cloud da organização.</p><p><strong>2.2</strong> Não necessária a implementação de alta disponibilidade de serviços em múltiplas AZs.</p><p><strong>2.3 </strong>Utilização da máquina virtual da família de uso geral “t2”.</p><p><strong>2.3</strong> Implementação de políticas de segurança considerando o princípio do menor privilégio comum.</p><p>3. <strong>Planejamento</strong></p><p>Com base nas etapas anteriores, foi estabelecido o seguinte planejamento:</p><p><strong>3.1 </strong>Utilização da Cloud AWS para a implementação do projeto.</p><p><strong>3.2 </strong>Criação e utilização de somente duas máquinas EC2 para a validação da solução.</p><p><strong>3.3 </strong>Utilização dos serviços AWS EC2, AWS Systems Manager (SSM), AWS SNS e da ferramenta Terraform (IaC) como componentes principais da solução onde:</p><p><strong>AWS EC2 </strong>— Tipo de instância definida para ser utilizada para hospedar as aplicações e os agentes corporativos de segurança.</p><p><strong>AWS Systems Manager (SSM) — </strong>Hub utilizado para a automação de tarefas operacionais de segurança no ambiente cloud.</p><p><strong>AWS SNS — </strong>Serviço utilizado para a configuração de envio da notificação via email para o responsável com base no status dos processos.</p><p><strong>Terraform (IaC)</strong> — Ferramenta de automação utilizada para a criação da infraestrutura e aprovisionamento de recursos na cloud.</p><p>4. <strong>Definição técnica arquitetural</strong></p><p>Com base na execução e conclusão das etapas anteriores, foi estabelecida a proposta da arquitetura técnica conforme abaixo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vajMeer7Yxc6R4GwNjJg3Q.png" /><figcaption>Figura 2 — Arquitetura técnica de solução</figcaption></figure><p>5. <strong>Implementação e validação</strong></p><p>Para a implementação, defini que o fluxo de implementação deveria seguir as seguintes etapas:</p><p>5.1 <strong>Terraform (Iac) — Setup</strong></p><p>Defini que o steup do Terraform deveria considerar a criação dos recursos em somente uma AZ e que o aprovisionamento da infra seria realizado via CloudShell. Desta forma não foi necessária a criação e utilização de usuário programático para a construção da infra via IDE (Vs Code).</p><p>O arquivo <strong>provider </strong>do Terraform foi configurado conforme abaixo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0_VJ-rkOlrms7l26sSKPQ.png" /><figcaption>Figura 3 — Terraform (IaC) provider “us-east-1”</figcaption></figure><p>Com base no escopo do projeto, construí o arquivo principal (<strong>Main</strong>) do Terraform conforme abaixo, onde:</p><p><strong>“data” — </strong>Indiquei o tipo de imagem a ser utilizado para a criação das máquinas.</p><p>Criei as variáveis <strong>“vpc_id”</strong>, <strong>“subnet_id”</strong> e <strong>“key_name”</strong> para indicar a VPC, Subnet e chaves de acesso as máquinas que seriam utilizadas para a criação dos recursos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22vJi35pFqk5sYs7ZIB1ig.png" /><figcaption>Figura 4 — Terraform (IaC) arquivo principal (main)</figcaption></figure><p>Prossegui configurando o arquivo main com o setup dos recursos <strong>“security_group”</strong>, com regras de acesso inbound e outbound, e os tipos de <strong>instâncias (t2.micro, webserver 1 e webserver 2) </strong>que deveriam ser criados conforme visto abaixo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNL98PVbk-39GnOaWujovQ.png" /><figcaption>Figura 5 — Terraform (IaC) arquivo principal (Main) recursos</figcaption></figure><p>5.2<strong> CloudShell Setup e criação de recursos</strong></p><p>Após isso foi necessário configurar o CloudShell, no ambiente da AWS, para que o Terraform pudesse ser executado e a infra construída.</p><p>Segui os passos de instalação do Terraform no Cloudshel como pode ser visto abaixo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S0XFNbVqeH5yI2i4jOATjQ.png" /><figcaption>Figura 6 — Terraform (IaC) instalação no CloudShell</figcaption></figure><p>Após a conclusão da instalação e configuração do Terraform no CloudShell, foi possível criar com sucesso os recursos no ambiente.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UIv9hSI_GUESwwk0SGiC6g.png" /><figcaption>Figura 7 — Terraform (IaC) criação dos recursos</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BClHopdEwOMJ28bG1vjB5g.png" /><figcaption>Figura 8 — Recursos implementados</figcaption></figure><p>5.3 <strong>AWS Systems Manager (SSM) e AWS SNS Setup</strong></p><p>Dando início a configuração do AWS Systems Manager (SSM), foi necessário criar uma role no IAM com as políticas do SNS para permitir a utilização do serviço AWS SNS pelo SSM para o envio das notificações.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mh_DsnrBnIfR-21iKUPwzQ.png" /><figcaption>Figura 9 — IAM Role “SystemsManagerToSNS”</figcaption></figure><p>Também foi necessário criar o tópico e a subscrição SNS, considerando que a notificação deveria ser enviada por email (protocolo).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*biUT5lpHT5-2V31H3hPKOA.png" /><figcaption>Figura 10 — Criação tópico “DevOpsNotification”</figcaption></figure><p>Seguindo com o setup do SSM, criei o gerenciamento de hosts exclusivo para as máquinas geradas. Como parte das tarefas de operação das máquinas que defini constam:</p><ul><li>Update do Agent do SSM regularmente a cada duas semanas.</li><li>Coleta de inventário das instâncias a cada 30 minutos.</li><li>Varredura e atualização de patchs das instâncias diariamente.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a7QRRnKv0wxRITFeJDWKEQ.png" /><figcaption>Figura 11 — SSM criação Host Management</figcaption></figure><p>Após isso, foi possível iniciar sessões com as máquinas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aSzBmHN1C3dF0A9qjqcZPw.png" /><figcaption>Figura 12 — SSM criação de sessão com as máquinas</figcaption></figure><p>Estabelecimento de sessão com as máquinas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*D0tw0x8os3aQ2LZtdna9wQ.png" /><figcaption>Figura 13 — Sessão estabelecida com as máquinas</figcaption></figure><p>Dando prosseguimento, realizei a execução do comando de instalação do Agent de segurança nas máquinas (ShellScript).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HTY7XqIWMEIhn8-dPXngAw.png" /><figcaption>Figura 14 — Instalação do agent de segurança (ShellScript)</figcaption></figure><p>Também incluí o envio de notificação, com base no tópico do SNS já criado, de todos os eventos ocorridos nas instâncias.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUrItX29h2igBX7qThOGWA.png" /><figcaption>Figure 15 — Notificação de eventos SNS</figcaption></figure><p>Após isso foi possível validar a execução dos comandos com sucesso e a instalação do agent nas máquinas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pNTFTgXOHOvW_SPe-55ntg.png" /><figcaption>Figure 16 — Comandos de instalação do Agent executados com sucesso</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*LYYYGq_cR4HO0PFrwzN6DQ.png" /><figcaption>17 — Confirmação de instalação de agent na máquina</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmAiDJgJH1OHcTbxmxZw4A.png" /><figcaption>18 — Output do comando de instalação do agent de segurança</figcaption></figure><p>Foi possível validar o recebimento das notificações relacionadas as ações executadas nas instâncias.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZ5NpK6Gw0dZfDsciKffEw.png" /><figcaption>19 — Validação do recebimento de notificações</figcaption></figure><p>6. Conclusão</p><p>O desafio deste projeto baseado no cenário real, valida a implementação prática de uma solução automatizada, segura e escalável baseada nas melhores práticas do AWS Well-Architected Framework.</p><p>Com a implementação deste projeto, foi possível aprofundar o conhecimento teórico e prático em alguns dos principais serviços da AWS como VPC, Security Group, EC2, AWS Systems Manager (SSM), Amazon Simple Notification Service (Amazon SNS)e também na ferramenta de automação Terraform que é uma das principais ferramentas de DevOps de alta escala do mercado.</p><p>A implementação deste projeto valida a implementação do Projeto prático do Módulo 5 — Automação e Segurança em Nuvem AWS da Pós-Graduação em MultiCloud, DevOps e Inteligência Artificial (IA) da The Cloud Bootcamp.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52aba15ab92f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation of a Scalable Web Application using the services of AWS Elastic Beanstalk, DynamoDB…]]></title>
            <link>https://medium.com/@luizfelipebrasil/implementation-of-a-scalable-web-application-using-the-services-of-aws-elastic-beanstalk-dynamodb-57557b9dc524?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/57557b9dc524</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Sat, 02 Dec 2023 22:53:49 GMT</pubDate>
            <atom:updated>2023-12-02T22:53:49.365Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Implementation of a Scalable Web Application using the services of AWS Elastic Beanstalk, DynamoDB, CloudFront and Edge Location</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vyyUmMJxKPSGow2Ns1FIsw.png" /></figure><p>In this project based on a real-world scenario, I was responsible for implementing an application that needs to support the high demand of a large number of users accessing it simultaneously. This application has been used in a large conference that had more than 10,000 people, in-person and online, with participants from all over the world.</p><p>This event was broadcast online and in person and 10 vouchers were drawn for 3 Cloud certifications. At that moment, more than 10,000 people in the audience registered their e-mails to guarantee their participation in the raffle.</p><p>We used in AWS, Elastic Beanstalk services to deploy the web application, DynamoDB to store emails, CloudFront to cache static and dynamic files in an Edge Location close to the user.</p><p>Following the best architectural practices for developing and implementing cloud projects, I started structuring the solution in the planning stage.</p><p><strong>1 - Planning</strong></p><p>In this stage, the functional requirements were mapped and the architectural requirements for implementation and compliance with the scenario were defined.</p><p>The functional requirements details is shown in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*sm1PCSJORRq5TLh0q6Ausw.png" /><figcaption>Figure 1 — Functional Requirements</figcaption></figure><p>Based on the validation of the functional requirements with the requesting area, it was possible to define the services and computational resources that would be used to build the project architecture in the cloud.</p><p>The cloud services defined for the project are listed in figure 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*GUC1gbNfJJinrMNIN0A1Kg.png" /><figcaption>Figure 2 — Cloud Services</figcaption></figure><p>Below are more functional details that explain the motivation for choosing these services.</p><p>a) Amazon EC2 — Service used to create the application to provide access for users.</p><p>b) Auto Scaling Group — Service used to allow scalability of the application according to the number of requests.</p><p>c) Cloud Front — Service used to guarantee a better application access experience.</p><p>d) Cloud Watch — Service used to apply metrics for monitoring and controlling infrastructure and costs.</p><p>e) DynamoDB — Database used because it is serverless, NoSQL and scalable.</p><p>f) Elastic Beanstalk — Service used to provide a quick and high-performance configuration of the computing resources used in this project.</p><p>g) Elastic Load Balancer — Service used to provide the creation of highly available and fault-tolerant applications with automatic capacity scaling according to demand variations.</p><p>h) Route 53 — Service used to connect user requests to Internet applications running on AWS.</p><p>The architecture defined for the project can be seen in figure 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fh-2rrUNSN2eMAFC2HaBsQ.png" /><figcaption>Figure 3 — Project Architecture</figcaption></figure><p><strong>2 — Implementation</strong></p><p>After defining all requirements, resources and architecture, it was possible to deploy applications and load tests to prove the functioning of all services.</p><p>Confirming user registration in the application and database are shown in Figures 4 and 5 below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*482pbW5PsL0DnZDcanConw.png" /><figcaption>Figure 4 — User registration</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hI74Xc6-f35rdHP2np6ADA.png" /><figcaption>Figure 5 — User database</figcaption></figure><p><strong>Conclusion</strong></p><p>Developing an architectural solution with the requirements of this project was a great opportunity to prove the efficiency of AWS services, especially Elastic Beanstalk. Through it, it was possible to quickly, safely and scalably implement all the infrastructure resources necessary to fully support the project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57557b9dc524" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS…]]></title>
            <link>https://medium.com/@luizfelipebrasil/migration-of-a-workload-running-in-a-corporate-data-center-to-aws-using-the-amazon-ec2-and-rds-a6c314291226?source=rss-1023d8e5423d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6c314291226</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Luiz Felipe Brasil]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 15:17:03 GMT</pubDate>
            <atom:updated>2023-10-12T15:17:03.201Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Migration of a Workload running in a Corporate Data Center to AWS using the Amazon EC2 and RDS service</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ebChOP5b4PLnTjPUg8997Q.png" /></figure><p>In another project based on a real-world scenario, I acted as the Cloud Architect responsible for migrating a workload running in a Corporate DataCenter to AWS.</p><p>The application and database were migrated to AWS using the Lift &amp; Shift (rehost) model, moving both application and database data.</p><p>The reference architecture for the service in the on-premises environment is shown in Figure 1, consisting of an application server and a relational database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*1-eX2mpFn5Ip5x0a5SKqCA.png" /><figcaption>Figure 1 — On-Premises Architecture</figcaption></figure><p>During this project it was necessary define and followed some migration steps: Planning (sizing, pre-requisites, resource naming), Execution (resource provisioning, best practices), Go-live (validation test — Dry-run, final migration — Cutover) and Post Go-live (ensure the operation of the application and user access).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*NBUe4MXB92Gvr5-vsES5UA.png" /><figcaption>Figure 2 —Migration Process Steps</figcaption></figure><p>1 — Planning</p><p>During this stage, it´s necessary to map and understand how the application and other systems is working and are sized in the on-premises environment.</p><p>The Table 1 exemplifies the result of the process of analyzing and dimensioning capabilities for a Lift &amp; Shift migration, based on the project carried out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-BCuvQAlujl9UMtTqSObqw.png" /><figcaption>Table 1 — Sizing details</figcaption></figure><p>After fully mapping the resources and applications of the on primeses environment, the corresponding architecture is defined that will be implemented in the cloud environment, meeting all functional and cost requirements.</p><p>The Figure 3 shows the on-premises architecture, the subject of migration, and the corresponding cloud architecture based on AWS services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Y_jNDDOvBs6UwkMYSFa2g.png" /><figcaption>Figure 3 — On-Premises x Cloud Architecture</figcaption></figure><p>For the application server, an EC2 (Elastic Compute Cloud) t2miro instance with the Ubuntu LTS 22.04 operating system was used. To store the application data, as per the project requirement, the AWS RDS service was adopted to configure a MySQL 5.7.37 database server. The network infrastructure is made up of a VPC, 3 subnets and an Internet gateway.</p><p>2 — Execution</p><p>In this step, the workloads resources defined during the planning stage for the project are configured.</p><p>It is important to emphasize that at this stage we must consider the application of best deployment practices for resources and cost control.</p><p>The figures below show examples of the configurations made during the solution implementation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FbdTx3sZYtr6_wufJspvSQ.png" /><figcaption>Figure 4 — VPC resource details</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_hC9JUw1W7Qsitxu2dKuQ.png" /><figcaption>Figure 5 — EC2 instance for Aplication Server</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZosGl2DTl9kZ8l2ZA1QDDg.png" /><figcaption>Figure 6 — RDS Database details</figcaption></figure><p>3 — Go-live</p><p>This stage represents the milestone of completing the migration and two important steps are taken.</p><p>3.1) Dry-Run</p><p>In this step, the migration simulation is carried out, without the production application being removed.</p><p>This step ensures that the migration process is validated and that the window scheduling for the complete migration of the solution can be carried out.</p><p>3.2) Cutover</p><p>This step is carried out to validate that the entire solution is working in accordance with all mapped requirements.</p><p>After alignment with the business areas, the migration can be completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUpnz94SmDPFExgiw26SIA.png" /><figcaption>Figure 7 — Application in production in the cloud environment</figcaption></figure><p>4 — Post Go-live</p><p>Step implemented to monitor the environment and applications after rollout. Reports on the availability of services and instances are generated and shared with other areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eysojBAB4JrPlUr33h3nIQ.png" /><figcaption>Figure 8 — Database monitoring after rollout</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9-psGnbZrjpc0hO0tQOSg.png" /><figcaption>Figure 9 — Application monitoring after rollout</figcaption></figure><p>5 — Conclusion</p><p>During the implementation of this project based on a real scenario, it was possible to validate the importance of performing mapping and defining architectures in stages. Additionally, the project scenario proposed a deeper dive into some of the main building blocks of AWS services such as VPC, EC2, RDS, increasing practical knowledge and implementation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6c314291226" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>