This article covers the Integration of Ansible with AWS. Here I have used AWS-EC2 instance as my base OS to launch my web page and this setup is created and managed by Ansible modules, playbooks and Roles.

Task Description:

♦️ Provision EC2 instance through Ansible.

♦️ Retrieve the IP Address of instance using dynamic inventory concept.

♦️ Configure the web-server through Ansible and deploy the web page to the root directory.

To begin with the practical login to your RedHat VM and install**_ boto_** library in it using the command

pip3 install boto

Now to provision the EC2 instance we need to make an IAM user (here I have given it administrative powers) and its access keys.

Let’s create an IAM user with the name_ ansible_user_ : fill in the details as shown and click on Next: Permissions button.

#web #devops #ansible #apache #aws

Deploy Web Server on AWS through ANSIBLE
2.25 GEEK