How to host a web application in AWS EC2 instance using Terraform and Ansible
HTML-код
- Опубликовано: 23 авг 2024
- This video demonstrates on how to host a PHP web application connected to a MySQL database. It uses terraform to provision the infrastructure and ansible to install the application in the instance.
github: github.com/lis...
Like your creativity in naming the channel.. 🙂
Thanks :)
Super countinue your video's👌👌👌💪🙂🌹
Thank you so much 👍
well explained and beautiful voice, thanks
You are welcome! :)
impressive and well done
Thank you so much 😀
Hi thanks for the video tutorial. have you stopped adding tutorial?
& also can you explain both application file structure like spaces, curly brackets where they are used in a easy way. I am not from a programming background or Devops. I also dont know scripting so things are confusing. its a request
Thank you :)
Apologies for the delay in uploading videos. I wasn't feeling very well lately.
Sure, will upload programming related videos soon.
@@listentolearn2363 Hi thanks for replying. Hope you are feeling good now. Actually i was not asking for programing videos I was asking about if you can explain the way to write Terraform & Ansible I am not from a programming background so don't understand the spacing's & curly braces how & where it is used . if you can explain in a very simple way I would be grateful
Well explained 👏
Thank you 🙂
Hello, Thank you for this video. can connect terraform with API backend AMI?
Hi Othman Issa, thanks for your support!
Assuming that you are looking to retrieve a list of AMIs in terraform, you can do that by using the aws_ami datasource. Reference: registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami
Please let me know if your question is different.
Hi, what is use of internet gateway
Hi Sasidharan,
Internet gateway enables your VPC to communicate with internet
That VM public IP is aws EC2 public IP only right ?
yes, that't right. The Elastic IP attached to the EC2 instance.
@@listentolearn2363 what is the SSH key you have used I am unable to find how to create SSH key
SSH key pair is created as part of the terraform - resource "aws_key_pair" "app_ssh" and is attached to the EC2 instance.
You have to supply the public key as an input variable (instance_ssh_public_key ) while executing terraform and use the private key counterpart to run the Ansible scripts.
If you do not have a public/private key, you can generate them using ssh-keygen. Hope that makes sense. Please let me know if you would like further explanation.
I'm understood till terraform creation I have a project to do but I'm getting connection with ansible and install application can u help