Day-5 | Most Common Terraform Task Used in Real-Time |

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии • 198

  • @abhinaisai4778
    @abhinaisai4778 Год назад +18

    running a web server is long running process. terraform doesnt know whether it is successful or not. It terminates the command while closing the ssh session. We should run the process background and give some prompt to the terraform. I think we can do it using the nohup cmd

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Год назад +3

      😎😎

    • @Geekgurlcode
      @Geekgurlcode Год назад +3

      I am a beginner..can you elaborate more?

    • @Deva2596
      @Deva2596 11 месяцев назад +16

      @@Geekgurlcode When you run a Terraform script to provision infrastructure, certain resources may involve long-running processes, such as deploying and configuring a web server. The issue you're encountering is that Terraform may not wait for these long-running processes to complete before closing the SSH session, leading to uncertainties about whether the process was successful or not.
      One approach to address this is to run the long-running process in the background and disassociate it from the current session. The nohup command is a useful tool for doing this in Unix-like systems. The nohup command stands for "no hang up" and is used to run a command immune to hangups, with output to a non-tty (non-terminal) that persists even after the user logs out.

    • @suhasdhoke1735
      @suhasdhoke1735 10 месяцев назад +2

      as we run any command with "&" at the end , it run the command in backgroud , nohup is just for getting output of the commands in nohup.out files at same location.

    • @ajayhegde2761
      @ajayhegde2761 7 месяцев назад +1

      ​@@suhasdhoke1735 I am also thinking the same. It should run in background right as we are using sudo command and & at last it should work. I searched and got this. I am not sure
      Shell Differences: The shell environment might behave differently between manual login and remote execution. Try explicitly setting the shell to /bin/bash or /bin/sh in your remote-exec command to see if it resolves any differences.

  • @Geekgurlcode
    @Geekgurlcode Год назад +22

    Abhishek, you saved my life...attending so many worst trainnings in devops, being unemployed with responsibilities for 6 months, I finally found my confidence back...Thanks, Thanks for such a great work. Finally decided to attend interviews

  • @GopalKrishna-ze5us
    @GopalKrishna-ze5us 9 дней назад +2

    EXCELLENT EXPLANATION AND VERY LEARNING !! WITH LOVE FROM NEWYORK USA !!

  • @tharunjulme3002
    @tharunjulme3002 Год назад +6

    Abhi Anna You are some one who always makes complex topics very easy for the beginners..!

  • @debashissinha8489
    @debashissinha8489 7 месяцев назад +2

    I am trying to understand the logic and the pain, he takes to explain. It made me feel that to my knowledge, none-other -other than he can guide people so sincerely. I will share the link with my friend. Hats off Abhishek!!!!

  • @doyinekong
    @doyinekong 8 месяцев назад +2

    How come I am just meeting you!!!! Wow! Thank you.. You give confidence to the listener by your teaching. Thank you Abhishek👏

  • @SudhanshuMitkar-vy9dk
    @SudhanshuMitkar-vy9dk 3 месяца назад +1

    G.O.A.T in Devops , Best RUclips Trainer award should be given to Abhishek Sir.

  • @chandangowda6935
    @chandangowda6935 Год назад +4

    I have previous knowledge on provisoner but this much easily I never understood, This series helping me for revising Terraform concepts. Thank you Abhi Bro

  • @nareshv7797
    @nareshv7797 Год назад +2

    Superb explanation..you made a complex concept into very simplified manner
    THANKS FOR PUTTING YOUR EFFORTS

  • @nagarjunakondala8664
    @nagarjunakondala8664 Год назад +4

    Thank you for creating a Terraform Zero to Hero series it helped me a lot to learn & enhance my skills, I request you to create more real-time projects examples like this which will boost the confidence in gaining knowledge beginners & experienced people.
    Your content is worth learning & helps to build their career. Keep going..!!!

  • @lingrajbiradar4416
    @lingrajbiradar4416 Год назад +3

    I initially found Terraform to be a challenging tool to work with. However, after following your Terraform series, I've come to realize that it's actually quite straightforward and manageable. Thanks Abhishek 😊

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Год назад +1

      Yes it is very simple

    • @PrincePazol
      @PrincePazol Год назад

      I'm loving your series. I know you will bless us with a similar series for Ansible@@AbhishekVeeramalla 💌

  • @MFB7799
    @MFB7799 Год назад +3

    Just removed the & in that command & application running in foreground able to access it from browser. It worked for me

  • @SivaCloud-uo3ev
    @SivaCloud-uo3ev 8 месяцев назад +1

    You are awesome Abhishek , I followed different courses on terraform . Felt terraform is complex , By watching this Zero to Hero . I can feel its very interesting and easy to learn

  • @VivekGupta-dg8ki
    @VivekGupta-dg8ki 2 месяца назад

    We can use nohup &, Then it'll work properly.

  • @harshnegi200
    @harshnegi200 2 месяца назад

    Completed...!
    Thanks Abhishek for this great session. 38:40 just remove "&" at line 102 , it will work perfectly.

  • @aniruddhatope2388
    @aniruddhatope2388 10 месяцев назад +2

    Absolutely wonderful... Thanks a lot for this series.

  • @banups-p
    @banups-p Год назад +1

    Your are a simha, legend and akanda blockbuster in devops.

  • @soumyadipchatterjee2267
    @soumyadipchatterjee2267 10 месяцев назад +1

    Kudos Abhishek for creating this simple content for Provisioners .😊😎

  • @joelfernandez5141
    @joelfernandez5141 Год назад +2

    Thank you sir, you explained it in much easier and simple way thank you again

  • @nethuestechnologies-y1l
    @nethuestechnologies-y1l 10 дней назад

    Thanks for giving deep dive knowledge in this topic and you are a great man.

  • @josephefosaoviawe9210
    @josephefosaoviawe9210 4 месяца назад

    Thank you Abhishek!!!...so glad to have found you.🙏🙏🙏🙏

  • @AmrutaWagh-kb3yv
    @AmrutaWagh-kb3yv Год назад +2

    just waiting for the next session... and you are here today 😊thanks 😃🙏🏻

  • @maheshwaikar3311
    @maheshwaikar3311 Год назад

    Abhishek, you are the Gem in all DevOps trainers. I am a senior software proffessional and following devops practice now. Your explaination is in very simple ways which I can understand without looking into screen (i can understand from audio only)
    I had a request about future series should cover complete product/software to be build under complete devops practice ie. Microservices to helm deployments, cicd, monitoring...
    This could be a final landing of any devops engineer

  • @amruthaammu7934
    @amruthaammu7934 Год назад +1

    very well explaination i got the things so easily.. u really makes hard concepts into soft...this video helps me alot. even i executed it correctly tq abhishek

  • @yagyeshjha6334
    @yagyeshjha6334 Год назад

    Hi Abhishek, Thanks for giving this wonderful Terraform series.

  • @handsomevillian
    @handsomevillian 5 месяцев назад

    sir your talked about confidence at the end of this video so it is above the expections.

  • @happyshoppi1036
    @happyshoppi1036 Год назад +1

    Thanks for this wonderfull video I have completed this and its working as per the code

  • @Hozaifa_Uzair
    @Hozaifa_Uzair Год назад +2

    Good to see your consistency 👍

  • @mayuri1105
    @mayuri1105 Год назад +6

    Hi Abhishek , Please can you make at least one consolidated video on networking concepts for Devops engineer , may not be detailed but at least which covers most of the required concepts of enterprise networking (Cloud and on premises ).or may be a video which lists out imp concepts of networking.

  • @monalisabarik5731
    @monalisabarik5731 7 месяцев назад +1

    Thanks Abhishek. I have followed your videos and with my experience I got four offers . thanks a lot..please post more videos on kubernetes and terraform

  • @tanayabanerjee2380
    @tanayabanerjee2380 Год назад +5

    Thanks for the provisioner concepts.....will you cover data sources also ??? please try to include this topic in your upcoming videos...

  • @sowmithrawulwar2823
    @sowmithrawulwar2823 Месяц назад

    I wish you could've used modules and backend concept in this video and explain it, Integration of concepts are missing. It would've given more clarity because when we use different concepts or previous topics , things will be real time and gives good knowledge.

  • @generalgyan8705
    @generalgyan8705 Год назад +1

    ❤nice explained as usual Abhishek .

  • @SurendraVaka
    @SurendraVaka 4 месяца назад

    Great Script example and Great explanation ! :)

  • @GirishRameshbabu
    @GirishRameshbabu 5 месяцев назад

    You are doing a great job bro!! Keep it up
    Thanks a lot for this series.

  • @ashokd4673
    @ashokd4673 11 месяцев назад +1

    After watching thiese video getting some questions in my mind.
    What is difference between tf and ansible?
    Upto packages installations the tf provisioners are Ok but in real time projects using more than that so how it will useful ?
    By using ansible we can manage all hosts/servers to different operations like installations/copy etc..

  • @lingrajbiradar4416
    @lingrajbiradar4416 Год назад

    hi abhishek i am able to successfully implement the task. thank you.

  • @VinothKumar-ik1fc
    @VinothKumar-ik1fc Год назад

    Please include TERRAFORM VAULT also in this course it is very helpful to learners. 😊

  • @nagarjunakondala8664
    @nagarjunakondala8664 Год назад +6

    Udemy ❌ Abhishek Veeramalla ✅

  • @SubhajitMaity-yk3bz
    @SubhajitMaity-yk3bz 8 месяцев назад +1

    Thank you sir. Great video.

  • @kannadalli_mahiti
    @kannadalli_mahiti 6 месяцев назад +1

    superb explanation

  • @bogathiparthasarathireddy4487
    @bogathiparthasarathireddy4487 Год назад

    Hi @AbhishekVeeramalla
    Thanks for giving wonderful Terraform series to learn free in RUclips.
    I have find clear cut solution in google "To run a shell script in the background, use the “&(ampersand)” bash control operator and the built-in “nohup” command line tool. Both these utilities almost perform the same job. The core difference between both of them is that the “nohup” command does not kill the background process at the session termination while the “&” symbol terminates all processes after the system logout" this is the correct solution for your assignment i think.
    If anything missing. Could you please suggest .
    Thanks in advance!!

    • @nishanbaral5124
      @nishanbaral5124 Год назад

      Yes. the last line should be replaced with this "nohup sudo python3 app.py > /dev/null 2>&1 &"
      This will also run the app in the background and discard all output-error log of the app. Doing this it won't kill the process while session termination.

  • @kaverichowdary6637
    @kaverichowdary6637 Год назад +2

    Waiting for your videos annaya 😊 now day's companies are asking splunk if possible pls do video on splunk from scratch to adv.. tq alot annaya

  • @manojgandham-lu7tu
    @manojgandham-lu7tu Год назад +1

    Great explanation ❤

  • @randomvideosnclips
    @randomvideosnclips 8 месяцев назад +2

    "sudo python3 app.py &",
    removed "&" and "," the script was able to initiate the python application. Not sure on the usage of "&"
    after stopping the appkication, terraform returned this error, "remote command exited without exit status or exit signal."

  • @kmrathnam55
    @kmrathnam55 5 месяцев назад +1

    Hi Abhishek, You made my day is very easy becuse even I am under impression that how to write terraform code, after watching your videos, I am confident that any one can learn the terraform. Kudos to Abhishek, helping many upskilling students like me. God bless you my dear.

  • @RahulSharmaSingularity
    @RahulSharmaSingularity 6 месяцев назад

    Crisp and Clear !

  • @kinjaldhaduk8328
    @kinjaldhaduk8328 6 месяцев назад

    for me app was not running as I was using Amazon Linux ami and tried with ubuntu user. After using ec2-user it worked as expected. Thank you for providing great content.

  • @dideepakindorkar3413
    @dideepakindorkar3413 4 месяца назад

    Thanks abhishek bhai

  • @ketanmorey1953
    @ketanmorey1953 Год назад +1

    Abhishek Anna OP❤

  • @chiru8557
    @chiru8557 10 месяцев назад

    THE BEST

  • @dasariganesh5211
    @dasariganesh5211 11 месяцев назад

    super super super explanation

  • @vishnuvardhan-zr1vy
    @vishnuvardhan-zr1vy Год назад +1

    userdata in ec2 instance and provisioner remote-exec both are the same, instead of defining in AWS console, we are defining in terraform inline remote-exec

  • @binaydas921
    @binaydas921 2 месяца назад

    Just ran into this tutorial series. You have done an amazing job, Abhishek !! Quick question on the connection block of code. Your example works because the EC2 is in a public subnet. How would you connect if the EC2 were in a private subnet ?

  • @ravindraravi7435
    @ravindraravi7435 9 месяцев назад +1

    Thank you ^^

  • @abhisektripathy9864
    @abhisektripathy9864 9 месяцев назад

    Nicely Explain

  • @BharathKumarReddy2103
    @BharathKumarReddy2103 Год назад +2

    ❤❤❤

  • @rkbompalli1719
    @rkbompalli1719 Год назад +1

    Hi Abhishek, I am eagerly waiting for conditional operators, functions and TF Cloud.
    Am not sure whether they were part of this course.

  • @Buckethead8
    @Buckethead8 5 месяцев назад +1

    27:42 sudo apt install python3-flask

  • @NallabothulaAruna
    @NallabothulaAruna Год назад +1

    Hii Abhishek…. Your videos are amazing…. I joined one of the paid course but i did n’t get much knowledge now everyday i am following your videos… one small help now i want restart my career with devops as entrylevel do i need do any certifications please let me know i am in uk .. my education M. Tech((CSE)… Thanks in Advance….

  • @debashismca
    @debashismca 6 месяцев назад

    Dear Abhishek, now a days most common question is-how you are deployment in Terraform IAC.Could you share a solid answer for this with an example. Pls Pls Pls

  • @shalinitripathi4043
    @shalinitripathi4043 Год назад +1

    Hi Abhishek, As & need to delete from main in terraform, will work fine.

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Год назад

      😎

    • @Sasmita-c8z
      @Sasmita-c8z 8 месяцев назад

      @@AbhishekVeeramalla, But that does not completes the tf infrastructure creation process, it keeps running with "instance ...: Still creating...", & is required at the end to run the process in background and the infrastructure creation should complete successfully.

  • @manikantabellamkonda1970
    @manikantabellamkonda1970 Месяц назад

    Hello sir, thank you for providing this valuable content. I practiced this lesson, but I'm confused about one thing. In the main.tf file, I wrote "ap-south-1" for the region. instead terraform created resources in us-east-1

  • @alipilatin444
    @alipilatin444 4 месяца назад

    Abhishek, one thing i did not understand is that even though we have the CIDR block of the subnet is 24, the routing table we define for it has a suffix of 0. It seems it would result in much bigger routing table than necessary. Can you explain?

  • @aw703
    @aw703 Год назад +1

    What is the difference between Userdata and provisioner in terraform anna. Can you explain

  • @Vinod-vs2iw
    @Vinod-vs2iw 3 месяца назад

    hi abhishek..i regularly follow your videos and it is very useful to me ...i had a doubt (is terraform execute the resources as a sequence what we mention in main.tf file or specific procedure) bcz aws flowchart starts with REGION then IG, VPC then AVIL ZONE,SUBNET and SECURITY GROUP and EC2 but at 11:41 IG is created after the SUBNET was created.

  • @KarthiKeyan-vk9ui
    @KarthiKeyan-vk9ui Год назад

    Waiting for your EKS cluster creation video!!

  • @KISHOREKUMAR-zm5qz
    @KISHOREKUMAR-zm5qz Год назад

    null resource and functions in terraform pls discuss bro....

  • @sudhakarsabbana8728
    @sudhakarsabbana8728 Год назад

    Hai Bro, Can you make the detail video on jeera ticketing tool..

  • @mathewjoseph1348
    @mathewjoseph1348 7 месяцев назад +1

    ❣❣

  • @ramesh_kumar_verma
    @ramesh_kumar_verma Год назад

    thankyou sir

  • @shwetaagarwal117
    @shwetaagarwal117 7 месяцев назад +1

    Hi Abhishek, I am getting this error while running the terraform apply "Error: file provisioner error

    │ with aws_instance.name,
    │ on main.tf line 86, in resource "aws_instance" "name":
    │ 86: provisioner "file" {

    │ Failed to read ssh private key: no key found"
    I would like to know how i can pass my private key of AWS in codespaces?

    • @sahilchauhan3154
      @sahilchauhan3154 4 месяца назад

      in connection in private key you have to remove pub from id_rsa

  • @divakarpawar6487
    @divakarpawar6487 Месяц назад

    How to generate public key file means directly from workspace or local machine (git bash) . Because i tried to create in workspace itself and it is getting generated as well but accepting the path while apply command of Terraform.
    Plz kindly update me on this

  • @ivaam9596
    @ivaam9596 5 месяцев назад

    Hi Abhishek, thanks for the insightful session.
    I have one doubt, if in a case I want to delete only 2 resources among 8 resources which I created through terraform. Will it be possible to destroy only those 2 with terraform destroy command ?

  • @Akshay-c5n4f
    @Akshay-c5n4f Месяц назад

    After terraform apply completes, the SSH session closes, which terminate background processes

  • @vaishnavienterprises7656
    @vaishnavienterprises7656 Год назад +1

    Hi Abhishek,
    Need to change instead of Day -4 To Day -5 on description Not Thumbnail...

  • @venkateshammandali270
    @venkateshammandali270 4 месяца назад

    For statefile locking why should we use dynamo any specific reason behind this?

  • @pratappadhy2005
    @pratappadhy2005 9 месяцев назад +1

    Hi Abhishek I am able to do it and all the resources are created but not able to access the public IP. I checked the IG and Subnet all looks good. Any tweak required? Thanks

  • @morfawfidelis2849
    @morfawfidelis2849 Год назад

    Sir show how we can provision resources using a CiCD pipeline

  • @venkateshammandali270
    @venkateshammandali270 4 месяца назад

    For terraform statefile creation why should we use only s3 why can,t other db

  • @charankumar3536
    @charankumar3536 8 месяцев назад

    @Abhishek_veeramlla could you please tell me how to put particular concept in the resume

  • @saikrishna-cs7ox
    @saikrishna-cs7ox Год назад

    You are awesome bro and How to add terraform in our jenkins pipeline??

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Год назад +1

      Easiest way is to just install terraform on the jenkins executors and run terraform in your pipeline

  • @naresh.c2677
    @naresh.c2677 4 дня назад

    Terraform interview question please note quys we're attending :-
    Terraform statefile ?
    Terraform tiant ?
    Terraform import ( when resource is delete) ?
    Terraform destory ?
    How to use Terraform file for multiple cloud ?

  • @twinklebalabantaray6641
    @twinklebalabantaray6641 2 месяца назад

    Hi @Abhishek sir,
    I am currently working on AWS infra project,I failed in interview as a cloud engineer.please guide which couse good for me

  • @rajangautam-l3g
    @rajangautam-l3g 4 месяца назад

    can i configure the ubuntu on virtualbox as slave node and ubuntu on ec2 instance as master node. If yes how?

  • @DreamsBig1990
    @DreamsBig1990 7 месяцев назад

    👍👍👍💪👌

  • @vineethkyatham536
    @vineethkyatham536 Год назад

    Thanks Abhishek, will data sources will be covered and if infrastructure is already created then how can we start terraform from there, is it possible to create state file for already created infra to have both desired and actual having same state?

  • @nidhisarupria3644
    @nidhisarupria3644 8 месяцев назад

    Hi Abhishek , I want to know if I have Ec2 module and I want to attach this EC2 instance created by a module , to a VPC created in main.tf file located at root then How would this VPC id would be referenced or pass on tp EC2 module , Can u pls help me here

  • @Shweta.Gaikwad1966
    @Shweta.Gaikwad1966 6 месяцев назад

    Nice

  • @Buckethead8
    @Buckethead8 5 месяцев назад

    1 plan to add when I run terraform plan , and the SSH connection also failed

  • @ijazahmedBagawan
    @ijazahmedBagawan Год назад

    please come up with the video on data source and terraform vault

  • @AvinashBabuDevarasetty
    @AvinashBabuDevarasetty 11 месяцев назад +1

    Hi abhishek how to replace path with our public key files

  • @nidhisarupria3644
    @nidhisarupria3644 8 месяцев назад

    can we pass value to module to make it dynamic

  • @MrAd540
    @MrAd540 Месяц назад

    How to do it on Azure

  • @raghupola4284
    @raghupola4284 8 месяцев назад

    Hello I am not able to make key pair value using ssh what is the key name when we have to name it?

  • @syedtameemahmed3416
    @syedtameemahmed3416 Год назад

    Using wget in remote-exec and its not working. Replaced it with Curl still same problem. The instance is created. All commands before wget get executed, but when it comes to wget or curl, it shows creating and this goes on for infinity. Tried ssh into the same machine and ran the command from the console. It runs perfectly. That implies that this is not a problem of ports. Then what am I missing, or what is the solution if I want to copy a file into my created instance.

    • @Sasmita-c8z
      @Sasmita-c8z 8 месяцев назад

      The same thing happens in the demo in this recording when running python app, when going to the instance running that command it's working perfectly, but from remote_exec, it is not, if we remove the '&' at end it is running fine, but again it shows creating infinitely..., it is dificult to debug what's going wrong. @Abhishek, do you have any input here?

  • @VijayPatil-ce2xe
    @VijayPatil-ce2xe Год назад

    Hi Abhishek, I know this is not place for this question. Do you have any Idea about Developer Advocate role and is this a right career choice

  • @OpenShift22
    @OpenShift22 Год назад

    How do we use depends on to relate all these tiers

  • @Hozaifa_Uzair
    @Hozaifa_Uzair Год назад +1

    I am trying 1:1 on, but couldn't book slot for the same. I have texted earlier concerning same. Kindly provide best possible way.

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  Год назад

      Our subscribers are booking the slots. You can book the latest available slot if not there is a chance you will miss that too

  • @allwayswithyou6814
    @allwayswithyou6814 Год назад

    hi Abhishek instead of public key can we use private key with NAT gateway?