Integrating Ansible, AWS rds, & Docker.

  • Here you can see my ansible-playbook through which I am going to launch ec2 instance on the top of AWS Public Cloud. So let’s run the playbook.
  • So here you can see my playbook is successfully deployed.
  • Here you can see ec2 instance is successfully provisioned.
  • Here you can see another ansible-playbook through which I am going to launch RDS on the top of AWS Public Cloud. So let’s run the playbook.
  • So here you can see my playbook is successfully deployed.
  • here you can see rds is successfully launched.

Installing some packages viz PHP, MySQL, etc.. on the top of EC2 Instance.

  • Now from rds, I am copying endpoint Url.
  • So here you can see I am inside my rds database.
  • and here I have created one database named addy.
  • Here you can see I have successfully configured Docker.
  • Here I am pulling a WordPress image.
  • Here I am launching WordPress container by exposing it to port 8080.
  • So here you can see WordPress is successfully deployed.
  • Just click on let’s go.
  • here provide the necessary details of your database name, rds username, and password with endpoint URL and click submit.
  • Here fill up the details and click on login.
  • and at last, our WordPress site is successfully deployed.

Thank you :)

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Build a Social Media Bot— Building A Whatsapp Bot

Squadcast’s Year in Review, 2020 | Squadcast

How to fix a broken branch after a git merge or git rebase

Loops and statements in Python: A deep understanding (with examples)

loops in Python: a snake…

Search in a Binary Search Tree

Merge a Laravel Request on the fly

Software Design Patterns for Human Relationships

The Guide to Outsourcing Software development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aaditya Tiwari

Aaditya Tiwari

More from Medium

Easy Ansible setup using VirtualBox

AWS Beanstalk

How to SSH into AWS Elastic Beanstalk

Task:- Store your data in AWS EFS and attach EFS with multiple EC2 instances