HOW TO CONNECT AWS TO ANSIBLE?
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
Step 3: Connect Instance with SSH
Step 4: Copying key-pair using win-scp
Step 5: Configuring host and config file
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
sudo chmod 600 /home/ansible/mykey1111.pem
sudo chmod 755 ~/.ssh
Step 6: Run Ansible Ping Module
FOR REFERENCE https://github.com/visheshgargavi/ansible.git
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
Cloud|Devops|Rhel| Cpp | Py3 |
4 年#OP brother??°°