<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: MaryAyobami</title>
    <description>The latest articles on Forem by MaryAyobami (@maryayobami).</description>
    <link>https://forem.com/maryayobami</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1005595%2F088d7ee9-23a6-49d5-ab49-b99d40ec34d4.jpeg</url>
      <title>Forem: MaryAyobami</title>
      <link>https://forem.com/maryayobami</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/maryayobami"/>
    <language>en</language>
    <item>
      <title>My Cloud+Security Series</title>
      <dc:creator>MaryAyobami</dc:creator>
      <pubDate>Wed, 03 Apr 2024 10:05:29 +0000</pubDate>
      <link>https://forem.com/maryayobami/my-cloudsecurity-series-4ljd</link>
      <guid>https://forem.com/maryayobami/my-cloudsecurity-series-4ljd</guid>
      <description>&lt;p&gt;If you ever come across this, hello to you! And welcome to my blog.&lt;/p&gt;

&lt;p&gt;I haven’t posted new articles on this blog in a while, but that is about to change. I’m starting a new series - “Cloud+Security Series,” where I intend to write articles on cloud computing, cloud security, and cybersecurity. It is not entirely structured. I plan to write on random topics around this area or any new or exciting topic I come across in my learning and hands-on projects with these areas. I will be dropping at least two articles each week. I implore you to stick around here. You will enjoy the articles whether you are a cloud enthusiast like me, a newbie, or a professional.&lt;/p&gt;

&lt;p&gt;Cheers.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Instant Deployment Made Easy: How to Deploy Web Apps on Azure Static Web Apps.</title>
      <dc:creator>MaryAyobami</dc:creator>
      <pubDate>Sat, 15 Apr 2023 08:40:49 +0000</pubDate>
      <link>https://forem.com/maryayobami/deploy-your-web-apps-in-a-minute-3d4e</link>
      <guid>https://forem.com/maryayobami/deploy-your-web-apps-in-a-minute-3d4e</guid>
      <description>&lt;p&gt;Azure Static Web Apps is a service that deploys full-stack web apps automatically to Azure from a code repository. This service has been designed to meet the daily workflow of developers, where apps are built and deployed based on code changes. When an Azure Static Web Apps resource is created, Azure interacts directly with GitHub or Azure DevOps to monitor a branch of choice. Whenever there is a code change through push commits or acceptance of pull requests, a build automatically runs and the app and API are deployed to Azure.&lt;/p&gt;

&lt;p&gt;This service supports popular web development frameworks such as React, Angular, Vue.js, and static site generators such as Gatsby and Hugo. In this article, I will walk you through the steps required to deploy a web app on Azure Static Web App through two different methods:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Azure Portal&lt;/li&gt;
&lt;li&gt;Azure Static Web App CLI&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;h2&gt;
  
  
  Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Prerequisites&lt;/li&gt;
&lt;li&gt;
Deployment through the Azure Portal

&lt;ul&gt;
&lt;li&gt;Step 1: Create a new Azure Static Web App&lt;/li&gt;
&lt;li&gt;Step 2: Configure the Static Web App&lt;/li&gt;
&lt;li&gt;Step 3: Review and deploy the Static Web App&lt;/li&gt;
&lt;li&gt;Step 4: Access your Static Web App&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Deployment through the Azure SWA CLI&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Before we move forward in deploying our apps, we need the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An Azure Account, which can be created &lt;a href="https://azure.microsoft.com/en-us/free/"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A Github repository that contains the code to be deployed. You can find the repository used in this article &lt;a href="https://github.com/MaryAyobami/university-site"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you are set, let's proceed!&lt;/p&gt;

&lt;h2&gt;
  
  
  Deployment through the Azure Portal
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Create a new Azure Static Web App
&lt;/h3&gt;

&lt;p&gt;The first step is to create a new Azure Static Web App in the Azure portal. Follow these steps to create the app:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log in to the Azure portal (&lt;a href="https://portal.azure.com/"&gt;https://portal.azure.com/&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Click on "Create a resource" in the top left corner of the dashboard.&lt;/li&gt;
&lt;li&gt;Search for "Static Web Apps" in the search bar.&lt;/li&gt;
&lt;li&gt;Click on "Static Web Apps (Preview)" from the list of results.&lt;/li&gt;
&lt;li&gt;Click on the "Create" button to create a new static web app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmdh3cywiqd038ij2v8w2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmdh3cywiqd038ij2v8w2.jpg" alt="Image description" width="800" height="149"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 2: Configure the Static Web App
&lt;/h3&gt;

&lt;p&gt;Go ahead to select a subscription, resource group (or create a new one), and give a name to your app as shown in the image below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mxoe3hjh7uyp31dkg6y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mxoe3hjh7uyp31dkg6y.jpg" alt="Image description" width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Under &lt;em&gt;Deployment Details&lt;/em&gt; , Select the source where your code is located. For Github, you may have to authorize Azure to connect to your Github account if you have not done so before. &lt;/p&gt;

&lt;p&gt;Then, Select the repository where your web app code is hosted.&lt;br&gt;
Select the branch that you want to deploy.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg74xpa6xbn44iobop1pb.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg74xpa6xbn44iobop1pb.PNG" alt="Image description" width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose the build command that will be used to build your web app. This could be a script in your package.json file or a custom command. Specify the output folder where the built files will be located.&lt;br&gt;
Choose the deployment environment for your static web app. You can choose between a preview or production environment.&lt;br&gt;
Click on the "Review + create" button to review your settings.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qzee1edfhts9w7ozy23.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qzee1edfhts9w7ozy23.PNG" alt="Image description" width="800" height="258"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;
  
  
  Step 3: Review and deploy the Static Web App
&lt;/h3&gt;

&lt;p&gt;After configuring the static web app, you need to review the settings and deploy it. Follow these steps to review and deploy the app:&lt;/p&gt;

&lt;p&gt;On the "Create a Static Web App" page, click on the "Review + create" button.&lt;br&gt;
Review your settings and make any necessary changes. Click on the "Create" button to create and deploy your static web app.&lt;br&gt;
Wait for the deployment to complete. You can view the deployment progress in the "Notifications" section.&lt;/p&gt;


&lt;h3&gt;
  
  
  Step 4: Access your Static Web App
&lt;/h3&gt;

&lt;p&gt;Once the deployment is complete, you will receive a notification. To access your web app, click on 'Go to Resource'.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb183kh881iftt37j8lg2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb183kh881iftt37j8lg2.jpg" alt="Image description" width="800" height="301"&gt;&lt;/a&gt;&lt;br&gt;
From there, you can directly access your web app by clicking on the "Browse" button. Alternatively, you can copy the URL of your web app.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqud17nrayhwkfho18u7c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqud17nrayhwkfho18u7c.jpg" alt="Image description" width="800" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4: Accessing your Static Web App&lt;/p&gt;

&lt;p&gt;Once the deployment is complete, you will receive a notification. To access your web app, click on 'Go to Resource'.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb183kh881iftt37j8lg2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb183kh881iftt37j8lg2.jpg" alt="Image description" width="800" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From there, you can directly access your web app by clicking on the "Browse" button. Alternatively, you can copy the URL of your web app.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqud17nrayhwkfho18u7c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqud17nrayhwkfho18u7c.jpg" alt="Image description" width="800" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And voila! Your web app is up and running.!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2fikcj3uwjffuvg3qyy5.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2fikcj3uwjffuvg3qyy5.PNG" alt="Image description" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Deployment through the Azure SWA CLI
&lt;/h2&gt;

&lt;p&gt;Another deployment option is the Azure Static Web Apps CLI, also known as SWA CLI. It is a local development tool for Azure Static Web Apps that can deploy your app to Azure Static Web Apps.&lt;/p&gt;

&lt;p&gt;To use the SWA CLI, you need to install it first. You can install it globally using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g @azure/static-web-apps-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After a successful installation, navigate to the code you want to deploy and change the directory. To initialize a new static web app project, use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;swa init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will prompt you to choose a configuration name for your app. After that, you will be shown an overview of the configuration settings. If the settings are correct, enter YES then proceed to deploying your app.&lt;/p&gt;

&lt;p&gt;To deploy your app to Azure Static Web Apps, type the following command:&lt;/p&gt;

&lt;p&gt;To deploy to Azure Static Web Apps, type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;swa deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Azure Static Web Apps makes it easy to deploy web apps to a secure and scalable environment. By following the steps outlined in this article, you can deploy your web app to Azure Static Web Apps in just a few minutes.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Get Started with Virtual Machines: A Step-by-Step Guide to Setting up an EC2 Instance on AWS.</title>
      <dc:creator>MaryAyobami</dc:creator>
      <pubDate>Sat, 08 Apr 2023 02:31:06 +0000</pubDate>
      <link>https://forem.com/maryayobami/get-started-with-virtual-machines-a-step-by-step-guide-to-setting-up-an-ec2-instance-on-aws-15ji</link>
      <guid>https://forem.com/maryayobami/get-started-with-virtual-machines-a-step-by-step-guide-to-setting-up-an-ec2-instance-on-aws-15ji</guid>
      <description>&lt;p&gt;A virtual machine is a software implementation of a physical machine, allowing multiple operating systems to run on the same physical hardware. In simple terms, A virtual machine is like a computer that exists within another computer. It's a software program that mimics the functions of a physical computer and can run its own operating system and applications independently of the host machine. This means that you can have multiple virtual machines running on the same physical computer, each with its own operating system and software applications. It's like having several computers in one!&lt;/p&gt;

&lt;h2&gt;
  
  
  What is EC2?
&lt;/h2&gt;

&lt;p&gt;EC2 which stands for Elastic Compute Cloud  is a web service provided by Amazon Web Services (AWS) that allows users to create and manage virtual machines on the cloud. AWS EC2 provides a scalable, reliable, and secure environment for running virtual machines with various operating systems, such as Linux, Windows, and macOS. EC2 instances can be launched and terminated on demand, allowing customers to scale their infrastructure up or down based on their needs.&lt;/p&gt;

&lt;p&gt;In this article, I will guide you through the process of setting up an EC2 instance on AWS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Create an AWS Account&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first step to setting up an EC2 instance on AWS is to create an AWS account. To do this, go to the &lt;a href="https://aws.amazon.com/free/?trk=2d3e6bee-b4a1-42e0-8600-6f2bb4fcb10c&amp;amp;sc_channel=ps&amp;amp;ef_id=Cj0KCQjw_r6hBhDdARIsAMIDhV8AzSIsMcAfttmLhUti3VIx8SbZmUJI4WWJvEdzzbZbepZ87ktBnQMaAoOJEALw_wcB:G:s&amp;amp;s_kwcid=AL!4422!3!645125273261!e!!g!!aws!19574556887!145779846712&amp;amp;all-free-tier.sort-by=item.additionalFields.SortRank&amp;amp;all-free-tier.sort-order=asc&amp;amp;awsf.Free%20Tier%20Types=*all&amp;amp;awsf.Free%20Tier%20Categories=*all"&gt;AWS website&lt;/a&gt; and click on the "Create a Free Account" button. Follow the prompts to create your account.&lt;/p&gt;

&lt;p&gt;Once your account is created, log in to the AWS console. This is where you will manage all of your AWS resources, including EC2 instances.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Launch an EC2 Instance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To launch an EC2 instance, follow these steps. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Type EC2 in global search box, then select EC2 from the options.&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3tlquk5yuh2cimsrmrij.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3tlquk5yuh2cimsrmrij.PNG" alt="EC2 Search" width="800" height="341"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;2. On the the EC2 dashboard, click on instances then the "Launch Instance" button.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;You will be presented with a variety of options for configuring your instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzemprj98k2sggkij92ks.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzemprj98k2sggkij92ks.jpg" alt="EC2 Dashboard" width="800" height="274"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;3. Name your Instance and add Tags.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Give your EC2 instance a name. You can also add tags to your instance to help you organize and identify it.&lt;/p&gt;

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




&lt;p&gt;&lt;strong&gt;4. Choose an Amazon Machine Image (AMI)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An Amazon Machine Image (AMI) is a pre-configured virtual machine image that includes the operating system, application server, and any other software required to run your application. You can choose from a variety of pre-configured AMIs provided by AWS, or you can create your own custom AMI.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqquicibb4joh5oqjnba.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqquicibb4joh5oqjnba.PNG" alt="Image description" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;5. Choose an Instance Type&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The next step is to choose an instance type. An instance type defines the CPU, memory, storage, and network capacity of your EC2 instance. You can choose from a variety of instance types depending on your specific requirements.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A t2.micro instance which is selected by default, has 1 vCPU and 1 GiB Memory. The t2.micro instance type is eligible for the free tier. In Regions where t2.micro is unavailable, you can use a t3.micro instance under the free tier.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbcinqq79peqsh7akn17t.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbcinqq79peqsh7akn17t.PNG" alt="Image description" width="800" height="273"&gt;&lt;/a&gt;&lt;br&gt;
Then choose an existing key-pair, or create a new one&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;It is not recommended to proceed without a key-pair as it is needed to connect to your instance. If you launch an instance without a key pair, then you can't connect to it.&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6zza7uws01gqa3x342x2.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6zza7uws01gqa3x342x2.PNG" alt="Image description" width="800" height="441"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;&lt;strong&gt;6. Configure Instance Details: (Network Settings, Security Group)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A security group is a set of firewall rules that control the traffic that can access your EC2 instance. You can configure your security group to allow traffic from specific IP addresses or ranges, or to allow traffic from anywhere.&lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt; Add SSH(port-22) and HTTP(port-80) rules in Inbound security groups rules to access your instance from putty(ssh) and through web browser(internet) respectively._&lt;/li&gt;
&lt;li&gt; _ Keep the default selections for the other configuration settings.
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvryvcixn6xnzgcypw861.PNG" alt="Image description" width="800" height="427"&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;7. Add Storage.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can add storage volumes to your instance. AWS offers different types of storage, such as Elastic Block Store (EBS) and Instance Store.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fba3v3o1bej7secspqer3.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fba3v3o1bej7secspqer3.PNG" alt="Image description" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;OPTIONAL: Advanced Details&lt;/strong&gt;&lt;br&gt;
In this section, everything can be left as default. You can also configure it. You can pass user data to the instance that can be used to perform automated tasks and even run scripts after the instance starts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;8. Review and Launch Your Instance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you have satisfied with your instance settings, you can launch your instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdcioz345rmvjnu112qnj.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdcioz345rmvjnu112qnj.PNG" alt="Image description" width="800" height="707"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fng5prdorkng4e9jtc38c.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fng5prdorkng4e9jtc38c.PNG" alt="Image description" width="800" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw32uxtdgxxcm0x5otv5r.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw32uxtdgxxcm0x5otv5r.PNG" alt="Image description" width="800" height="140"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Connect to Your Instance&lt;/strong&gt;&lt;br&gt;
There are multiple ways to connect to your instance. After your instance is launched, you can connect to it directly using EC2 instance connect, remote desktop protocol (RDP) client or a secure shell (SSH) client. To do this, you will need to use the key pair that you created earlier.&lt;br&gt;
Amazon EC2 Instance Connect provides a simple and secure way to connect to your EC2 instance using a browser-based client. To connect to your instance,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to the &lt;a href="https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#"&gt;EC2 console&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;In the navigation pane, click on Instances &lt;/li&gt;
&lt;li&gt;Select your instance and click the "Connect" button. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feyjj01ind0rau98wqiqh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feyjj01ind0rau98wqiqh.jpg" alt="Image description" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enter the custom username (ubuntu in this case) and click on connect.
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffd1ep5noa020g64bqvq9.PNG" alt="Image description" width="800" height="406"&gt;
&lt;em&gt;And that's it! Your EC2 instance is up and running!&lt;/em&gt;
&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7980tstugqhfk252k1w.PNG" alt="Image description" width="800" height="397"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you are connected to your EC2 instance, you can install and configure your application. This may include installing any necessary software, configuring your web server, and setting up any databases or other dependencies.&lt;/p&gt;

&lt;p&gt;Setting up an EC2 instance on AWS as a beginner can seem daunting at first, but with the right guidance, it can be a straightforward process. By following the steps outlined in this article, you can quickly set up an EC2 instance and start running your applications in the cloud.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>virtualmachine</category>
      <category>ec2</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
