HOW TO CONNECT AWS TO ANSIBLE?

HOW TO CONNECT AWS TO ANSIBLE?


No alt text provided for this image


No alt text provided for this image

Step 1: Creating an AWS Account

In this article, we will see how to launch an Amazon Web Services (AWS) Elastic Compute Cloud (EC-2) instance and manage it using Ansible. The first here is to create an AWS account. Do not worry, it has 12 months of free usage for some instances. Luckily, the process that we are going to follow today will ensure that nothing gets charged to your Debit Card.

Step 2: Launching an AWS Instance

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Step 3: Connect Instance with SSH

No alt text provided for this image

Step 4: Copying key-pair using win-scp

No alt text provided for this image

Step 5: Configuring host and config file

No alt text provided for this image

The information you will need is:

  • Name for the instance
  • IP Address of your AWS instance(public-ip)
  • The user present on your AWS instance (ec2-user)
  • Location to your private key (.pem) file


Step 5: Configuring the setting and making public-key to private

No alt text provided for this image
No alt text provided for this image

sudo chmod 600 /home/ansible/mykey1111.pem

sudo chmod 755 ~/.ssh

Step 6: Run Ansible Ping Module

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

FOR REFERENCE https://github.com/visheshgargavi/ansible.git

[email protected]

Dinesh Asija

Senior DevOps Engineer at Sedin | GitLab Certified Associate | Openshift Certified | Kubernetes | AWS | Terraform | Jenkins | Expert in Automating & Optimizing Software Delivery for Scalable Business Growth

4 年

Great Vishesh Garg, But try to explain some more in blog,,,,You are a dedicated person

回复
Kush Bhardwaj

Cloud|Devops|Rhel| Cpp | Py3 |

4 年

#OP brother??°°

要查看或添加评论,请登录

Vishesh Garg的更多文章

  • Task 05 ??????

    Task 05 ??????

    Task Description ?? ?? Create a blog/article/video about cyber crime cases where they talk about confusion matrix or…

    2 条评论
  • ARTH - Task 30 ??????

    ARTH - Task 30 ??????

    Task Description?? ??? Research for industry use cases of Openshift and create a blog, Article or Video elaborating how…

  • Hello Connections!!!

    Hello Connections!!!

    It was a great opportunity for me to attend a webinar "Redhat expert session on Kubernetes and OpenShift”, which was…

  • Expert session:

    Expert session:

    The overall summary of the yesterday's session is:- Yesterday I attended a mesmerising webinar on "industrial use case…

  • ARTH - Task 16 ??????

    ARTH - Task 16 ??????

    Task Description?? ?? Research how Kubernetes is used in Industries and what all use cases are solved by Kubernetes?…

  • ARTH - Team Task 1 ??????

    ARTH - Team Task 1 ??????

    Task Description?? ?? Create a Menu Using Python integrating all the concepts that have been taught by Vimal sir till…

  • AWS : MPL(Mobile Premier League) Case Study

    AWS : MPL(Mobile Premier League) Case Study

    What is cloud computing? Cloud computing is the on-demand availability of computer system resources, especially data…

    20 条评论
  • #TASK1 Ansible(RH 294)

    #TASK1 Ansible(RH 294)

    Write an Ansible PlayBook that does the following operations in the managed nodes: ?? Configure Docker ?? Start and…

  • connecting linux server with flutter

    connecting linux server with flutter

    * How to setup webserver for serving Web Pages? step1: install the webserver using (yum install httpd -y) step2: copy…

社区洞察

其他会员也浏览了