<?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: Barakat</title>
    <description>The latest articles on DEV Community by Barakat (@thelady_moh).</description>
    <link>https://dev.to/thelady_moh</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%2F2015406%2F60e2e59f-0fe4-4a64-941b-f35c134ef814.jpg</url>
      <title>DEV Community: Barakat</title>
      <link>https://dev.to/thelady_moh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thelady_moh"/>
    <language>en</language>
    <item>
      <title>Setting Up and Configuring NGINX on an Ubuntu Server.</title>
      <dc:creator>Barakat</dc:creator>
      <pubDate>Thu, 30 Jan 2025 16:05:18 +0000</pubDate>
      <link>https://dev.to/thelady_moh/setting-up-and-configuring-nginx-on-an-ubuntu-server-2hoi</link>
      <guid>https://dev.to/thelady_moh/setting-up-and-configuring-nginx-on-an-ubuntu-server-2hoi</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;As part of my DevOps learning journey, I recently joined HNG12 internship and completed a hands-on task in setting up and configuring NGINX on a fresh Ubuntu server. This task was instrumental in strengthening my understanding of server configuration, security management, and web hosting fundamentals. &lt;br&gt;
In this blog post, I will document my approach, the steps I followed, and how this experience contributes to my learning and professional growth.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Approach
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1.Set up an EC2 Instance on AWS&lt;/strong&gt;&lt;br&gt;
I started by launching an EC2 instance on AWS, selecting Ubuntu as my operating system. This provided a fresh environment to configure and deploy my web server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Configured Security Group&lt;/strong&gt;&lt;br&gt;
Next, I edited the security group settings to allow necessary inbound and outbound rules:&lt;/p&gt;

&lt;p&gt;Inbound Rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SSH (Port 22) – Allowed to securely connect to the instance.&lt;/li&gt;
&lt;li&gt;HTTP (Port 80) – Enabled to serve web traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Outbound Rule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTTP (Port 80) – Allowed outbound HTTP requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Connected to the instance via SSH&lt;/strong&gt;&lt;br&gt;
Using Git Bash, I connected to my EC2 instance via SSH with the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ssh -i "key.pem" ubuntu@ec2-public-ip&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Updated and upgraded NGINX&lt;/strong&gt;&lt;br&gt;
Before installing NGINX, I updated and upgraded the Ubuntu server to ensure it has the latest software versions:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt update&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo apt upgrade&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Installed NGINX&lt;/strong&gt;&lt;br&gt;
I installed NGINX using the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt install nginx -y&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;To confirm that NGINX was running, I checked its status using:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo systemctl status nginx&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If not started or enabled, use&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo systemctl start nginx&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo systemctl enable nginx&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;At this point, accessing &lt;a href="http://ec2-public-ip(" rel="noopener noreferrer"&gt;http://ec2-public-ip(&lt;/a&gt; mine is &lt;a href="http://52.91.162.32/" rel="noopener noreferrer"&gt;http://52.91.162.32/&lt;/a&gt;) in a browser displayed the default NGINX welcome page.&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%2Ft7x1fbeaaj0mcd1no711.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%2Ft7x1fbeaaj0mcd1no711.PNG" alt="Image description" width="800" height="399"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Replaced the default NGINX page&lt;/strong&gt; &lt;br&gt;
I then created a custom HTML file to replace the default NGINX welcome page.&lt;br&gt;
Using nano, I created and edited the file:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo nano /var/www/html/index.html&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I replaced the content with my html file content and saved it. &lt;br&gt;
Visiting my public IP address(&lt;a href="http://52.91.162.32/" rel="noopener noreferrer"&gt;http://52.91.162.32/&lt;/a&gt;) in a browser now displayed my custom html welcome message.&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%2Fcd9t11fcs8zcpj8j00k6.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%2Fcd9t11fcs8zcpj8j00k6.PNG" alt="Image description" width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How This Task Contributes to My Learning and Professional Goals&lt;/strong&gt;&lt;br&gt;
This experience was a great opportunity to apply DevOps best practices in a real-world scenario. I,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gained hands-on experience with AWS EC2, Linux server administration, and NGINX configuration.&lt;/li&gt;
&lt;li&gt;Improved my understanding of security group configurations and SSH connectivity.&lt;/li&gt;
&lt;li&gt;Strengthened my skills in basic web hosting and automation.&lt;/li&gt;
&lt;li&gt;Learned the importance of server updates and proper service management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://hng.tech/hire/cloud-engineers" rel="noopener noreferrer"&gt;https://hng.tech/hire/cloud-engineers&lt;/a&gt;&lt;br&gt;
&lt;a href="https://hng.tech/hire/aws-solutions-architects" rel="noopener noreferrer"&gt;https://hng.tech/hire/aws-solutions-architects&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Setting up and configuring NGINX on an Ubuntu server was an enlightening experience. This task reinforced my understanding of web server configurations, security best practices, and cloud infrastructure management. I look forward to building more complex deployments and automating server configurations in my DevOps journey!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>SETTING UP A COST-EFFECTIVE AWS INFRASTRUCTURE FOR YOUR STARTUP.</title>
      <dc:creator>Barakat</dc:creator>
      <pubDate>Mon, 02 Sep 2024 23:21:01 +0000</pubDate>
      <link>https://dev.to/thelady_moh/setting-up-a-cost-effective-aws-infrastructure-for-your-startup-53fn</link>
      <guid>https://dev.to/thelady_moh/setting-up-a-cost-effective-aws-infrastructure-for-your-startup-53fn</guid>
      <description>&lt;p&gt;Building a startup can be both time and money-consuming. While your team's passion and expertise are crucial for your startup growth, your technology infrastructure equally plays a vital role. Having the right, robust, scalable, and cost-effective tech infrastructure can accelerate your startup's journey, allowing you to focus on what matters most: your product and customers. Amazon Web Services(AWS) offers a comprehensive suite of cloud computing services that can help you achieve these goals. &lt;br&gt;
This article will guide you through the process of setting up a cost-effective AWS environment tailored to the needs of a growing startup. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT IS AMAZON WEB SERVICE (AWS)?&lt;/strong&gt;&lt;br&gt;
AWS is a subsidiary of Amazon that provides cloud computing platforms to individuals, organizations, and governments to help them lower costs, become more agile, save, and innovate faster. &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%2Fhl1i07sl4m3iuatgm008.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%2Fhl1i07sl4m3iuatgm008.png" alt="Happy I guess" width="250" height="220"&gt;&lt;/a&gt;&lt;br&gt;
Interesting right? Let's go ahead and dive into the numerous opportunities AWS has for your startup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GETTING STARTED&lt;/strong&gt;&lt;br&gt;
To leverage AWS full potential for your startup or use AWS, you need to be a user. User represents the person within your organization that interact with AWS console.&lt;br&gt;
 There are two(2) types of user in AWS;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Root User&lt;/strong&gt;: this is the initial owner that is created when the AWS new account is created. Do not share this with anyone.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;IAM User&lt;/strong&gt;: this user is created by the root user or an administrator of the account. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CREATING AN AWS ACCOUNT (ROOT USER)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Click on this link to start your account creation&lt;br&gt;
&lt;a href="https://aws.amazon.com/free" rel="noopener noreferrer"&gt;Amazon&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on create a free account to create your account.&lt;/p&gt;&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%2Frcp7uc507ql3hmt585ch.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%2Frcp7uc507ql3hmt585ch.png" alt="Let create your account" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enter necessary details as indicated below or sign-in with your details if you already have an account. &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%2Fslfcsfs1pjmqlimamg1n.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%2Fslfcsfs1pjmqlimamg1n.png" alt="Now fill in your details" width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You will be required to input a card details for verification. &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%2Fuqqspuqxt2qfq81jwwvk.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%2Fuqqspuqxt2qfq81jwwvk.png" alt="Don't Panic" width="220" height="220"&gt;&lt;/a&gt;&lt;br&gt;
Don't panic, you won't be charged for creating a free tier account as long as you follow the above steps. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You will receive an email after a successful account creation.&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%2F791qy3bjm6v9pv8mweur.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%2F791qy3bjm6v9pv8mweur.png" alt="Important" width="275" height="220"&gt;&lt;/a&gt;&lt;br&gt;
*&lt;em&gt;Do not give the credential of the root user account for your AWS account to anyone. Anyone who has this information has unrestricted access to all the resources in your account, including billing information. *&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;AWS MANAGEMENT CONSOLE&lt;/strong&gt;&lt;br&gt;
The AWS Management Console is the web based interface for accessing and managing AWS services. It provides a user friendly way to interact with AWS resources without requiring deep technical knowledge. With the AWS Management Console, users are able to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;View/Search for Services&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%2Fa3lrd28tombfzturps9y.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%2Fa3lrd28tombfzturps9y.png" alt="AWS Services and Search Bar" width="800" height="345"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Access AWS CloudShell&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%2Fbwz9pn69ig0qbaa9fvfd.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%2Fbwz9pn69ig0qbaa9fvfd.png" alt="AWS CloudShell" width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Notification&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%2F5gzvy713m29a54vfz2sc.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%2F5gzvy713m29a54vfz2sc.png" alt="Get Notified" width="800" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Support, User settings, Origin, and Access Account.&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%2Fyrg45qs83b3zy1q7m045.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%2Fyrg45qs83b3zy1q7m045.png" alt="Know your AWS Management Console" width="800" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NAVIGATING AWS SERVICES&lt;/strong&gt;&lt;br&gt;
To navigate through different AWS services, you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Search Bar: Type the service name in the search bar at the top of the console.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Services Menu: Click on the "Services" dropdown menu and select the desired services. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are lot of AWS services that can be leverage for the growth of your startup.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Below are Key Services for a startup&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;EC2(Elastic Compute Cloud): provides virtual servers that can be scaled according to demand for running applications. &lt;/li&gt;
&lt;li&gt;S3(Simple Storage Service): offers scalable object storage for storing data, content distribution and more. &lt;/li&gt;
&lt;li&gt;IAM(Identity and Access Management): manages user access to AWS resources. &lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;INDENTITY AND ACCESS MANAGEMENT(IAM)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;IAM is crucial for managing user access to AWS resources and preventing unauthorized access.It enables you to control who can access your AWS resources and what actions they can perform. It helps ensure security and compliance. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IAM COMPONENTS/RESOURCES&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Users&lt;/li&gt;
&lt;li&gt;Groups&lt;/li&gt;
&lt;li&gt;Policies&lt;/li&gt;
&lt;li&gt;Roles&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;IAM USER&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;User represent the person within your organization that interacts with AWS console and services. &lt;/li&gt;
&lt;li&gt;You can create a user and add permission directly to the user.&lt;/li&gt;
&lt;li&gt;Multiple users can be part of a group.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;GROUP&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A group is a collection of IAM users&lt;/li&gt;
&lt;li&gt;A user can belong to multiple groups but groups cannot belong to other groups.&lt;/li&gt;
&lt;li&gt;Groups can be granted permissions using access control policies. This makes it easier to manage permissions for a collection of users. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CREATING AN IAM USER&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Login to your Root User Account &lt;a href="https://aws.amazon.com/console" rel="noopener noreferrer"&gt;Amazon&lt;/a&gt;
&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%2Fht700ci2rtkurc9mhhc5.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%2Fht700ci2rtkurc9mhhc5.png" alt="Root User Login" width="533" height="596"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Search IAM in the Search Bar.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on &lt;strong&gt;Users&lt;/strong&gt; and then &lt;strong&gt;Create User&lt;/strong&gt;&lt;/p&gt;&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%2Fhk7lwytj7vhei7jiscyn.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%2Fhk7lwytj7vhei7jiscyn.png" alt="Now Create an IAM User" width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enter a Username and tick the box below it.&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%2Ftstp3p52eskllih3im5n.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%2Ftstp3p52eskllih3im5n.png" alt="Create a Unique Username" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tick the "I want to create an IAM User" box and create a custom password or use an Autogenerated Password.&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%2Fd6zihz8tlmzy4rbxuhzm.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%2Fd6zihz8tlmzy4rbxuhzm.png" alt="Create a password" width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tick or Untick the box that allow user to create a new password on next login. It is advisable to tick this box if you are creating the account for others then click "Next"&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%2Ffd9xpw9vvx3hvkazizfo.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%2Ffd9xpw9vvx3hvkazizfo.png" alt="You're Progressing" width="800" height="358"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Attach Policy Directly to the user.&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%2Feimfr2idfj4pzkgo2h3p.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%2Feimfr2idfj4pzkgo2h3p.png" alt="Policy Access" width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Review and create User.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CREATING AN IAM GROUP&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Type IAM in the search bar.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "User Groups" then "Create Group".&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%2Ftm3lg8kj6g4678s598ym.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%2Ftm3lg8kj6g4678s598ym.png" alt="IAM group Creation" width="800" height="361"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter a group name and add users to the group.&lt;/p&gt;&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%2Fi383205szkyymige62fb.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%2Fi383205szkyymige62fb.png" alt="Image description" width="800" height="353"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Viola! you have just created a group with multiple users.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;IAM POLICY&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IAM policies are JSON documents that specify the permissions granted to a user, group, or role.&lt;/li&gt;
&lt;li&gt;When you create an IAM user, they can't access anything in your account until you give them permission. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Types of Policy&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS Managed: predefined policy created by AWS that can be attached to the user, group, and role. &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%2Foh86e9fqznbh3qznztfh.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%2Foh86e9fqznbh3qznztfh.png" alt="Get Familiar with AWS managed policies" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS Managed - Job Function: Policy created by AWS for specific job functions, For example Data Science.&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%2Fcrp3oxy1sb35fwmgkbe3.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%2Fcrp3oxy1sb35fwmgkbe3.png" alt="Get Familiar with AWS managed-job function policies" width="800" height="367"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Custom: policy created by you to meet specific requirement: Click on Create policy at the top write corner and input necessary code for the permission needed. ChatGPT and google will help to learn more about this. &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%2Flbgp6hd9cupr35f7ut37.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%2Flbgp6hd9cupr35f7ut37.png" alt="Yippee! its time to create your own policy" width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common IAM Permissions&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full Access: Grants the principal full control over a resource (e.g., "AmazonS3FullAccess").&lt;/li&gt;
&lt;li&gt;Read-Only Access: Grants the principal permission to view but not modify resources (e.g., "AmazonEC2ReadOnlyAccess").&lt;/li&gt;
&lt;li&gt;Write-Only Access: Grants the principal permission to modify but not view resources.&lt;/li&gt;
&lt;li&gt;Specific Actions: Grants the principal permission to perform specific actions on resources (e.g., "ec2:DescribeInstances").&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;IAM ROLES&lt;/strong&gt;&lt;br&gt;
Roles provide temporary security credentials to users, applications, or services that need to access AWS resources. Unlike IAM users, which have permanent credentials, roles are associated with specific use cases and provide access only when needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating and Using IAM Roles&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create an IAM Role: In the IAM console, create a role and attach appropriate policies to define the permissions granted to the role.&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%2Fr4l7mga82fxsfqh901u2.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%2Fr4l7mga82fxsfqh901u2.png" alt="IAM Role" width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Assign the Role: Assign the role to a user, group, or service that needs to access AWS resources.&lt;/li&gt;
&lt;li&gt;Assume the Role: When a user or service needs to access resources, they assume the role, obtaining temporary credentials.&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%2F4lajn3wfg35h8ipx2yy2.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%2F4lajn3wfg35h8ipx2yy2.png" alt="Cheers" width="301" height="220"&gt;&lt;/a&gt;&lt;br&gt;
You have come this far and I really commend your effort. &lt;/p&gt;

&lt;p&gt;In conclusion, building a cost-effective and scalable AWS infrastructure is crucial for startups to achieve rapid growth and maintain competitiveness. By following the guidelines outlined in this article, you can effectively set up and manage your AWS environment, ensuring security, cost-efficiency, and flexibility.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Takeaways:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IAM Policies and Permissions: Understand the importance of IAM policies and best practices for managing access to AWS resources.&lt;/li&gt;
&lt;li&gt;Cost Optimization: Implement cost optimization strategies to maximize efficiency and minimize expenses.&lt;/li&gt;
&lt;li&gt;Awareness: make sure your teams are aware of how your resources are running. For most startup it is advisable to start with a free tier account and grow as the business and workload grows.&lt;/li&gt;
&lt;li&gt;Continuous Learning: Stay updated with the latest AWS features and best practices to ensure your infrastructure remains relevant and secure.
As your startup continues to evolve, remember to revisit and refine your AWS environment to align with your changing needs. By doing so, you can leverage the services of AWS to drive your business forward and achieve your goals.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Don't forget to follow me for more articles on AWS Cloud Computing. &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%2Fq459vy2qpr47yvh2r7yn.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%2Fq459vy2qpr47yvh2r7yn.png" alt="Cheers to connecting with y'all" width="600" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

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