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

Поділитися
Вставка
  • Опубліковано 18 вер 2023
  • Support my work
    www.buymeacoffee.com/abhishekprd Hi Everyone, My Name is Abhishek and my channel is focused on delivering Free content on DevOps and Cloud. Follow my channel for practical learning of DevOps and Cloud. Don't miss the FREE DEVOPS COURSE and FREE AWS COURSE from Playlists section.
    Doubts Clearing Group
    www.youtube.com/@AbhishekVeer...
    GitHub Repo for the Series
    github.com/iam-veeramalla/ter...
    Instagram: / abhishekveeramalla_off...
    Book 1:1 with me on TopMate for career guidance
    topmate.io/abhishek_veeramalla
    Public Telegram Channel For Notes and Updates
    t.me/abhishekveeramalla
    About me:
    ========
    LinkedIn: / abhishek-veeramalla-77...
    GitHub: github.com/iam-veeramalla
    Medium: / abhishekveeramalla-av
    What is Terraform ?
    Learn Terraform from basics
    Terraform real world examples
    Terraform course
    Best terraform course
    Terraform modules
    Terraform workspaces
    #devops #futureofdevops #kubernetes #sre #aws #azure
    DEVOPS FAQ
    DEVOPS
    WHAT IS DEVOPS ?
    WHY DEVOPS ?
    HOW TO LEARN DEVOPS ?
    LEARN DEVOPS IN 60 DAYS ?
    NON IT TO IT BACKGROUND ?
    IS DEVOPS EASY TO LEARN ?
    BEST DEVOPS COURSE
    FREE DEVOPS COURSE
    #AbhishekVeeramalla
    BEST DEVOPS VIDEOS
    DEVOPS INTERVIEW QUESTIONS
    EASY DEVOPS VIDEOS
    BEST WAY TO LEARN DEVOPS
    PYTHON FOR DEVOPS
    PYTHON PROJECTS FOR DEVOPS
    LEARN PYTHON
    PYTHON PROJECTS FOR AWS
    AWS PYTHON PROJECTS
    AWS LAMBDA FUNCTIONS
    WHAT IS GITOPS ?
    WHY GITOPS ?
    LEARN GITOPS ?
    GITOPS FREE COURSE
    What is AWS ?
    LEARN AWS FOR FREE
    AWS COURSE
    AWS COURSE FOR DEVOPS
    AWS CLI Deep Dive
  • Розваги

КОМЕНТАРІ • 164

  • @abhinaisai4778
    @abhinaisai4778 8 місяців тому +15

    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  8 місяців тому +2

      😎😎

    • @Geekgurlcode
      @Geekgurlcode 7 місяців тому +3

      I am a beginner..can you elaborate more?

    • @Deva2596
      @Deva2596 5 місяців тому +8

      @@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 4 місяці тому +1

      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 2 місяці тому +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 7 місяців тому +16

    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

  • @nareshv7797
    @nareshv7797 8 місяців тому

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

  • @aniruddhatope2388
    @aniruddhatope2388 5 місяців тому +1

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

  • @kmrathnam55
    @kmrathnam55 2 дні тому

    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.

  • @tharunjulme3002
    @tharunjulme3002 8 місяців тому +4

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

  • @nagarjunakondala8664
    @nagarjunakondala8664 7 місяців тому +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..!!!

  • @soumyadipchatterjee2267
    @soumyadipchatterjee2267 4 місяці тому

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

  • @RahulSharmaSingularity
    @RahulSharmaSingularity Місяць тому

    Crisp and Clear !

  • @kannadalli_mahiti
    @kannadalli_mahiti 11 днів тому +1

    superb explanation

  • @joelfernandez5141
    @joelfernandez5141 8 місяців тому +1

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

  • @Hozaifa_Uzair
    @Hozaifa_Uzair 8 місяців тому +2

    Good to see your consistency 👍

  • @doyinekong
    @doyinekong 3 місяці тому +1

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

  • @lingrajbiradar4416
    @lingrajbiradar4416 8 місяців тому

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

  • @AmrutaWagh-kb3yv
    @AmrutaWagh-kb3yv 8 місяців тому +2

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

  • @debashissinha8489
    @debashissinha8489 Місяць тому

    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!!!!

  • @SubhajitMaity-yk3bz
    @SubhajitMaity-yk3bz 3 місяці тому +1

    Thank you sir. Great video.

  • @manojgandham-lu7tu
    @manojgandham-lu7tu 8 місяців тому +1

    Great explanation ❤

  • @dasariganesh5211
    @dasariganesh5211 5 місяців тому

    super super super explanation

  • @chandangowda6935
    @chandangowda6935 8 місяців тому +2

    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

  • @generalgyan8705
    @generalgyan8705 8 місяців тому +1

    ❤nice explained as usual Abhishek .

  • @bhanuprakash4714
    @bhanuprakash4714 8 місяців тому +1

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

  • @amruthaammu7934
    @amruthaammu7934 8 місяців тому +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

  • @lingrajbiradar4416
    @lingrajbiradar4416 8 місяців тому +4

    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  8 місяців тому +1

      Yes it is very simple

    • @PrincePazol
      @PrincePazol 8 місяців тому

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

  • @SivaCloud-uo3ev
    @SivaCloud-uo3ev 3 місяці тому +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

  • @chiru8557
    @chiru8557 4 місяці тому

    THE BEST

  • @VinothKumar-ik1fc
    @VinothKumar-ik1fc 8 місяців тому

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

  • @happyshoppi1036
    @happyshoppi1036 7 місяців тому +1

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

  • @yagyeshjha6334
    @yagyeshjha6334 7 місяців тому

    Hi Abhishek, Thanks for giving this wonderful Terraform series.

  • @abhisektripathy9864
    @abhisektripathy9864 4 місяці тому

    Nicely Explain

  • @MPC5329
    @MPC5329 7 місяців тому +2

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

  • @Shweta.Gaikwad1966
    @Shweta.Gaikwad1966 21 день тому

    Nice

  • @maheshwaikar3311
    @maheshwaikar3311 8 місяців тому

    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

  • @ravindraravi7435
    @ravindraravi7435 4 місяці тому +1

    Thank you ^^

  • @tanayabanerjee2380
    @tanayabanerjee2380 8 місяців тому +4

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

  • @mayuri1105
    @mayuri1105 8 місяців тому +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.

  • @mohannageswar3442
    @mohannageswar3442 8 місяців тому

    Superb bro the way you are explaining ... Thanks @abhishek.Veeramalla

  • @ketanmorey1953
    @ketanmorey1953 8 місяців тому +1

    Abhishek Anna OP❤

  • @ramesh_kumar_verma
    @ramesh_kumar_verma 8 місяців тому

    thankyou sir

  • @ashokd4673
    @ashokd4673 5 місяців тому +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..

  • @randomvideosnclips
    @randomvideosnclips 2 місяці тому +1

    "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."

  • @vineethkyatham536
    @vineethkyatham536 8 місяців тому

    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?

  • @BharathKumarReddy2103
    @BharathKumarReddy2103 8 місяців тому +2

    ❤❤❤

  • @sudheersen8227
    @sudheersen8227 6 місяців тому +1

    ❤❤

  • @mathewjoseph1348
    @mathewjoseph1348 Місяць тому +1

    ❣❣

  • @aw703
    @aw703 8 місяців тому +1

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

  • @KarthiKeyan-vk9ui
    @KarthiKeyan-vk9ui 8 місяців тому

    Waiting for your EKS cluster creation video!!

  • @bogathiparthasarathireddy4487
    @bogathiparthasarathireddy4487 8 місяців тому

    Hi @AbhishekVeeramalla
    Thanks for giving wonderful Terraform series to learn free in UA-cam.
    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 6 місяців тому

      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.

  • @KISHOREKUMAR-zm5qz
    @KISHOREKUMAR-zm5qz 8 місяців тому

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

  • @DreamsBig1990
    @DreamsBig1990 Місяць тому

    👍👍👍💪👌

  • @allwayswithyou6814
    @allwayswithyou6814 8 місяців тому

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

  • @monalisabarik5731
    @monalisabarik5731 Місяць тому +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

  • @sudhakarsabbana8728
    @sudhakarsabbana8728 8 місяців тому

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

  • @kinjaldhaduk8328
    @kinjaldhaduk8328 22 дні тому

    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.

  • @pratappadhy2005
    @pratappadhy2005 4 місяці тому +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

  • @kaverichowdary6637
    @kaverichowdary6637 8 місяців тому +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

  • @rkbompalli1719
    @rkbompalli1719 8 місяців тому +1

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

  • @nagarjunakondala8664
    @nagarjunakondala8664 7 місяців тому +4

    Udemy ❌ Abhishek Veeramalla ✅

  • @vishnuvardhan-zr1vy
    @vishnuvardhan-zr1vy 8 місяців тому +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

  • @morfawfidelis2849
    @morfawfidelis2849 8 місяців тому

    Sir show how we can provision resources using a CiCD pipeline

  • @charankumar3536
    @charankumar3536 2 місяці тому

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

  • @debashismca
    @debashismca 27 днів тому

    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

  • @raghupola4284
    @raghupola4284 2 місяці тому

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

  • @VijayPatil-ce2xe
    @VijayPatil-ce2xe 8 місяців тому

    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

  • @devsmith001
    @devsmith001 6 місяців тому

    I am facing an error:
    When terraform runs sudo apt-get install -y python3-pip, ubuntu gives a purple prompt to ask which services need to be restarted and then terraform times out.
    Can you please help me abhishek?

  • @shwetaagarwal117
    @shwetaagarwal117 Місяць тому

    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?

  • @nidhisarupria3644
    @nidhisarupria3644 2 місяці тому

    can we pass value to module to make it dynamic

  • @saikrishna-cs7ox
    @saikrishna-cs7ox 8 місяців тому

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

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  8 місяців тому +1

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

  • @NallabothulaAruna
    @NallabothulaAruna 8 місяців тому +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….

  • @bismarckandu6069
    @bismarckandu6069 6 місяців тому

    How do we use depends on to relate all these tiers

  • @nidhisarupria3644
    @nidhisarupria3644 2 місяці тому

    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

  • @shalinitripathi4043
    @shalinitripathi4043 8 місяців тому +1

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

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  8 місяців тому

      😎

    • @user-he8po4zh4t
      @user-he8po4zh4t 3 місяці тому

      @@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.

  • @srishtiagarwal7750
    @srishtiagarwal7750 16 днів тому

    In the interview,is it okay to use the terraform documentation or not?

  • @user-hl9re4tv7h
    @user-hl9re4tv7h 8 місяців тому

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

  • @Hozaifa_Uzair
    @Hozaifa_Uzair 8 місяців тому +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  8 місяців тому

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

  • @syedtameemahmed3416
    @syedtameemahmed3416 8 місяців тому

    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.

    • @user-he8po4zh4t
      @user-he8po4zh4t 3 місяці тому

      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?

  • @vaishnavienterprises7656
    @vaishnavienterprises7656 8 місяців тому +1

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

  • @shwetawadhawan9232
    @shwetawadhawan9232 8 місяців тому

    I followed the same steps but i am facing issue while terraform apply
    still creating and time is elapsing

  • @AvinashBabuDevarasetty
    @AvinashBabuDevarasetty 6 місяців тому +1

    Hi abhishek how to replace path with our public key files

  • @amaleshgupta4160
    @amaleshgupta4160 8 місяців тому

    Failed to parse ssh private key: ssh: this private key is passphrase protected.
    bro i faced an error like this in day 5. pls give the solution

    • @harishkabra
      @harishkabra 8 місяців тому

      when you create the key don't use passphrase.

  • @raghupola4284
    @raghupola4284 2 місяці тому

    I am getting error file provisioner error

  • @chrischelsisters5558
    @chrischelsisters5558 8 місяців тому

    Anna...Got error----- file provisioner error ...this private key passphrase protected...
    Pls reply me Anna

  • @shyantanghosh9077
    @shyantanghosh9077 8 місяців тому +1

    Bro can you teach me devops one to one from scratch ?

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  8 місяців тому

      No personal training service .. UA-cam playlists are easy to understand for everyone

  • @bhanusandeep6668
    @bhanusandeep6668 4 місяці тому

    i think there's something wrong with the python cuz the commands are kinda wrong like this "sudo pip3 install python3-flask","sudo python3 app.py" instead of "sudo pip3 install flask", "sudo python3 app.py &"

    • @user-he8po4zh4t
      @user-he8po4zh4t 3 місяці тому

      Don't you see instance creation running infinitely after you remove & at end of running app.py?

  • @sunilmittapally
    @sunilmittapally 8 місяців тому +2

    last line didnt execute because you do not have permission to execute.

  • @mrjacksparrow8942
    @mrjacksparrow8942 8 місяців тому +1

    Bro getting lot of errors while executing the scripts. showing lot misconfiguration in the scripts dont know how to troubleshoot

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  8 місяців тому

      What is the error ? What is the misconfiguration ?

    • @mrjacksparrow8942
      @mrjacksparrow8942 8 місяців тому

      @@AbhishekVeeramalla Bro I have tried to mix Day-4,5,6 projects and try like creating workspaces and deploying the flask app along with backend file so I got errors. and now tried implementing only 5 day project got succeded. will try again my experiment.

  • @Furyard
    @Furyard 8 місяців тому

    sir here 31:36 now terraform is not at all less then ANSIBLE or any configuration management tool because since we are using provisoners and destructor we are having mostly all the power to do things that ansible doo soo here does Terraform has replaced Ansible ?

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  8 місяців тому

      No .. ansible is very powerful as it is designed for configuration management

  • @amaleshgupta4160
    @amaleshgupta4160 8 місяців тому

    using condition statements making an video

  • @subash7777
    @subash7777 4 місяці тому

    terraform destroy somestimes doesnot delete the resources why is it? like day4 hands-on, i tried to use terraform destroy, the dynamodb is deleted bu not the s3 buckets and its content saying "ResourceNotFoundException: Requested
    │ resource not found
    │ * Unable to retrieve item from DynamoDB table "terraform-lock": operation error " and for s3 " Error: deleting S3 Bucket (subash1816-demo-bucket): operation error S3: DeleteBucket, https response error StatusCode: 409, RequestID: 5Q1XK4YV1WDJ555Y, HostID: xta8+Sp+aym8yejnnePmJvV3u2k4jdh8abts9M2z2poqPH/9jaSkvfDYldQR7UXo7YWVIrjbEak=, api error BucketNotEmpty: The bucket you tried to delete is not empty". even using force destroy it didnot work. I had to manually delete the resources. what's the solution for such issues

    • @user-he8po4zh4t
      @user-he8po4zh4t 3 місяці тому

      I also have seen this, you are using dynamo db for locking resource, so your creation of dynamodb and s3 bucket which you are using for backen should be created separate, and if you create together with ec2 instance, while destroying it first removes the table from dynamo db and while trying backend for lock, it is not finding the dynamodb table. so the issue.

  • @maheenagaral483
    @maheenagaral483 2 місяці тому

    can somebody tell i am getting below error while executing project
    public_key = file("~/.ssh/id_rsa.pub") # Replace with the path to your public key file