<?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 João Vitor on Medium]]></title>
        <description><![CDATA[Stories by João Vitor on Medium]]></description>
        <link>https://medium.com/@sephrot?source=rss-9ce54cdf73f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DlhmY5NLhTUD78P2r9QbOg.png</url>
            <title>Stories by João Vitor on Medium</title>
            <link>https://medium.com/@sephrot?source=rss-9ce54cdf73f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:11:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sephrot/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[Bridging Cloud Environments: A Seamless Integration Journey with Terraform]]></title>
            <link>https://awstip.com/title-bridging-cloud-environments-a-seamless-integration-journey-with-terraform-d3ed50daef0f?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3ed50daef0f</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 12:28:14 GMT</pubDate>
            <atom:updated>2024-06-07T13:27:48.690Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RN6rnJtP2_3rEvN1TPKPvA.png" /></figure><p>In a recent project, I undertook the role of a Cloud Specialist within a company navigating the dynamic landscapes of Google Cloud and AWS. Faced with the challenge of unifying these distinct cloud architectures in a completely private manner, the task at hand necessitated the implementation of a solution that seamlessly incorporated Virtual Private Gateway, Customer Gateway, Cloud Routers, Cloud VPN, and various other critical services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHQse3tWNsEcw6C25kTijw.png" /></figure><h4>The Imperative for Swift Implementation</h4><p>With a tight deadline looming, the company’s requirement was clear: the integration needed to be operational within a week. In response to this pressing timeline, a strategic decision was made to leverage the power of automation for a swift and efficient deployment.</p><h4>Automated Deployment Using Terraform</h4><p>Once GCP and AWS accounts were established, the decision to expedite the integration process through Terraform emerged as the key to meeting the stringent timeline. Terraform, a robust IaC tool, offered the capability to define and provision the necessary infrastructure components in a declarative manner.</p><h4>Configuration Components</h4><p>The intricacies of the integration were addressed through a Terraform script. This script orchestrated the deployment and configuration of the Virtual Private Gateway, Customer Gateway, Cloud Routers, Cloud VPN, and other pertinent services. By encapsulating the infrastructure as code, the deployment process became not only streamlined but also reproducible.</p><h4>Benefits of Automated Deployment</h4><p>The adoption of an automated deployment approach with Terraform yielded several noteworthy benefits. First and foremost, it significantly reduced the time required for deployment, enabling the company to meet its one-week deadline. Moreover, the process was standardized and consistent, mitigating the risk of human error inherent in manual configurations.</p><h4>Challenges Overcome</h4><p>Implementing such a solution was not without its challenges. The intricacies of cross-cloud integration, security considerations, and ensuring compatibility between GCP and AWS services required careful navigation. However, the detailed planning and the robustness of Terraform’s automation capabilities helped overcome these hurdles effectively.</p><h4>Conclusion</h4><p>The successful integration of Google Cloud and AWS within a private framework stands testament to the strategic use of Terraform as an enabler of rapid and consistent infrastructure deployment. This case exemplifies the potential of automation in addressing complex cloud scenarios while adhering to tight timelines, ultimately paving the way for a seamlessly interconnected cloud environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3ed50daef0f" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/title-bridging-cloud-environments-a-seamless-integration-journey-with-terraform-d3ed50daef0f">Bridging Cloud Environments: A Seamless Integration Journey with Terraform</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the Power of Cloud: A Journey with IAM Services and Service Accounts]]></title>
            <link>https://medium.com/@sephrot/unleashing-the-power-of-cloud-a-journey-with-iam-services-and-service-accounts-03fb9f793cf2?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/03fb9f793cf2</guid>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 12:24:22 GMT</pubDate>
            <atom:updated>2023-12-29T12:24:22.992Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfNXWkLFnncEYV6HEg824g.png" /></figure><p>In the ever-evolving landscape of cloud computing, the role of Cloud Specialists has become increasingly pivotal. Recently, I undertook a real-world project that not only challenged my skills but also opened up new avenues for seamless and secure cloud communication. As a Cloud Specialist, my task was to harness the power of IAM (Identity and Access Management) services to create a Service Account, enabling efficient communication through Cloud SDK and Python Scripts within the project’s architecture on Google Cloud Platform.</p><h3>The Foundation: IAM Services and Service Accounts</h3><p>IAM services form the bedrock of any cloud infrastructure, providing a secure and organized way to manage access and permissions. In this project, my primary focus was on crafting a Service Account, a specialized type of Google Cloud Identity that belongs to your project, allowing scripts and applications to interact securely with Google Cloud APIs.</p><p>Creating the Service Account involved a careful orchestration of IAM roles, ensuring that the right permissions were granted without compromising the security of the cloud environment. This step is crucial, as it lays the groundwork for the subsequent deployment of services and applications.</p><h3>Empowering Communication: Cloud SDK and Python Scripts</h3><p>Once the Service Account was in place, the next challenge was to facilitate communication within the architecture. This is where the Cloud SDK and Python Scripts came into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GtXpq65JVCRAnaQyXsw6w.png" /></figure><p><strong>Cloud SDK</strong>: As a Cloud Specialist, leveraging the Cloud SDK was instrumental in managing resources and deploying services. The SDK provides a set of tools for interacting with Google Cloud services, making it an indispensable companion for any cloud professional. Through the SDK, I could seamlessly manage authentication, deploy resources, and monitor the project, all from the command line.</p><p><strong>Python Scripts</strong>: Python’s versatility makes it a preferred choice for scripting in cloud environments. I developed custom Python scripts to interact with the deployed services, automating tasks and ensuring a smooth flow of communication within the architecture. From managing data to orchestrating complex workflows, Python scripts became the glue that held the project together. Off course, Python isn&#39;t the only language that can make efficient scripts but in this case the performance and reliability served well to the solution.</p><h3>The Deployment Dance: Bringing it All Together</h3><p>With IAM services, Service Accounts, Cloud SDK, and Python scripts harmoniously working together, the deployment phase took center stage. This was the culmination of meticulous planning and execution, where the project transitioned from concept to reality.</p><p>The deployment involved a series of steps, from configuring resources to ensuring that the scripts seamlessly communicated with the cloud services. It was a dance of precision and coordination, and the Service Account emerged as the linchpin, orchestrating the entire performance.</p><h3>Conclusion: A Symphony of Cloud Success</h3><p>In the world of cloud computing, projects like these highlight the intricate dance between security, communication, and deployment. As a Cloud Specialist, my journey with IAM services, Service Accounts, Cloud SDK, and Python scripts underscored the importance of a well-orchestrated strategy in navigating the complexities of the cloud.</p><p>The real-world application of these technologies not only strengthened my skills but also reinforced the notion that the cloud is not just a platform; it’s a dynamic ecosystem waiting to be harnessed. Through IAM services and Service Accounts, we unlock the doors to secure and efficient communication, while tools like Cloud SDK and Python scripts become our instruments of orchestration.</p><p>In the symphony of cloud success, every note played by IAM services, Service Accounts, Cloud SDK, and Python scripts contributes to the harmony of a well-architected and seamlessly deployed project. As we continue to explore the vast possibilities of cloud computing, these tools will undoubtedly remain essential, guiding us through the ever-expanding realms of the digital landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03fb9f793cf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rapid E-Commerce MVP Deployment on AWS: A Cloud Engineer’s Tale of Efficiency]]></title>
            <link>https://medium.com/@sephrot/rapid-e-commerce-mvp-deployment-on-aws-a-cloud-engineers-tale-of-efficiency-3d0bbf33b919?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d0bbf33b919</guid>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Sat, 02 Dec 2023 19:36:34 GMT</pubDate>
            <atom:updated>2023-12-02T19:36:34.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c42Po6Sq_9iP_uAJ_-l6Xw.png" /></figure><h3>Introduction</h3><p>In the fast-paced realm of Cloud Engineering and DevOps, the ability to swiftly transform ideas into tangible solutions is a coveted skill. In a recent project that mirrored a real-world scenario, I undertook the challenge of creating and implementing an e-Commerce MVP on AWS in less than two hours. This article will delve into the intricacies of this endeavor, outlining the tools, methodologies, and technologies employed to achieve such rapid deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maPof0YhnzOd4K1M8kIS2Q.png" /></figure><h4>Setting the Stage</h4><p>The foundation of this project was built upon the principles of Infrastructure as Code (IaC), with Terraform and Ansible taking center stage. The goal was clear: automate the entire deployment process to ensure speed, consistency, and repeatability. This approach not only accelerates the development lifecycle but also minimizes the chances of human error.</p><h4>1. Terraform Magic</h4><p>The first step involved crafting the infrastructure using Terraform. Leveraging its declarative syntax, I defined the AWS resources needed for the e-Commerce MVP. From EC2 instances to networking components, every aspect was meticulously described in Terraform scripts. This not only streamlined the provisioning process but also provided a version-controlled blueprint of the entire infrastructure.</p><pre>variable &quot;vpc_id&quot; {<br>    default = &quot;vpc-0f26f1f6cbf57ccf8&quot;<br>}<br><br>variable &quot;key_name&quot; {<br>    default = &quot;sshkey1&quot;<br>}<br><br>resource &quot;aws_instance&quot; &quot;ecommerce1&quot; {<br>  ami           = &quot;ami-032930428bf1abbff&quot;<br>  instance_type = &quot;t3a.large&quot;<br>  key_name = var.key_name<br>  vpc_security_group_ids = [aws_security_group.allow_ssh_http.id]<br>  associate_public_ip_address = true<br><br>  tags = {<br>    Name = &quot;ecommerce1&quot;<br>    ambiente = &quot;ecomerce&quot;<br>  }<br>}<br><br>resource &quot;aws_security_group&quot; &quot;allow_ssh_http&quot; {<br>  name        = &quot;allow_ssh_http&quot;<br>  description = &quot;Allow SSH and HTTP traffic on EC2 instance&quot;<br>  vpc_id      = var.vpc_id<br><br>  ingress {<br>    description = &quot;SSH to EC2&quot;<br>    from_port   = 22<br>    to_port     = 22<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  ingress {<br>    description = &quot;HTTP to EC2&quot;<br>    from_port   = 80<br>    to_port     = 80<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br><br>  tags = {<br>    Name = &quot;allow_ssh_http&quot;<br>  }<br>}</pre><h4>2. Ansible Orchestration</h4><p>With the infrastructure in place, the next challenge was to automate configuration management, software installation, and package management. Ansible, the automation Swiss army knife, was brought into play. Ansible playbooks were crafted to handle the setup of Magento, PHP, MySQL, and Redis on the EC2 instance.</p><pre># Ansible playbook used to install the software stack required by Magento (open source e-commerce) fully automated.<br># Reference: https://github.com/CajuCLC/ansible-magento2<br><br>---<br><br>- name: Install Apache, PHP + Magento and/or Varnish<br>  hosts: magento<br>  user: ec2-user<br><br>  roles:<br>    - common<br>    - httpd<br>    - php<br>    - composer<br>    - mysql<br>    - redis<br>    - magento</pre><h4>3. E-Commerce Tech Stack</h4><p>The heart of any e-Commerce platform lies in its technology stack. In this project, Magento served as the core framework, PHP as the scripting language, MySQL for the database, and Redis for caching. This combination not only ensures a robust and scalable e-Commerce solution but also aligns with industry best practices.</p><pre># Sample command for installing PHP and related modules<br>sudo apt-get install php php-mysql php-redis</pre><h3>Conclusion</h3><p>In the blink of an eye, the e-Commerce MVP stood tall on the AWS cloud, a testament to the power of automation and cloud technologies. The synergy of Terraform and Ansible orchestrated a seamless deployment, while the well-chosen tech stack laid the groundwork for a robust and scalable solution. This project not only showcased the prowess of a Cloud Engineer in the world of DevOps but also highlighted the transformative impact of IaC in real-world scenarios. As we navigate the ever-evolving landscape of cloud computing, the lessons learned from this rapid deployment journey will undoubtedly resonate in future endeavors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d0bbf33b919" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying SAP Migration Costs: A Comprehensive Guide for Cloud Architects]]></title>
            <link>https://medium.com/@sephrot/demystifying-sap-migration-costs-a-comprehensive-guide-for-cloud-architects-05b1cb1f2594?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/05b1cb1f2594</guid>
            <category><![CDATA[aws-pricing-calculator]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-migration]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Wed, 29 Nov 2023 02:26:17 GMT</pubDate>
            <atom:updated>2023-11-29T02:26:17.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMSfjs3oRtaM-isZHBrPzw.png" /></figure><h3>Introduction</h3><p>Embarking on a SAP migration project from On-Premises to AWS is a complex endeavor that demands meticulous planning, precise calculations, and a deep understanding of both the existing infrastructure and the AWS cloud ecosystem. In this medium article, we delve into the intricacies of estimating infrastructure costs for a SAP migration project, showcasing the thought process and methodologies adopted by a Cloud Architect.</p><h4>1. Understanding the Existing Infrastructure</h4><p>Before diving into cost calculations, a thorough comprehension of the current On-Premises infrastructure is imperative. The target SAP workloads are distributed across Production, Quality Assurance (QA), and Development/Test layers within a corporate DataCenter. Documenting the existing hardware specifications, storage requirements, network configurations, and licensing models lays the foundation for a precise migration cost assessment.</p><p>Bellow you can see the infrastructure to be estimated:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAWiEB6UsU4Npr2a7D_c8w.png" /></figure><h4>2. Mapping SAP Workloads to AWS Services</h4><p>AWS provides a plethora of services, and selecting the most suitable ones for hosting SAP workloads is crucial. As a Cloud Architect, the task involves mapping each layer of the SAP environment to corresponding AWS services. For example, SAP HANA may leverage Amazon EC2 instances, Amazon RDS, or even specialized services like AWS SAP HANA instances.</p><h4>3. Quantifying Resource Requirements</h4><p>With the AWS services identified, the next step is to quantify resource requirements. This involves understanding the compute power, storage capacity, and network bandwidth needed for each layer of the SAP environment. Collaborating with the SAP Basis team and utilizing tools like <a href="https://calculator.aws/#/">AWS Pricing Calculator</a> helps in fine-tuning resource estimations.</p><h4>4. Consideration of Three-Year Usage</h4><p>Given that the infrastructure will be running on AWS for the next three years, it’s crucial to factor in long-term costs. AWS offers various pricing models, including On-Demand, Reserved Instances, and Savings Plans. Analyzing the usage patterns and business requirements aids in determining the most cost-effective pricing model for each layer of the SAP environment. Obviously the usage and plan may vary depending on each environment and necessity.</p><h4>5. Incorporating Data Transfer and Bandwidth Costs</h4><p>SAP migrations involve data transfer between the On-Premises environment and AWS. Calculating data transfer costs and considering potential bandwidth requirements is an integral part of the overall cost estimation. This ensures that unforeseen expenses related to data movement are accounted for in the budget.</p><h4>6. Licensing Considerations</h4><p>SAP applications often come with specific licensing models, and understanding how these licenses translate to the AWS environment is crucial. Whether it’s Bring Your Own License (BYOL) or utilizing AWS-provided licenses, ensuring compliance and factoring in licensing costs is essential for an accurate cost projection.</p><h4>7. High Availability and Disaster Recovery Costs</h4><p>Designing for high availability and disaster recovery is a best practice in cloud architecture. Incorporating costs associated with redundant infrastructure, failover mechanisms, and backup storage ensures a resilient SAP environment on AWS. Utilizing AWS services like Amazon Route 53 for DNS and AWS Backup for data protection contributes to these costs.</p><h4>8. Cost Optimization Strategies</h4><p>As a responsible Cloud Architect, it’s imperative to incorporate cost optimization strategies into the migration plan. This involves leveraging AWS tools like AWS Cost Explorer, AWS Budgets, and AWS Trusted Advisor to continuously monitor, analyze, and optimize costs throughout the three-year lifecycle.</p><h4>9. Documentation and Presentation</h4><p>The culmination of the cost calculation process involves meticulous documentation and presentation. Creating an executive presentation involves presenting the estimated costs in a clear and understandable manner for stakeholders. This includes a breakdown of costs for each SAP layer, comparisons between different pricing models, and a comprehensive overview of the total cost of ownership on AWS.</p><h3>Conclusion</h3><p>In this article, we’ve unraveled the intricate process of calculating infrastructure costs for a SAP migration project from On-Premises to AWS. A Cloud Architect’s role in this scenario extends beyond technical expertise, encompassing a holistic understanding of existing infrastructure, AWS services, licensing models, and long-term usage considerations. By following a systematic approach and leveraging AWS tools, a Cloud Architect ensures that the estimated costs align with business goals, paving the way for a successful SAP migration to the cloud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05b1cb1f2594" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing the Cloud: Automated Deployment and Installation of Security Agents using Terraform and…]]></title>
            <link>https://medium.com/@sephrot/securing-the-cloud-automated-deployment-and-installation-of-security-agents-using-terraform-and-4a6e1152d958?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a6e1152d958</guid>
            <category><![CDATA[vpc]]></category>
            <category><![CDATA[aws-systems-manager]]></category>
            <category><![CDATA[sns]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 02:31:31 GMT</pubDate>
            <atom:updated>2023-11-23T02:31:31.401Z</atom:updated>
            <content:encoded><![CDATA[<h3>Securing the Cloud: Automated Deployment and Installation of Security Agents using Terraform and AWS Systems Manager</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vKdof7cu7jfz9EzF6PRNpw.png" /></figure><h3>Introduction</h3><p>As a DevSecOps Engineer, my mission was to fortify a real-world project by deploying a set of EC2 instances and associated infrastructure, and then seamlessly install a specific security agent across all instances. Leveraging Terraform for Infrastructure as Code and AWS Systems Manager for automated security agent installation, I orchestrated a robust and secure environment. This article details the comprehensive steps taken to achieve this objective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5nIFDSszczl4WNhBGpnYA.png" /></figure><h4>Step 1: Infrastructure Provisioning with Terraform</h4><p>In the initial phase, I leveraged Terraform to automate the deployment of EC2 instances and the necessary infrastructure.</p><p><strong>Terraform Configuration:</strong></p><ul><li>Defined the infrastructure components using HashiCorp Configuration Language (HCL).</li><li>Specified EC2 instance types, security groups, and key pairs within the Terraform configuration.</li><li>Utilized variables for flexibility and ease of configuration adjustments.</li></ul><p><strong>Automation Workflow:</strong></p><ul><li>Initiated the Terraform project with terraform init.</li><li>Validated the configuration with terraform validate.</li><li>Checking changes before applying with terraform plan.</li><li>Executed the deployment using terraform apply, ensuring the creation of resources according to the defined specifications.</li></ul><h4>Step 2: Automated Security Agent Installation with AWS Systems Manager</h4><p>Following the successful provisioning of the infrastructure, the next critical step was to automate the installation of a specific security agent across all EC2 instances using AWS Systems Manager and its Command Run feature.</p><p><strong>AWS Systems Manager Configuration:</strong></p><ul><li>Utilized AWS Systems Manager Agent pre-installed on EC2 instances for seamless communication.</li><li>Created an SSM document specifying the commands required for the security agent installation.</li><li>Defined an SSM Command Run document to execute the installation commands on all instances.</li></ul><p><strong>Execution Process:</strong></p><ul><li>Triggered the SSM Command Run document from the AWS Management Console.</li><li>Monitored the Systems Manager dashboard for real-time execution status.</li><li>Ensured successful installation by verifying agent presence on each EC2 instance.</li></ul><h4>Step 3: Status Notification with Amazon SNS</h4><p>To keep all stakeholders informed about the entire process, I integrated Amazon Simple Notification Service for automated email notifications.</p><p><strong>Amazon SNS Setup:</strong></p><ul><li>Configured an SNS topic to serve as the communication channel for notifications.</li><li>Integrated the SNS topic with the AWS Systems Manager to trigger notifications on command execution completion.</li></ul><p><strong>Notification Workflow:</strong></p><ul><li>Subscribed relevant email addresses to the SNS topic.</li><li>Configured SSM Command Run to send notifications to the designated SNS topic.</li><li>Monitored email notifications for real-time updates on the infrastructure provisioning and security agent installation processes.</li></ul><h4>Conclusion:</h4><p>By seamlessly combining Terraform for infrastructure provisioning, AWS Systems Manager for automated security agent installation, and Amazon SNS for communication, I successfully fortified the project’s security posture. This holistic approach not only streamlined the deployment process but also ensured that all instances were equipped with the necessary security measures, setting the foundation for a resilient and secure cloud environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a6e1152d958" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling to New Heights: Deploying a High-Demand Application on AWS for a Global Conference]]></title>
            <link>https://medium.com/@sephrot/scaling-to-new-heights-deploying-a-high-demand-application-on-aws-for-a-global-conference-f4cec11dc867?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4cec11dc867</guid>
            <category><![CDATA[cloudfront]]></category>
            <category><![CDATA[dynamodb]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[elastic-beanstalk]]></category>
            <category><![CDATA[load-balancing]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Mon, 20 Nov 2023 20:11:36 GMT</pubDate>
            <atom:updated>2023-11-20T20:11:36.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vyyUmMJxKPSGow2Ns1FIsw.png" /></figure><h3>Introduction:</h3><p>In the fast-paced world of technology, the ability to seamlessly handle a large number of users accessing an application simultaneously is crucial. In this real-world scenario, I had the exciting opportunity to implement an application for a massive conference with over 10,000 attendees from around the globe, both in-person and online. The challenge was to ensure a smooth experience for users participating in the event and handling a surge of registrations for a voucher raffle, all while maintaining optimal performance.</p><h3>Architecture Overview:</h3><p>To meet the demands of this high-traffic event, we opted for Amazon Web Services (AWS) as our cloud provider. The key components of our architecture included Elastic Beanstalk for application deployment, DynamoDB for email storage, and CloudFront for efficient content delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fh-2rrUNSN2eMAFC2HaBsQ.png" /></figure><h4>1. Elastic Beanstalk for Seamless Deployment:</h4><p>Elastic Beanstalk proved to be a game-changer in simplifying the deployment process. Leveraging its platform-as-a-service (PaaS) capabilities, we seamlessly deployed our web application without getting bogged down by the complexities of infrastructure management. The automatic scaling features of Elastic Beanstalk ensured that the application could dynamically adjust to varying loads, guaranteeing a smooth user experience during peak times.</p><p><strong>Steps Taken:</strong><br>- Containerized the application using Docker for easy deployment.<br>- Configured Elastic Beanstalk environment with auto-scaling enabled.<br>- Utilized AWS Management Console and EB CLI for deployment and monitoring.</p><h4>2. DynamoDB for Efficient Email Storage:</h4><p>With over 10,000 participants registering for the voucher raffle, managing and storing participant emails efficiently was crucial. DynamoDB, a fully managed NoSQL database service, provided the scalability and low-latency performance needed for this task.</p><p><strong>Implementation Details:</strong><br>- Designed a DynamoDB table to store participant emails securely.<br>- Leveraged AWS SDKs for seamless integration with the application.<br>- Utilized DynamoDB auto-scaling to handle fluctuating read and write demands.</p><h4>3. CloudFront for Content Delivery and Caching:</h4><p>Ensuring low-latency access to static and dynamic files, especially in a global event, was a priority. CloudFront, AWS’s content delivery network (CDN), played a pivotal role in caching and delivering content from edge locations close to users worldwide.</p><p><strong>Configuration Steps:</strong><br>- Integrated CloudFront with Elastic Beanstalk for seamless content delivery.<br>- Configured CloudFront behaviors for caching static and dynamic content effectively.<br>- Leveraged AWS WAF for security, protecting against potential threats at the edge.</p><h3>Conclusion:</h3><p>The successful deployment of this high-demand application on AWS showcased the power of cloud computing in handling massive user loads seamlessly. Elastic Beanstalk’s ease of use, DynamoDB’s scalability, and CloudFront’s global content delivery capabilities collectively contributed to a robust and responsive system. As technology continues to evolve, leveraging cloud services becomes imperative for delivering exceptional user experiences in scenarios like large-scale conferences.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4cec11dc867" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating Cloud Migrations: A Journey from Corporate DataCenter to AWS]]></title>
            <link>https://medium.com/@sephrot/navigating-cloud-migrations-a-journey-from-corporate-datacenter-to-aws-af7b75633707?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/af7b75633707</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[cutover]]></category>
            <category><![CDATA[vpc]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Wed, 15 Nov 2023 21:32:54 GMT</pubDate>
            <atom:updated>2023-11-15T21:32:54.284Z</atom:updated>
            <content:encoded><![CDATA[<p>A Comprehensive Look at the Successful Migration of a Workload Using the Lift &amp; Shift Model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYrkt1lvCnZ1olMs3npi1w.png" /></figure><p>— -</p><h3>Introduction</h3><p>In the dynamic landscape of modern IT, cloud migrations have become pivotal for organizations aiming to enhance scalability, efficiency, and overall operational agility. This article delves into a real-world scenario where I undertook the role of a Cloud Specialist, spearheading the migration of a critical workload from a Corporate DataCenter to Amazon Web Services (AWS).</p><p>— -</p><h3>Project Overview</h3><h4>The Challenge</h4><p>The project presented a multifaceted challenge: migrating both the application and its associated database seamlessly to AWS. To achieve this, I adopted the Lift &amp; Shift (rehost) model, emphasizing a swift and efficient transition of existing infrastructure.</p><h4>Key Responsibilities</h4><p>As the Cloud Specialist, my responsibilities spanned various phases of the migration process, including meticulous planning, precise execution, a seamless Go-live transition, and thorough post Go-live operations to ensure optimal application performance.</p><h4>Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Y_jNDDOvBs6UwkMYSFa2g.png" /></figure><p>— -</p><h3>Migration Steps</h3><h4>1. Planning</h4><p><em>Sizing and Resource Naming</em></p><p>Determining the right size for AWS resources was a critical step in ensuring optimal performance. Sizing calculations were based on the application’s resource demands, considering factors like compute power, storage requirements, and network bandwidth. Additionally, meticulous resource naming conventions were established to facilitate clarity and organization.</p><h4>2. Execution</h4><p><em>Resource Provisioning and Best Practices</em></p><p>Resource provisioning involved setting up the AWS infrastructure to mirror the existing Corporate DataCenter. This required leveraging AWS services such as EC2 for compute, RDS for database management, and VPC for network configuration. Adhering to AWS best practices ensured that the migrated infrastructure was not only functional but also optimized for performance and cost-efficiency.</p><h4>3. Go-live</h4><p><em>Validation Tests and Cutover</em></p><p>The Go-live phase incorporated a meticulous approach to mitigate risks. A Dry-run validation test was executed to identify and address potential issues before the final migration cutover. The Cutover itself was a carefully orchestrated process, ensuring minimal downtime and a smooth transition from the on-premises environment to the AWS cloud.</p><h4>4. Post Go-live</h4><p><em>Application and User Access</em></p><p>Post Go-live operations focused on verifying the operational status of the application and ensuring uninterrupted user access. This involved continuous monitoring, performance tuning, and addressing any unforeseen challenges that arose in the cloud environment.</p><p>— -</p><h3>Technologies Utilized</h3><p>The successful migration hinged on leveraging a suite of AWS technologies:</p><p>- <strong>EC2 Instances</strong>: Employed for hosting application components, providing scalable compute resources.<br>- <strong>RDS (Relational Database Service)</strong>: Utilized for database management, ensuring a seamless transition of the existing database to the AWS environment.<br>- <strong>VPC (Virtual Private Cloud)</strong>: Configured to establish a secure and isolated network environment within AWS.<br>- <strong>AWS Migration Hub</strong>: Employed for tracking the migration progress and managing the overall migration process.<br>- <strong>CloudWatch</strong>: Utilized for continuous monitoring of application performance and resource utilization.</p><p>— -</p><h3>Conclusion</h3><p>In conclusion, the migration from a Corporate DataCenter to AWS was a testament to the meticulous planning, precise execution, and continuous optimization inherent in successful cloud migrations. By adopting the Lift &amp; Shift model and leveraging key AWS services, the project not only met but exceeded performance expectations.</p><p>This experience underscores the importance of a holistic approach to cloud migrations, considering not only the technical aspects but also the operational and business implications. As organizations continue to embrace the cloud, sharing insights from such real-world scenarios becomes invaluable in guiding others on their journey towards a more agile and scalable IT infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af7b75633707" 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/@sephrot/migration-of-a-workload-running-in-a-corporate-data-center-to-aws-using-the-amazon-ec2-and-rds-62638d3a5dc4?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/62638d3a5dc4</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Wed, 24 May 2023 02:33:59 GMT</pubDate>
            <atom:updated>2023-05-24T02:33:59.483Z</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*MYrkt1lvCnZ1olMs3npi1w.png" /></figure><h3>Introduction</h3><p>This is a brief description of a project I was involved in as a Cloud Specialist responsible for migrating a workload from a Corporate DataCenter to AWS. The goal of the project was to successfully transfer the application and database to AWS using the Lift &amp; Shift (rehost) model while meeting all the project requirements.</p><p>To accomplish this, I followed a series of migration steps. First, I conducted thorough planning, which involved determining the appropriate sizing, identifying prerequisites, and establishing resource naming conventions. This helped ensure a smooth migration process.</p><p>Next, I executed the migration by provisioning the necessary resources on AWS and adhering to best practices. This step was crucial in ensuring the stability and efficiency of the migrated workload.</p><p>Once the migration was complete, I facilitated the go-live phase, which involved conducting validation tests such as dry-runs to ensure the application and database were functioning properly. Finally, the cutover process was performed to finalize the migration and make the workload live on AWS.</p><p>After the go-live phase, I actively monitored the operation of the application and user access to ensure everything was functioning as expected. Any necessary adjustments or optimizations were made during the post go-live phase to ensure a seamless user experience.</p><p>Overall, by following these migration steps and employing my expertise as a Cloud Specialist, I successfully migrated the workload from the Corporate DataCenter to AWS, meeting the project requirements and ensuring a smooth transition to the cloud environment.</p><h3>Solution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Y_jNDDOvBs6UwkMYSFa2g.png" /></figure><p>The success of the solution relied on the effective utilization of key AWS resources, specifically EC2, RDS, and VPC.</p><p>EC2 played a crucial role in replicating the system specifications of the local server, ensuring comparable or improved performance without incurring excessive costs.</p><p>RDS was essential for efficient database management, and in this case, MySQL 5.7.37 was utilized as the closest version to the local server.</p><p>VPC played a vital role in managing permissions and controlling the application’s exposure within the EC2 instance, enabling seamless interaction with RDS for database manipulation.</p><p>Once the hardware specifications were verified, connections between AWS services were properly configured, network testing was conducted, and a Python API serving a web application was deployed, the project operated exactly as intended, allowing for a successful cutover.</p><p>Although not explicitly mentioned as a separate step, DNS configuration was also performed to expose the API to users, ensuring accessibility and usability of the application.</p><p>By effectively leveraging these AWS resources, configuring connections, and ensuring proper deployment and accessibility, the project achieved its objectives and smoothly transitioned to the AWS environment.</p><h3>Conclusion</h3><p>In conclusion, the successful migration of a workload from a Corporate DataCenter to AWS requires careful planning, execution, and post-go-live management. By following a well-defined migration process and leveraging key AWS resources such as EC2, RDS, and VPC, organizations can achieve a seamless transition to the cloud environment.</p><p>The utilization of EC2 allowed for the replication of system specifications, ensuring comparable or improved performance while maintaining cost-efficiency. RDS played a vital role in effectively managing databases, while VPC enabled the secure and controlled access to the application and its interaction with the database.</p><p>Through planning, resource provisioning, adherence to best practices, and rigorous testing, the project was able to go live with minimal disruption and deliver the intended functionality. The successful cutover marked the completion of the migration process and the beginning of the application’s operation on AWS.</p><p>Furthermore, the configuration of DNS settings to expose the API showcased the commitment to ensuring user accessibility and a seamless user experience.</p><p>By effectively navigating through the migration steps and leveraging AWS resources, organizations can successfully migrate their workloads to the cloud, realizing benefits such as scalability, cost-efficiency, and enhanced operational capabilities. The project described here serves as a testament to the importance of careful planning, technical expertise, and attention to detail in achieving a successful cloud migration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62638d3a5dc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated user migration and management of AWS Identity and Access Management (IAM) resources]]></title>
            <link>https://medium.com/@sephrot/automated-user-migration-and-management-of-aws-identity-and-access-management-iam-resources-ab6f5ff8fcb0?source=rss-9ce54cdf73f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab6f5ff8fcb0</guid>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-cli]]></category>
            <category><![CDATA[git-bash]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[João Vitor]]></dc:creator>
            <pubDate>Sat, 06 May 2023 02:47:00 GMT</pubDate>
            <atom:updated>2023-05-06T03:21:34.343Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdK6qaygPGSPH-ajQu82ow.png" /></figure><p>In this project based on a real-world scenario, I acted as Cloud Specialist with the mission to migrate users in an automated way and manage AWS IAM (Identity and Access Management) resources.</p><p>There were 100 users that needed to be migrated and have MFA (Multi-factor authentication) enabled on their accounts, as this is a security best practice.</p><p>The first thing before anything is about data masses, normally we can export as a CSV file or any format related to sheets. That’s because before any type of automation or solution, we need to think about how we’ll transport hundreds of user data from old workspaces to cloud providers. After knowing exactly the kind of data we’ll be using, we can create a structured solution.</p><p>To avoid repetitive and manual tasks in the AWS console, I needed to think about automating the processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AE_ZAX_PBZlbp9eByk9L8g.png" /></figure><p>Before diving into the process of automated user creation in AWS IAM, it’s important to note that while user groups still need to be created manually at this time, this step is critical in order to ensure that the appropriate permissions are granted. Additionally, it’s essential to include the policy “IAMUserChangePassword” in the user groups to enable users to change their own passwords after logging in for the first time. This not only enhances security but also ensures compliance with industry regulations.</p><h3>MFA Policy</h3><p>Before proceeding with the automation of user creation, it’s important to have the user groups set up and also establish a robust MFA Security Policy to enhance overall user access security. This policy will require all users to use a two-factor authentication system. To implement this policy, you will need to create a custom user group policy by navigating to the “User Groups” tab and then selecting “Permissions” under the IAM section. From there, you can add the necessary policy to the desired user group.</p><p>To create the necessary policy, first, click on “Add permissions”, then “Attach policies”, and finally “Create Policy”. You’ll be directed to the IAM policy creation screen where you can select the JSON option. This option allows for faster customization of policies in AWS and is commonly used in AWS Docs to access various permission templates. Once in the JSON section, you can copy and paste the following JSON policy:</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Sid&quot;: &quot;AllowListActions&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;iam:ListUsers&quot;,<br>                &quot;iam:ListVirtualMFADevices&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;*&quot;<br>        },<br>        {<br>            &quot;Sid&quot;: &quot;AllowUserToCreateVirtualMFADevice&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;iam:CreateVirtualMFADevice&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;arn:aws:iam::*:mfa/*&quot;<br>        },<br>        {<br>            &quot;Sid&quot;: &quot;AllowUserToManageTheirOwnMFA&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;iam:EnableMFADevice&quot;,<br>                &quot;iam:ListMFADevices&quot;,<br>                &quot;iam:ResyncMFADevice&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;arn:aws:iam::*:user/${aws:username}&quot;<br>        },<br>        {<br>            &quot;Sid&quot;: &quot;AllowUserToDeactivateTheirOwnMFAOnlyWhenUsingMFA&quot;,<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;iam:DeactivateMFADevice&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:iam::*:user/${aws:username}&quot;<br>            ],<br>            &quot;Condition&quot;: {<br>                &quot;Bool&quot;: {<br>                    &quot;aws:MultiFactorAuthPresent&quot;: &quot;true&quot;<br>                }<br>            }<br>        },<br>        {<br>            &quot;Sid&quot;: &quot;BlockMostAccessUnlessSignedInWithMFA&quot;,<br>            &quot;Effect&quot;: &quot;Deny&quot;,<br>            &quot;NotAction&quot;: [<br>                &quot;iam:CreateVirtualMFADevice&quot;,<br>                &quot;iam:EnableMFADevice&quot;,<br>                &quot;iam:ListMFADevices&quot;,<br>                &quot;iam:ListUsers&quot;,<br>                &quot;iam:ListVirtualMFADevices&quot;,<br>                &quot;iam:ResyncMFADevice&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;*&quot;,<br>            &quot;Condition&quot;: {<br>                &quot;BoolIfExists&quot;: {<br>                    &quot;aws:MultiFactorAuthPresent&quot;: &quot;false&quot;<br>                }<br>            }<br>        }<br>    ]<br>}</pre><p>Next, click “Next”, choose a name for your policy such as “EnforceMFAPolicy”, and save your newly created permission policy. To apply this policy to the desired user groups, you can use CloudShell (AWS CLI) to perform this action. This tool will also be necessary for the next steps in the process.</p><p>The final step is to set up this new policy in our user groups to make it fully functional before any user creation. To expedite this process, we can use CloudShell, but we will need the ARN URL of this policy to execute CLI commands. To obtain this data, simply click on your MFA and copy the ARN URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_c8yt4yc6Xnf-7izfuvcw.png" /></figure><p>Use the following command to add this policy to a wanted user group.</p><pre>aws iam attach-group-policy --policy-arn &lt;ARN_URL&gt; --group-name &lt;GROUP_NAME&gt;</pre><p>By finishing this process you are ready to go into the next steps.</p><h3>Create User Automation</h3><p>It’s important to note that in order to create and set up permissions for our users, our user groups must <strong>already be created</strong>.</p><p>To automate the process of creating users in IAM, we utilized GitBash in conjunction with AWS CLI and Shell Script. A script was created that initiates a loop which reads the columns and rows of a CSV file, extracting the necessary data to send to IAM. This is where the AWS CLI comes in handy, as it eliminates the need to install and configure AWS CLI workspace in our environment, thus streamlining the transition processes significantly.</p><p>However, there is a caveat: to ensure that our loop reads all the user data correctly, we must convert our CSV file into a Unix format. To do so, we need to install the “dos2unix” package using the command below:</p><p>sudo yum install dos2unix -y</p><p>After successfully installing the package we can integrated complete our loop code, that&#39;s will be something like this:</p><pre>command -v dos2unix &gt;/dev/null || { echo &quot;does2unix not found. Please install the package and try again&quot;; exit 1; }<br><br>dos2unix $INPUT<br><br>while read -r user group password || [ -n &quot;$user&quot; ]<br>do<br>  if [&quot;$user&quot; != &quot;users&quot;]; then<br>    aws iam create-user --user-name $user<br>    aws iam create-login-profile --password-reset-required --user-name $user --password $password<br>    aws iam add-user-to-group --group-name $group --user-name $user<br>  fi<br><br>done &lt; $INPUT</pre><p>Once the user groups are set up and permissions are established, the final step is to provide our users with the IAM login URL. This URL can be found on the IAM homepage, located on the right-hand side of the page.</p><h3>Conclusion</h3><p>In summary, the automated creation of users in AWS IAM is a process that can increase the security and efficiency of your organization. By following the steps outlined in this article, you can automate the user creation process, ensure compliance with security policies, and provide secure access to end users. This frees up time to focus on other important and strategic activities for your business.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab6f5ff8fcb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>