<?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: Mathinisha R</title>
    <description>The latest articles on DEV Community by Mathinisha R (@mathinisha).</description>
    <link>https://dev.to/mathinisha</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%2F1227102%2F6b0895db-3f01-4d32-8f55-59d5e9d8bb15.jpg</url>
      <title>DEV Community: Mathinisha R</title>
      <link>https://dev.to/mathinisha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mathinisha"/>
    <language>en</language>
    <item>
      <title>AWS Container Orchestration: EKS vs ECS</title>
      <dc:creator>Mathinisha R</dc:creator>
      <pubDate>Sat, 30 Dec 2023 06:53:00 +0000</pubDate>
      <link>https://dev.to/mathinisha/aws-container-orchestration-eks-vs-ecs-2157</link>
      <guid>https://dev.to/mathinisha/aws-container-orchestration-eks-vs-ecs-2157</guid>
      <description>&lt;h2&gt;
  
  
  AWS Container Orchestration: EKS vs ECS
&lt;/h2&gt;

&lt;p&gt;Amazon Elastic Kubernetes Service (EKS) and Amazon Elastic Container Service (ECS) are both container orchestration services provided by Amazon Web Services (AWS), but they are different in terms of their architecture and use cases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Amazon Elastic Kubernetes Service (EKS)&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
Amazon EKS is a managed Kubernetes service designed to simplify the deployment, scaling, and management of Kubernetes clusters. By leveraging EKS, users can run containerized applications using Kubernetes without the burden of handling the underlying infrastructure intricacies. EKS is particularly well-suited for those already familiar with Kubernetes or looking to capitalize on its robust container orchestration capabilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Amazon Elastic Container Service (ECS)&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
Amazon ECS is a fully managed container orchestration service specifically tailored for Docker containers. It provides a straightforward solution for running containers without the need to manage the underlying infrastructure. ECS boasts tight integration with various AWS services, streamlining the process of building and deploying scalable containerized applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Key Distinctions:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1)Underlying Technology:&lt;/strong&gt;&lt;br&gt;
EKS is Kubernetes-based, providing users with the flexibility and compatibility of the Kubernetes ecosystem.&lt;br&gt;
ECS, on the other hand, is a proprietary AWS service that offers simplicity without the complexity of managing Kubernetes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2)User Base:&lt;/strong&gt;&lt;br&gt;
EKS is favored by users familiar with or inclined towards the feature-rich Kubernetes platform.&lt;br&gt;
ECS, with its seamless integration into the AWS environment, is an excellent choice for those seeking a fully managed service without delving into Kubernetes intricacies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3)Flexibility:&lt;/strong&gt;&lt;br&gt;
EKS offers greater flexibility and compatibility with the extensive Kubernetes tooling and ecosystems.&lt;br&gt;
ECS, due to its tight integration with AWS services, excels in scenarios where simplicity and AWS service integration are top priorities.&lt;/p&gt;

&lt;p&gt;In conclusion, the decision between Amazon EKS and Amazon ECS hinges on factors such as familiarity with Kubernetes, specific use cases, and the desired level of control over containerized applications. Whether opting for the flexibility of EKS or the simplicity of ECS, AWS provides solutions tailored to diverse preferences and requirements in the dynamic landscape of container orchestration.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscommunity</category>
      <category>awscommunitybuilders</category>
    </item>
    <item>
      <title>Mastering AWS CLI Commands for User Management</title>
      <dc:creator>Mathinisha R</dc:creator>
      <pubDate>Tue, 26 Dec 2023 13:43:10 +0000</pubDate>
      <link>https://dev.to/mathinisha/mastering-aws-cli-commands-for-user-management-21bp</link>
      <guid>https://dev.to/mathinisha/mastering-aws-cli-commands-for-user-management-21bp</guid>
      <description>&lt;h2&gt;
  
  
  Mastering AWS CLI Commands for User Management
&lt;/h2&gt;

&lt;p&gt;This blog helps to understand the basic AWS CLI commands for creating users, attaching policies to define permissions, and organizing users into groups.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;1)Configuring the AWS CLI:&lt;/u&gt;&lt;br&gt;
Setting up AWS CLI with required credentials using aws configure command. This step ensures appropriate setup for later user management tasks.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws configure&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;u&gt;2)Creating an IAM User:&lt;/u&gt;&lt;br&gt;
By using the "create-user" command, we can create a new IAM user. Provide a unique user-name to the identify the user.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws iam create-user --user-name &amp;lt;user-name&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;u&gt;3)Attaching Policies to a User:&lt;/u&gt;&lt;br&gt;
By using "attach-user-policy" command, we can provide a user specified permissions.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws iam attach-user-policy --user-name &amp;lt;user-name&amp;gt; --policy-arn arn:aws:iam::aws:policy/&amp;lt;policy-name&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;u&gt;4)Creating an IAM group:&lt;/u&gt;&lt;br&gt;
By using the "create-group" command, we can create groups to enhance organisation.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws iam create-group --group-name&amp;lt;group-name&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;u&gt;5)Attaching Policies to a group:&lt;/u&gt;&lt;br&gt;
By using the "attach-group-policy" command, we can provide necessary permissions to the group.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws iam attach-group-policy --group-name &amp;lt;group-name&amp;gt; -- policy-arn arn:aws:iam::aws:policy/&amp;lt;policy-name&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;u&gt;6)Adding users to group:&lt;/u&gt;&lt;br&gt;
By using the "add-user-to-group" command, we can associate users with a particular group , which can streamline management.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws iam add-user-to-group --user-name &amp;lt;user-name&amp;gt;&lt;br&gt;
--group-name &amp;lt;group-name&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;By gaining proficiency in these AWS CLI commands is essential to provide safe and efficient user administration in the AWS Cloud environment.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscommunity</category>
      <category>awscommunitybuilders</category>
    </item>
    <item>
      <title>Understanding and Optimizing Storage with Amazon S3 Lifecycle Configuration</title>
      <dc:creator>Mathinisha R</dc:creator>
      <pubDate>Fri, 22 Dec 2023 09:17:35 +0000</pubDate>
      <link>https://dev.to/mathinisha/understanding-and-optimizing-storage-with-amazon-s3-lifecycle-configuration-5670</link>
      <guid>https://dev.to/mathinisha/understanding-and-optimizing-storage-with-amazon-s3-lifecycle-configuration-5670</guid>
      <description>&lt;h2&gt;
  
  
  Understanding and Optimizing Storage with Amazon S3 Lifecycle Configuration
&lt;/h2&gt;

&lt;p&gt;In the world of cloud tech, managing storage smartly is a big deal. Amazon S3, part of Amazon Web Services (AWS), comes with a cool feature called lifecycle configuration. This blog is here to help you understand it better, so you can use it to supercharge your storage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. What is Amazon S3 Lifecycle Configuration?&lt;/strong&gt;&lt;br&gt;
Amazon S3 Lifecycle Configuration is a feature that helps you automatically manage your files (objects) stored in Amazon S3 over time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Why Does Lifecycle Configuration Matter?&lt;/strong&gt;&lt;br&gt;
Amazon S3 Lifecycle Configuration acts like a handy helper for your files. It automatically figures out where to store them and when to remove them, taking the hassle off your plate. This not only saves you money by using more affordable storage for older files but also keeps everything organized without any effort on your part.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.Parts of S3 Lifecycle Configuration:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Upload Files:&lt;/strong&gt; Start by putting your files into Amazon S3.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set Rules for Storage Classes:&lt;/strong&gt; Define rules to let S3 automatically move files between different storage classes based on their age and usage. This includes transitioning from Standard to Infrequent Access (IA), IA to Glacier for archiving, and even to the ultra-low-cost Deep Archive for long-term storage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automated Deletion Rules:&lt;/strong&gt; Specify conditions under which files are automatically deleted after a certain period. This is handy for managing data with a limited lifespan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost Efficiency:&lt;/strong&gt; S3 Lifecycle helps you save money by using cost-effective storage classes for your files at different stages of their life. For example, you pay less for storing infrequently accessed files in IA or Glacier.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Simplicity and Automation:&lt;/strong&gt; Instead of manually handling where to store each file or when to delete them, S3 Lifecycle automates these decisions based on the rules you set. This simplifies file management and ensures efficiency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Smart Storage Moves with Lifecycle Magic:&lt;/strong&gt;&lt;br&gt;
Explore the different storage spots like STANDARD, INTELLIGENT_TIERING, and GLACIER in Amazon S3.&lt;br&gt;
See how lifecycle magic helps your stuff move automatically between these spots, saving money and making sure things are super quick when you need them. It's like having a smart organizer for your storage space!.&lt;/p&gt;

&lt;p&gt;To sum up, the combination of Amazon S3 and lifecycle configuration offers advantages in terms of cost-effectiveness, organization, and operational efficiency. The smooth transitions between storage classes, such as STANDARD or GLACIER, contribute to a streamlined process. Adopting these tools enhances storage management, ensuring an optimized and efficient cloud experience.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscommunity</category>
      <category>awscommunitybuilders</category>
    </item>
    <item>
      <title>Monitoring an EC2 Instance with CloudWatch Alarm on AWS</title>
      <dc:creator>Mathinisha R</dc:creator>
      <pubDate>Fri, 15 Dec 2023 14:08:03 +0000</pubDate>
      <link>https://dev.to/mathinisha/monitoring-an-ec2-instance-with-cloudwatch-alarm-on-aws-25be</link>
      <guid>https://dev.to/mathinisha/monitoring-an-ec2-instance-with-cloudwatch-alarm-on-aws-25be</guid>
      <description>&lt;h2&gt;
  
  
  Monitoring an EC2 Instance with CloudWatch Alarm on AWS
&lt;/h2&gt;

&lt;p&gt;&lt;u&gt;Summary&lt;/u&gt;&lt;br&gt;
Amazon Web Services (AWS) offers a powerful tool to monitoring &amp;amp; controlling of cloud resources. In this hands-on we will learn launching of Amazon EC2 Instance and set up an CloudWatch alarm.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Requirements&lt;/u&gt;&lt;br&gt;
You should have an AWS account and required permissions to create an Amazon EC2 instance and CloudWatch alarm.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Step:1 Launching an Amazon EC2 Instance&lt;/u&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Navigate to the EC2 service through the AWS management console.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click the “Launch Instance” button and start creating your EC2 instance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose an AMI, here for this hands-on we will use Amazon Linux AMI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose the Instance type, here will go with basic t2.micro instance(free-tier eligible).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Configure the instance count, network settings and other parameters stick to default.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create security groups to manage incoming and outgoing traffic to our EC2 instance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Review our configurations and click “Launch”.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once you created an EC2 instance, your created instance will show in the instance dashboard as below.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4LmMiExH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8o4kfu4rviy28mb60zr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4LmMiExH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8o4kfu4rviy28mb60zr.png" alt="Image description" width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Step:2 Monitoring EC2 Instance with CloudWatch Alarm&lt;/u&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Choose your created instance and click the monitoring option, it will go to the CloudWatch console.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the CloudWatch console, choose “Alarm” option and click “create” button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose the “EC2” namespace and the metric you want to monitor.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--i41RA16s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fbg4rg2nr3tpfy168w14.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i41RA16s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fbg4rg2nr3tpfy168w14.png" alt="Image description" width="800" height="359"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UCjWwSuT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fp4eidc7ay0th47ocp7p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UCjWwSuT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fp4eidc7ay0th47ocp7p.png" alt="Image description" width="800" height="321"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set the condition, the threshold of CPU utilization of our created EC2 Instance (example:50%).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eerxE3bn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ap5i7mpbdld0eaqohyd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eerxE3bn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ap5i7mpbdld0eaqohyd.png" alt="Image description" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tx0irVi2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bbo8kjw5zciwtwhk3lps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tx0irVi2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bbo8kjw5zciwtwhk3lps.png" alt="Image description" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Configure actions to our created alarm, such as sending notifications through Amazon SNS.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Review the configurations and click “Create Alarm”.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now we have created an CloudWatch alarm for our created EC2 instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--d96G3MO8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i75336aqsik58x2prs19.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d96G3MO8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i75336aqsik58x2prs19.png" alt="Image description" width="800" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscommunity</category>
      <category>awscommunitybuilders</category>
    </item>
    <item>
      <title>Project: Automating AWS with Ansible - Hello, Ansible!</title>
      <dc:creator>Mathinisha R</dc:creator>
      <pubDate>Thu, 07 Dec 2023 10:18:25 +0000</pubDate>
      <link>https://dev.to/mathinisha/project-automating-aws-with-ansible-hello-ansible-589o</link>
      <guid>https://dev.to/mathinisha/project-automating-aws-with-ansible-hello-ansible-589o</guid>
      <description>&lt;h2&gt;
  
  
  Project: Automating AWS with Ansible – Hello, Ansible!
&lt;/h2&gt;

&lt;p&gt;&lt;u&gt;Summary&lt;/u&gt;&lt;br&gt;
AWS with Ansible through the “Hello, Ansible!” project. This hands-on guide will tell you installing Ansible in AWS EC2 instance and execute a “Hello, Ansible!” project. From this we will learn installing Ansible in AWS instance, file generation, and personalized message display.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Objectives&lt;/u&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Launching AWS EC2 Instance &amp;amp; EC2 Instance Connect&lt;/li&gt;
&lt;li&gt;Installing Ansible on AWS EC2 Instance&lt;/li&gt;
&lt;li&gt;Creating Ansible Playbook&lt;/li&gt;
&lt;li&gt;Executing Ansible Playbook&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;u&gt;Steps&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Step:1 Launching AWS EC2 Instances &amp;amp; EC2 Instance Connect &lt;/u&gt;&lt;br&gt;
1.1 EC2 Instance Launch:&lt;br&gt;
Start an AWS EC2 Instance and configure all the settings as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fqv7t81od809juz9kequt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fqv7t81od809juz9kequt.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fq4lkduy4pem76wuf5182.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fq4lkduy4pem76wuf5182.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F8ulrqix84splyqlcioau.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F8ulrqix84splyqlcioau.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fgarmlc6v1ynne39jeodq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fgarmlc6v1ynne39jeodq.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fkwy38jbjp2ladrtvqegw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fkwy38jbjp2ladrtvqegw.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F7dsxr33e786xexubxsr7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F7dsxr33e786xexubxsr7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fwjzy8hpp8rr0mpbjjftg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fwjzy8hpp8rr0mpbjjftg.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;1.2 AWS EC2 Instance Connect:&lt;br&gt;
Connect your EC2 Instance using EC2 Instance Connect&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Step:2 Installing Ansible on AWS EC2 Instance &lt;/u&gt;&lt;br&gt;
2.1 Installing Ansible:&lt;br&gt;
After connecting to your EC2 Instance via EC2 Instance  Connect, follow the below commands.&lt;/p&gt;

&lt;p&gt;To Update system packages command:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo yum update -y&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Command for installing Ansible:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo amazon-linux-extars install ansible2 -y&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Command for verifying Ansible installation:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ansible --version&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Step:3 Creating Ansible Playbook &lt;/u&gt;&lt;br&gt;
3.1 Creating Directory&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;hello_ansible
&lt;span class="nb"&gt;cd &lt;/span&gt;hello_ansible
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.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%2Fqkbfho9i7u5zwdfruw51.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fqkbfho9i7u5zwdfruw51.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create an Ansible Playbook “hello_ansible.yml”&lt;br&gt;
&lt;a href="https://media.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%2Fd49j3onv10tmlp59mzlm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fd49j3onv10tmlp59mzlm.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.2 Running the playbook&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ansible-playbook hello_ansible.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.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%2F745h5t0q2gd248h71u9d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F745h5t0q2gd248h71u9d.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Step:4 Executing Ansible Playbook &lt;/u&gt;&lt;br&gt;
We will see the “Hello, Ansible!” message by the following the command below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt;/tmp/hello_ansible/Hello.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.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%2Frbihlcipep0k3bmdjd1k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Frbihlcipep0k3bmdjd1k.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awscommunity</category>
      <category>awscommunitybuilders</category>
    </item>
  </channel>
</rss>
