<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kiran Amin Panjwani</title>
    <description>The latest articles on DEV Community by Kiran Amin Panjwani (@kiranpanjwani220).</description>
    <link>https://dev.to/kiranpanjwani220</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%2F1131013%2F3897e37c-3908-4757-b18a-1fd08e2cc6de.jpeg</url>
      <title>DEV Community: Kiran Amin Panjwani</title>
      <link>https://dev.to/kiranpanjwani220</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kiranpanjwani220"/>
    <language>en</language>
    <item>
      <title>Learn How to: “Add Files to the index.html File from S3 Bucket Storage and Run It on the Browser via Termius on an EC2 Instance”</title>
      <dc:creator>Kiran Amin Panjwani</dc:creator>
      <pubDate>Thu, 17 Aug 2023 08:13:21 +0000</pubDate>
      <link>https://dev.to/cloudclubs/learn-how-to-add-files-to-the-indexhtml-file-from-s3-bucket-storage-and-run-it-on-the-browser-via-termius-on-an-ec2-instance-45h8</link>
      <guid>https://dev.to/cloudclubs/learn-how-to-add-files-to-the-indexhtml-file-from-s3-bucket-storage-and-run-it-on-the-browser-via-termius-on-an-ec2-instance-45h8</guid>
      <description>&lt;p&gt;Welcome to this comprehensive guide on adding files to the index.html file from a S3 bucket and running them on a browser using Termius via an EC2 instance. In this blog, we'll walk you through the steps to harness AWS services for web development and cloud computing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What We Will Learn and Why It Matters:&lt;/strong&gt;&lt;br&gt;
You will learn how to use S3 for file storage, launch EC2 instances to host your web applications, and manage your instances with Termius. This knowledge is essential for web developers and cloud enthusiasts looking to securely and efficiently deploy their applications in the cloud. By the end of this tutorial, you'll have a functional web application accessible via a public IP address and ready to be explored by users worldwide.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;Step-by-Step Guide:&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Open the EC2 Instance:&lt;/strong&gt;&lt;br&gt;
Access your EC2 instance in the AWS Management Console and copy the "Public IPv4 address" for later use. For example: "&lt;em&gt;3.0.184.216&lt;/em&gt;".&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;2. Configure Security Group:&lt;/strong&gt;&lt;br&gt;
Scroll down and navigate to the "Security" tab. Open the "Security groups" link, click the "Edit inbound rules" button, and add a new inbound rule for port 8081. Save the rules for later use.&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;3. Connect via Termius:&lt;/strong&gt;&lt;br&gt;
Click the "Connect" button mentioned on top of the instance details. &lt;/p&gt;

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

&lt;p&gt;You can choose either the "EC2 instance Connect" tab or create a new Host on Termius.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Create a Termius Host:&lt;/strong&gt;&lt;br&gt;
Open Termius, press "New HOST," and provide a meaningful label (such as "&lt;em&gt;demoinstance&lt;/em&gt;"). Enter the EC2 instance's Public IPv4 address, set the username as "ubuntu," and import the key pair file.&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;5. Start the Host:&lt;/strong&gt;&lt;br&gt;
Start the host by clicking the icon on the top-right corner of the panel.&lt;/p&gt;

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

&lt;p&gt;Now you are ready to proceed with adding an image to the index.html file from S3 and running the index.html file on the browser using the EC2 instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[Instructions to Add Files to the index.html File and Run It on the Browser]&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Execute the following commands after opening the host:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;u&gt;Update Package Information:&lt;/u&gt; &lt;strong&gt;sudo apt update&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Install Apache Web Server:&lt;/u&gt; &lt;strong&gt;sudo apt install apache2&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Open Apache Port Configuration File:&lt;/u&gt; &lt;strong&gt;sudo nano /etc/apache2/ports.conf&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Change Working Directory:&lt;/u&gt; &lt;strong&gt;cd /var/www/html&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;List Files in the Directory:&lt;/u&gt; &lt;strong&gt;ls&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Remove Existing index.html File (if any):&lt;/u&gt; &lt;strong&gt;sudo rm index.html&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Create a New index.html File:&lt;/u&gt; &lt;strong&gt;sudo nano index.html&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Write your HTML code inside the file and include the "Object URL" link of the file you uploaded to your S3 bucket. Save the file and exit the text editor.
&lt;em&gt;Example:&lt;/em&gt; &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs0akjkk995xceeh65t00.png" alt="Link the file" width="800" height="194"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Edit Apache Port Configuration:&lt;/u&gt; &lt;strong&gt;sudo nano /etc/apache2/ports.conf&lt;/strong&gt;
Edit the port number next to "Listen" in the file. For example: "8081". Save the file. 
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx8c05zio0fsvpseaj82e.png" alt="8081" width="800" height="390"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Edit Apache Default Virtual Host Configuration:&lt;/u&gt; &lt;strong&gt;sudo nano /etc/apache2/sites-enabled/000-default.conf&lt;/strong&gt;
Edit the port number next to "VirtualHost" in the file. For example: "8081". Save the file. &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq4nc1oosr4t8znkgo1t3.png" alt="type" width="800" height="397"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Restart Apache Server:&lt;/u&gt; &lt;strong&gt;sudo service apache2 restart&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Open Your Browser and Navigate to your EC2 Instance:&lt;/u&gt;
Open your browser and click your instance's "Public IPv4 address". You will be redirected to a new tab. &lt;/li&gt;
&lt;li&gt;
&lt;u&gt;Edit URL: &lt;/u&gt;
Add ":your port number" at the end of your URL and remove the "s" from "https" in the URL. 
For example, if your Public IPv4 address is "3.0.184.216" and your port number is "8081," the URL will look like this: "&lt;a href="http://3.0.184.216:8081/" rel="noopener noreferrer"&gt;http://3.0.184.216:8081/&lt;/a&gt;".
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flotfg5mxkiumwusk5n8h.png" alt="browser" width="800" height="461"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Congratulations! You have successfully added files to the index.html file from S3 and run your web application on a browser using an EC2 instance via Termius. This accomplishment marks the beginning of your exciting journey into the world of AWS, web development, and cloud computing. Now, you have the tools to deploy and manage your applications with confidence. &lt;/p&gt;

&lt;p&gt;Feel free to explore more AWS services and further enhance your web projects. &lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;Reference Links:&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Previous Blogs:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;• &lt;a href="https://dev.to/awscloudclubs/getting-started-with-aws-s3-create-your-first-bucket-and-upload-a-file-192"&gt;Getting Started with AWS S3: Create Your First Bucket and Upload a File&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• &lt;a href="https://dev.to/awscloudclubs/getting-started-with-aws-create-your-first-ec2-linux-instance-159h"&gt;Getting Started with AWS EC2: Create Your First EC2 Linux Instance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Download Termius:&lt;/em&gt;&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://www.termius.com/" rel="noopener noreferrer"&gt;https://www.termius.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ec2instance</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>aws</category>
    </item>
    <item>
      <title>Getting Started with AWS: "Create Your First EC2 Linux Instance"</title>
      <dc:creator>Kiran Amin Panjwani</dc:creator>
      <pubDate>Sun, 13 Aug 2023 11:22:43 +0000</pubDate>
      <link>https://dev.to/cloudclubs/getting-started-with-aws-create-your-first-ec2-linux-instance-159h</link>
      <guid>https://dev.to/cloudclubs/getting-started-with-aws-create-your-first-ec2-linux-instance-159h</guid>
      <description>&lt;p&gt;Welcome to this beginner's guide to AWS EC2 (Elastic Compute Cloud). In this blog, we will walk you through the process of creating your first EC2 Linux instance on the Amazon Web Services platform. EC2 offers scalable computer capacity in the cloud, and it's a fundamental service that allows you to launch and manage virtual servers with ease. Let's get started!&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;5 Reasons to use Amazon EC2 Service:&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Flexibility and Scalability:&lt;/strong&gt;&lt;br&gt;
AWS EC2 offers a wide range of instance types, allowing you to choose the virtual server configuration that best fits your application's requirements. Whether you need a general-purpose instance for everyday computing or a high-performance instance for computer-intensive tasks, EC2 has you covered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Pay as You Go:&lt;/strong&gt;&lt;br&gt;
With AWS EC2, you only pay for the compute capacity you use. This pay-as-you-go model means you can scale your infrastructure up or down as needed, and you won't be charged for unused resources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Easy Instance Management:&lt;/strong&gt;&lt;br&gt;
Launching, configuring, and managing EC2 instances is straightforward via the AWS Management Console or API. You have full control over your instances, including the ability to start, stop, and terminate them as needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Global Reach:&lt;/strong&gt;&lt;br&gt;
AWS EC2 operates in multiple regions around the world, allowing you to deploy your instances close to your target audience for reduced latency and improved performance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Integration with Other AWS Services:&lt;/strong&gt;&lt;br&gt;
EC2 seamlessly integrates with other AWS services, making it a vital component of many cloud-based applications. From databases to content delivery networks, EC2 can work in conjunction with various services to provide a complete solution.&lt;/p&gt;

&lt;p&gt;Now, let’s walk you through the process of setting up your cloud-based, virtual Linux server using AWS EC2. &lt;em&gt;Let's begin!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Access the AWS Management Console:&lt;/strong&gt;&lt;br&gt;
Navigate to the AWS Management Console by visiting &lt;a href="https://console.aws.amazon.com/" rel="noopener noreferrer"&gt;https://console.aws.amazon.com/&lt;/a&gt;. Sign in with your AWS credentials and search for “EC2”:&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;2. Launch the EC2 Instance:&lt;/strong&gt;&lt;br&gt;
In the AWS Management Console, locate and click on "Instances" in the left-hand menu, and then click on the "Launch Instance" button.&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;3. Choose Instance Details:&lt;/strong&gt;&lt;br&gt;
After clicking "Launch Instance," provide a meaningful name for your instance (for example:  "&lt;em&gt;demoinstance&lt;/em&gt;"). Next, scroll down and select "&lt;em&gt;Ubuntu&lt;/em&gt;" under the "Quick Start" tab.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;4. Select the Amazon Machine Image:&lt;/strong&gt;&lt;br&gt;
From the dropdown menu of "Amazon Machine Image," choose "&lt;em&gt;Ubuntu Server 20.04 LTS (HVM), SSD Volume Type&lt;/em&gt;" as your operating system.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;5. Create a New Key Pair:&lt;/strong&gt;&lt;br&gt;
In the "Key Pair (login)" section, select "create new key pair" to generate a new keypair. In the new window, give it a meaningful name, such as "&lt;em&gt;demokeypair&lt;/em&gt;," and select "ppk" as its format. Pressing will have the ".ppk" file download and save to your local machine.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;6. Save the Key Pair:&lt;/strong&gt;&lt;br&gt;
Set the destination of the downloaded ".ppk" file to your Desktop or any preferred location. For example, "&lt;em&gt;C:\Users\hp\Desktop&lt;/em&gt;".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Configure Security Group:&lt;/strong&gt;&lt;br&gt;
Enable necessary access to your EC2 instance by checking all of the unchecked boxes under the "Firewall (security groups)" section. &lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;8. Review and Launch:&lt;/strong&gt;&lt;br&gt;
Review all your settings to ensure they are correct. Once you're ready, click on the "Launch Instance" button.&lt;/p&gt;

&lt;p&gt;Congratulations! Your EC2 instance has successfully been created. You will need to wait a few minutes for the instance state to change to "running," and all "Status Checks" to pass successfully.&lt;/p&gt;

&lt;p&gt;Now that your instance is up and running, you can explore deploying applications, hosting websites, running databases, and more. Optimize costs by stopping or terminating instances when not in use. As you continue your journey into the world of AWS, don't forget to discover the other services and capabilities that AWS offers. &lt;/p&gt;

&lt;p&gt;Happy cloud computing!&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Previous Blog:&lt;/strong&gt;&lt;/em&gt; &lt;a href="https://dev.to/awscloudclubs/getting-started-with-aws-s3-create-your-first-bucket-and-upload-a-file-192"&gt;Getting Started with AWS S3: Create Your First Bucket and Upload a File&lt;/a&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;What's Next?&lt;/strong&gt;&lt;/em&gt; &lt;a href="https://dev.to/awscloudclubs/learn-how-to-add-files-to-the-indexhtml-file-from-s3-bucket-storage-and-run-it-on-the-browser-via-termius-on-an-ec2-instance-45h8"&gt;Learn How to: “Add Files to the index.html File from S3 Bucket Storage and Run It on the Browser via Termius on an EC2 Instance”&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Getting Started with AWS S3: Create Your First Bucket and Upload a File</title>
      <dc:creator>Kiran Amin Panjwani</dc:creator>
      <pubDate>Sun, 06 Aug 2023 15:49:07 +0000</pubDate>
      <link>https://dev.to/cloudclubs/getting-started-with-aws-s3-create-your-first-bucket-and-upload-a-file-192</link>
      <guid>https://dev.to/cloudclubs/getting-started-with-aws-s3-create-your-first-bucket-and-upload-a-file-192</guid>
      <description>&lt;p&gt;Welcome to this beginner-friendly guide to AWS S3 (Simple Storage Service). In this blog, we'll show you how to create your first S3 bucket and upload a file to it. AWS S3 is a powerful and scalable storage service offered by Amazon Web Services, and it's a great introduction to cloud storage and data management. Let's dive in and get started!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5 Reasons to USE Amazon S3 Service:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Scalability and Durability&lt;/strong&gt;&lt;br&gt;
AWS S3 is designed to provide high scalability and durability for your data. It automatically scales to handle virtually any amount of data and replicates your files across multiple data centers, ensuring data redundancy and availability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Cost-Effective Storage:&lt;/strong&gt;&lt;br&gt;
With AWS S3, you only pay for the storage you use, making it a cost-effective solution for storing data of any size. Additionally, AWS offers a free tier for new users, allowing you to try out the service at no cost. Visit &lt;a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/tracking-free-tier-usage.html" rel="noopener noreferrer"&gt;free tier cost management&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Easy Data Access:&lt;/strong&gt;&lt;br&gt;
Retrieving data from S3 is quick and straightforward. Whether you need to access data from a web application, mobile app, or any other platform, S3 provides APIs and SDKs that make data retrieval quick and simple.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Data Security:&lt;/strong&gt;&lt;br&gt;
AWS S3 offers robust security features to protect your data. You can configure access controls, encryption, and set up IAM (Identity and Access Management) policies to manage user permissions effectively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;- Integration with AWS Services:&lt;/strong&gt;&lt;br&gt;
S3 seamlessly integrates with other AWS services, enabling you to build scalable and complex applications with ease. It serves as a foundation for various data-driven use cases like data lakes, backup and recovery, and content distribution.&lt;/p&gt;

&lt;p&gt;Ready to dive into the world of AWS S3? Let's start with these step-by-step instructions!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Create an AWS Account:&lt;/strong&gt;&lt;br&gt;
If you don't have an AWS account yet, go to the &lt;a href="https://aws.amazon.com/" rel="noopener noreferrer"&gt;AWS website&lt;/a&gt; and sign up for a new account. You'll need a credit card to complete the registration, but many services, including AWS S3, offer a free tier for new users to get started.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Access the AWS Management Console:&lt;/strong&gt;&lt;br&gt;
Sign in using your AWS credentials at &lt;a href="https://console.aws.amazon.com/" rel="noopener noreferrer"&gt;https://console.aws.amazon.com/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Navigate to S3:&lt;/strong&gt;&lt;br&gt;
In the AWS Management Console, type "S3" in search bar at the top and select the "S3" service from the results.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;4. Create a Bucket:&lt;/strong&gt;&lt;br&gt;
In the S3 dashboard, click the "Create bucket" button. Provide a unique and meaningful name for your bucket. Bucket names must be globally unique across all AWS accounts, (for example: "&lt;em&gt;demoexample&lt;/em&gt;"). Select a region for your bucket to be stored in. For beginners, it's recommended to choose a region closer to your geographical location to reduce latency.&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;5. Configure Public Access:&lt;/strong&gt;&lt;br&gt;
i) Uncheck the box labeled "Block all public access" to allow public access to the bucket.&lt;br&gt;
ii) Check the box labeled "&lt;em&gt;I acknowledge that the current settings might result in this bucket and the objects within becoming public&lt;/em&gt;" to acknowledge the potential risks of allowing public access.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;6. Configure Bucket Settings:&lt;/strong&gt;&lt;br&gt;
For simplicity, you can keep the default settings for most configurations. You can explore these options later as you get more familiar with AWS S3.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Set Permissions:&lt;/strong&gt;&lt;br&gt;
For beginners, you can leave the bucket settings at their default values. In a production environment, you might want to manage access control more carefully.&lt;br&gt;
&lt;strong&gt;8. Review and Create:&lt;/strong&gt;&lt;br&gt;
Review your bucket configurations and click the "Create bucket" button.&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;9. Upload a File:&lt;/strong&gt;&lt;br&gt;
Once the bucket is created, you will be redirected to the bucket overview page.  From there, click on the "Upload" button to upload a file from your local machine. You can choose any file you like, such as an image, text document, or PDF. For example, you can upload a "png image of an S3 bucket".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. Keep the Default Settings:&lt;/strong&gt;&lt;br&gt;
Add optional metadata if needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;11. Review your Upload Settings:&lt;/strong&gt;&lt;br&gt;
Check settings and click the "Upload" button to upload the file to the bucket.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12. Access Uploaded Files:&lt;/strong&gt;&lt;br&gt;
After the upload is complete, you will be able to see your file listed in the bucket. Click on the name of the file to access its details. From there, you can copy the object URL, which you can use later to access the file.&lt;/p&gt;

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

&lt;p&gt;You have successfully created an S3 bucket and uploaded a file to it. AWS S3 is now storing your file securely, and you can access it anytime using the URL or programmatically through the AWS SDKs or APIs. &lt;/p&gt;

&lt;p&gt;Please note that if you want to make the uploaded file accessible publicly, you will need to uncheck the "Block all public access" box when creating the bucket. This will allow public access to the bucket and its contents. However, you should carefully consider the security implications of allowing public access to your S3 bucket before doing so.&lt;/p&gt;

&lt;p&gt;By following these simple steps, you've accomplished the essential tasks of setting up an S3 bucket and uploading a file. AWS S3 offers a versatile and reliable storage solution, and you can further explore its features to suit your specific needs. As you delve deeper into the world of AWS, you'll discover various services that integrate seamlessly with S3, enabling you to build robust and scalable applications. &lt;/p&gt;

&lt;p&gt;So, keep learning, experimenting, and leveraging the power of cloud computing with AWS!🌟&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
&lt;em&gt;&lt;strong&gt;What's Next?&lt;/strong&gt;&lt;/em&gt; &lt;a href="https://dev.to/awscloudclubs/getting-started-with-aws-create-your-first-ec2-linux-instance-159h"&gt;Getting Started with AWS: Create Your First EC2 Linux Instance&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
