Very well presented. I think we can put local_exec provisioner in null_resource then use depends_on instead of using 'sleep'. This way terraform will wait until EC2 is ready before running local_exec
remote-exec isnt working, it throwing error, when I am trying to echo on the new instance. The error is :- with aws_instance.ec2, │ on tf.tf line 154, in resource "aws_instance" "ec2": │ 154: provisioner "remote-exec" { │ │ Failed to read ssh private key: no key found
Upto some extend yes. But the point they differ is that userdata can go along with provisioning. Provisioners may require some additional configuration while connecting from some remote machine.
Requesting viewers to view and share with your friends. Your feedbacks are always welcome, so share honest ones, which can help us in delivering better content if there are any glitches in current.
good content, I was always confused about how all these tools work togather, finally got the answer. thankyou @hemant. also could you create a tutorial on complete devops pipeline.. end to end
Hello Venkatesh, Well no, it's not an alternative. Both are independent solutions having its own pros and cons. Where Ansible is majorly targetted towards configuration management, terraform is more of infrastructure provisioning tool (so deployment on clouds is much easier with terraform as compared to any script or python wrapper or any other method). So it depends on one, how they pick as per their requirement. Hope is answered the query
Hi , I tried the code in method1. getting the below error. Error: Cycle: aws_instance.r100c96 (expand), aws_instance.r100c96 Could you please help how to fix this
Hello Mraja, Well terraform works on windows as well. Remaining provisioner part, one can simply use powershell Or any other configuration management tool which windows support
@@mrajakumar474 I will try to find some examples, my core is from Linux OS, so i don't stress much on Windows side. Still stay assured will find or create one for you.
This is one of the finest video. Underrated, and still relevant in 2023
Thanks for you sweet comments
This video is a masterpiece for all those who are looking to use Ansible and Terraform together. Great work 🙂
Thanks Srini, we are happy that it proved helpful for you
Actually great video, something not readily available or explained properly on other weblinks.
Very well presented. I think we can put local_exec provisioner in null_resource then use depends_on instead of using 'sleep'. This way terraform will wait until EC2 is ready before running local_exec
Definitely it all depends on how you put your logic. I am happy you saw the video and contribute to code.
It is very helpful.I was looking for the same logic to fit my pipeline script.Thank You!!!
Thank you Vikram, and we are happy to know that it is helpful for you
remote-exec isnt working, it throwing error, when I am trying to echo on the new instance. The error is :- with aws_instance.ec2,
│ on tf.tf line 154, in resource "aws_instance" "ec2":
│ 154: provisioner "remote-exec" {
│
│ Failed to read ssh private key: no key found
One word, absolutely awesome content 👍
Thanks a ton
Highly recommended
Thank you
Thank you for the explanation. Hmmm does provisioner works like ec2 userdata?
Upto some extend yes.
But the point they differ is that userdata can go along with provisioning. Provisioners may require some additional configuration while connecting from some remote machine.
Requesting viewers to view and share with your friends. Your feedbacks are always welcome, so share honest ones, which can help us in delivering better content if there are any glitches in current.
good content, I was always confused about how all these tools work togather, finally got the answer.
thankyou @hemant.
also could you create a tutorial on complete devops pipeline.. end to end
Happy to see it helped and solved the purpose
Hi Hemant.... 👍, we can deploy aws infra by running ansible (playbook)pipelines also. So Is terraform is an alternatetive of ansible?
Hello Venkatesh,
Well no, it's not an alternative. Both are independent solutions having its own pros and cons. Where Ansible is majorly targetted towards configuration management, terraform is more of infrastructure provisioning tool (so deployment on clouds is much easier with terraform as compared to any script or python wrapper or any other method). So it depends on one, how they pick as per their requirement.
Hope is answered the query
how to connect third party terminal to aws?
actually great videos, i want to know that is the command to run playbook instead of ad-hoc command
Hello Sony,
Any of your structure will work here adhoc or playbook
Hi ,
I tried the code in method1. getting the below error.
Error: Cycle: aws_instance.r100c96 (expand), aws_instance.r100c96
Could you please help how to fix this
Can you please share the complete code what you are testing
Very well explain.. the unique content..
Thank you very much Satej for your Sweet comments
How to do the same for windows . And you video very helpful. Thanks
Hello Mraja,
Well terraform works on windows as well. Remaining provisioner part, one can simply use powershell Or any other configuration management tool which windows support
@@technotesofhemant8338 as check i am not able to find any examples if you have any please help me on this.
@@mrajakumar474 I will try to find some examples, my core is from Linux OS, so i don't stress much on Windows side. Still stay assured will find or create one for you.
@@technotesofhemant8338 thanks for your concern and support.
Thankyou
Welcome