<?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: Sakin Deborah</title>
    <description>The latest articles on DEV Community by Sakin Deborah (@sakin_deborah_4a68b191ad4).</description>
    <link>https://dev.to/sakin_deborah_4a68b191ad4</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%2F2160800%2Fe04487df-6d29-4a2f-92ed-168d1a97e67b.png</url>
      <title>DEV Community: Sakin Deborah</title>
      <link>https://dev.to/sakin_deborah_4a68b191ad4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sakin_deborah_4a68b191ad4"/>
    <language>en</language>
    <item>
      <title>Essentials for a Quick Reliable Infrastructure in AWS Cloud</title>
      <dc:creator>Sakin Deborah</dc:creator>
      <pubDate>Tue, 25 Feb 2025 06:19:51 +0000</pubDate>
      <link>https://dev.to/sakin_deborah_4a68b191ad4/essentials-for-a-quick-reliable-infrastructure-in-aws-cloud-j8h</link>
      <guid>https://dev.to/sakin_deborah_4a68b191ad4/essentials-for-a-quick-reliable-infrastructure-in-aws-cloud-j8h</guid>
      <description>&lt;p&gt;One of the 4 well architected pillars in AWS is Resilience. This translates to how your infrastructure performs without failures and interruptions.&lt;br&gt;
In this article, we quickly summarize what makes a solution quickly reliable. &lt;br&gt;
Below is the architecture of a reliable 3-tier infrastructure using EC2 instances distributed across three Availability Zones.&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%2F89b43qxhxpxiwk8ek25t.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%2F89b43qxhxpxiwk8ek25t.png" alt="Image description" width="800" height="542"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To practically do the lab, find it &lt;a href="https://catalog.workshops.aws/well-architected-reliability/en-US/3-change-management/10-deploy-cloudformation" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A simple implementation of the project would be comprised of an instance and the dynamo db table.&lt;br&gt;
The service makes an API call from the dynamo db and serves it to the instance to be visible on a web server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best practices for reliability present&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The infrastructure contains an autoscaling group, with parameters having a minimum and maximum number of instances to scale to. This ensures that demand is met while keeping costs low with a maximum cap.&lt;/li&gt;
&lt;li&gt;Autoscaling groups also contain a feature where health checks of instances are performed and upon detection of a failure, unhealthy instance is replaced, automating the remediation process.&lt;/li&gt;
&lt;li&gt;Having the instances spread out over three availability zones increase reliability since the service is less prone to down-time. When one zone isnʼt available, traffic is directed to the instances that are up.&lt;/li&gt;
&lt;li&gt;The elastic load balancers distribute traffic to the instances to help alleviate stress on an instance while others are less busy. This also decouples the infrastructure as the service is not dependent or fixated on a particular instance.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devops</category>
      <category>aws</category>
      <category>cloud</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How to Set-Up AWS CLI: Quick Guide</title>
      <dc:creator>Sakin Deborah</dc:creator>
      <pubDate>Mon, 17 Feb 2025 13:21:03 +0000</pubDate>
      <link>https://dev.to/sakin_deborah_4a68b191ad4/how-to-set-up-aws-sdk-quick-guide-30hi</link>
      <guid>https://dev.to/sakin_deborah_4a68b191ad4/how-to-set-up-aws-sdk-quick-guide-30hi</guid>
      <description>&lt;p&gt;Using AWS Programmatically is a good to have skill. In this first tutorial, we begin by setting up authentication on our terminal.&lt;br&gt;
We will work with YAML files for automation for future use cases but wonʼt be covered here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terminal Set-up CLI&lt;/strong&gt;&lt;br&gt;
Open terminal, I will be using visual studio terminal on Mac.&lt;br&gt;
Create folder for your project. &lt;br&gt;
&lt;code&gt;mkdir aws_project&lt;br&gt;
cd aws_project&lt;br&gt;
create gitignore file -&amp;gt; .gitignore&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Open terminal and run the following command for mac. &lt;br&gt;
&lt;code&gt;curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"&lt;br&gt;
sudo installer -pkg AWSCLIV2.pkg -target /&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To get the instructions for other OS check out. &lt;a href="https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create IAM user&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Navigate to your aws console and search for IAM. We will be creating an admin user to authenticate to aws from terminal.&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%2Fyk6bxyfizbc7jlhuaual.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%2Fyk6bxyfizbc7jlhuaual.png" alt="IAM dashboard from console" width="800" height="417"&gt;&lt;/a&gt;&lt;br&gt;
Click on users in the left panel and create user&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%2Fo5wxzhoof5idpfkt2z29.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%2Fo5wxzhoof5idpfkt2z29.png" alt="Creating users form" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use a descriptive name for the username and click next.&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%2F4k9bu90i8bewur65ndu5.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%2F4k9bu90i8bewur65ndu5.png" alt="Creating group for user form" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is the best option to add user to a group instead of attaching policy directly. Create a group with a descriptive name as well. &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%2Fz8dk1degp3njq0kpzhv9.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%2Fz8dk1degp3njq0kpzhv9.png" alt="Attaching policy page" width="800" height="417"&gt;&lt;/a&gt;&lt;br&gt;
Attach the AdministratorAccess policy to the group since we will use this user to create multiple resources. For future users, adopt the principle of least priviledge and provide fine-grained access to actions and resources&lt;/p&gt;

&lt;p&gt;Then create the user&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%2F4hxne1hgh7o9t0i0yglm.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%2F4hxne1hgh7o9t0i0yglm.png" alt="User successfully created" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on created user and navigate to Security credentials. We will create an access key to make programmatic calls from terminal. Click on next.&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%2Fpmy96fxxxuv3pvwpn51k.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%2Fpmy96fxxxuv3pvwpn51k.png" alt="Adding CLI use case to access key" width="800" height="417"&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%2Fnc092o62inwfkupih3z8.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%2Fnc092o62inwfkupih3z8.png" alt="Access key successfully created" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we have created a user with required policy attached and have the secret values needed to identify from terminal. This credentials are long lived but can be rotated manually incase needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configure Credentials in Terminal&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Next we set the environment variables, replacing the examples shown with values retrieved from console.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE&lt;br&gt;
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY&lt;br&gt;
export AWS_DEFAULT_REGION=us-west-2&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To confirm that you are successfully authenticated run the command&lt;br&gt;
&lt;code&gt;aws sts get-caller-identity&lt;/code&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%2F7zomri9menaavsn7dzk7.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%2F7zomri9menaavsn7dzk7.png" alt="Successfully set up credentials in terminal" width="800" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To confirm if successful, list buckets present in account&lt;br&gt;
&lt;code&gt;aws s3 ls&lt;/code&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%2Frnpysxfokgl45obtuvhr.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%2Frnpysxfokgl45obtuvhr.png" alt="Buckets present in S3 listed" width="800" height="156"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloudcomputing</category>
      <category>automation</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
