Create AWS Resources with Terraform & Jenkins | DevOps Project | Terraform Jenkins Automation

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 132

  • @sachinlaturkar
    @sachinlaturkar 10 หลายเดือนก่อน +1

    Hello Yeshwanth,
    You have done an awesome job. You conveyed the message very crisp and clear. Jai Shree Ram

    • @amonkincloud
      @amonkincloud  10 หลายเดือนก่อน

      Thank you 🙏

  • @Learninfra
    @Learninfra 5 หลายเดือนก่อน +1

    This is what we require for cloud automation right. Very good video brother.

  • @jaichinni
    @jaichinni ปีที่แล้ว +1

    Really Awesome and the flow of explanation sooo cool. Shared with friends too.

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Thank you for the support 🙏

  • @khingfiles
    @khingfiles หลายเดือนก่อน

    Ayos (Nice) Broder. Thanks from PH

    • @amonkincloud
      @amonkincloud  หลายเดือนก่อน

      Salamat 🙏
      Keep supporting 🙌

  • @seshubellamkonda2155
    @seshubellamkonda2155 ปีที่แล้ว +1

    Nice Explanation. Superb...

  • @babuvenugopalan3089
    @babuvenugopalan3089 7 หลายเดือนก่อน +1

    Excellent Video. Crisp and Clear. Thank you so much. Appreciate your efforts :)

    • @amonkincloud
      @amonkincloud  7 หลายเดือนก่อน

      Thank you 🙏
      Keep supporting 😁

  • @akshayjanrao5388
    @akshayjanrao5388 2 ปีที่แล้ว +3

    Hello Yeshwanth,
    This was a very good video. Eagerly waiting for your videos on terraform / ansible as I am not much familiar with how to write and understand the code. basically i am into Infra operations big data, kubernetes and learning devops approaches to get into this fields. Thank you so much in advance.

    • @amonkincloud
      @amonkincloud  2 ปีที่แล้ว +2

      Thank you Akshay. This keeps me motivated! As assured will make videos on Terraform soon!
      Thanks,
      A Monk in Cloud ☁️

  • @prasadrao5333
    @prasadrao5333 2 หลายเดือนก่อน +1

    excellent video many thanks

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      Thank you 🙏
      Keep supporting 🙌

  • @Freezing0
    @Freezing0 11 หลายเดือนก่อน +2

    Awesome Video thank you for the demonstration!
    Question, If we want to destroy the resources created through the pipeline would we have to manually destroy them? Or use terraform from our machine? Or can it be destroyed using the pipeline

    • @amonkincloud
      @amonkincloud  11 หลายเดือนก่อน +2

      You can destroy using the same pipeline

    • @Freezing0
      @Freezing0 11 หลายเดือนก่อน +1

      @@amonkincloud would we have to add another step on the pipeline?

  • @Beutyaisha
    @Beutyaisha 6 หลายเดือนก่อน +1

    Awsome❤❤video sir u did good job it's very helpful for me

    • @amonkincloud
      @amonkincloud  6 หลายเดือนก่อน

      Thank you 🙏
      Keep supporting

  • @mateusgarcia1642
    @mateusgarcia1642 8 หลายเดือนก่อน +1

    Well explained.

    • @amonkincloud
      @amonkincloud  8 หลายเดือนก่อน

      Thank you 🙏
      Keep supporting

  • @bhakta_rg
    @bhakta_rg 9 หลายเดือนก่อน +2

    Liked and subscribed! reall good info, thanks for sharing brother. You really followed the best practice (compared to many others who did not) .. you used terraform plan -out tfplan .. other tutorials simply use terraform plan, followed by terraform apply which is not a good practice.
    thanks again!

    • @amonkincloud
      @amonkincloud  9 หลายเดือนก่อน

      Thank you 🙏
      Keep supporting

  • @naresh.c2677
    @naresh.c2677 11 วันที่ผ่านมา +1

    very nice thanks bro

    • @amonkincloud
      @amonkincloud  10 วันที่ผ่านมา

      Thanks for the feedback 🙏
      Keep supporting

  • @hungariannerd8445
    @hungariannerd8445 หลายเดือนก่อน +1

    thank you Monk 🙏

    • @amonkincloud
      @amonkincloud  หลายเดือนก่อน

      Glad that it helped you!
      Keep supporting 🙌

  • @Yvenkatesh-bb8lw
    @Yvenkatesh-bb8lw 5 หลายเดือนก่อน +1

    You are doing excellent work, and I appreciate your efforts and hard work. However, don't add music in the background because it's a little bit annoying to your video and dominates your voice too. I am expecting more videos like this from your channel. ALL THE BEST...👍.

    • @amonkincloud
      @amonkincloud  5 หลายเดือนก่อน +1

      Thank you for your kind words.
      I understood from my mistake of adding audio. I have stopped it and you will not see it from the new videos on this channel

  • @spirited_rovers
    @spirited_rovers ปีที่แล้ว +4

    Before selecting build now you have to ensure whether Terraform in installed in your Jenkins machine Or not. If not installed then the pipeline will not work

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Exactly!

    • @gowsalyadeviv7076
      @gowsalyadeviv7076 6 หลายเดือนก่อน

      Hello sir may I know How to install terraform in jenkins

    • @spirited_rovers
      @spirited_rovers 6 หลายเดือนก่อน

      @@gowsalyadeviv7076 please search in TH-cam you will get more number of videos

  • @sarankamandula4454
    @sarankamandula4454 27 วันที่ผ่านมา +1

    Hey there! That;s a great explanation. Could you please tell me how to create terraform resources? Do we need to take another ec2 for terraform ? If you've made a video earlier on Terraform and how to integrate it with jenkins, could you please help me locating your video? Thanks for your help in advance :)

    • @amonkincloud
      @amonkincloud  27 วันที่ผ่านมา

      Please check AWS + Terraform playlist in my channel

  • @Leo-Msd
    @Leo-Msd 11 หลายเดือนก่อน +1

    Awesome explanation, Could you please post a video for jenkins master , slave configuration with demo and integration. Thanks

    • @amonkincloud
      @amonkincloud  11 หลายเดือนก่อน

      Thank you 🙏
      Sure will create a video on this soon

  • @Kk-rl7nv
    @Kk-rl7nv 11 หลายเดือนก่อน +1

    Hello Yashwant,
    Very informative video, try to answer below query answer:
    Suppose in same AWS account if we have n number of Ec2 suppose 20 already, so can we use the same Jenkins JOB to create new instances with different names or labels and previous instances whether its created manually or via terraform will not impact if possible please create a details video with jenkins pipeline?
    Thanks once again for the video.

    • @amonkincloud
      @amonkincloud  11 หลายเดือนก่อน

      Off course you can use them

    • @Kk-rl7nv
      @Kk-rl7nv 11 หลายเดือนก่อน

      Can you please create a requested video contents if possible?

  • @nitishgavankar9666
    @nitishgavankar9666 ปีที่แล้ว +2

    Hello Monk
    The Jenkins Pipeline file, Do we need to write the entire code on our own, or we can generate the code somehow.
    I know jenkins has a way to generate the stage for every step. But I am not sure if we can generate "Decision Code" - where you could "Approve" or "Deny" the tf apply stage.

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      There are two types of pipelines. Please go through that once, then it will be more clear.

  • @jerinvarghese160
    @jerinvarghese160 4 หลายเดือนก่อน +1

    Is there any option we will get pipeline from pipeline script option in jenkins..Coz its difficult to write this code

    • @amonkincloud
      @amonkincloud  4 หลายเดือนก่อน

      Yes you can get the code snippet from Jenkins directly and modify a bit

  • @noisehxbit2466
    @noisehxbit2466 ปีที่แล้ว +1

    Hello Yeshwanth,
    according to the script, Where does the terraform script run? as no terraform is installed in any of the ec2 instances . Do we need to manually install terraform ?

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว +1

      Terraform and Jenkins should be installed on the same EC2

  • @kobosky3
    @kobosky3 ปีที่แล้ว +1

    First you have a wonderful video, I've few questions First, Did you install your Jenkins on window? secondly did you install terrafor plugin if yes did you add the path to the already installed terraform, third can you use it for deploying ECS?

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      1. No I installed on Ubuntu EC2 Instance and
      2. Terraform installation on linux is very straightforward and easy
      3. Yes you can use this pipeline to create any AWS resource

  • @ApekshaLaad
    @ApekshaLaad 7 หลายเดือนก่อน +2

    Hello, I am getting error "cannot run program "nohup" in directory createproccess error=2 the system cannot find the file specified" during terraform plan can you help why?

    • @amonkincloud
      @amonkincloud  7 หลายเดือนก่อน

      This needs to be checked over a call by going through all the configurations

  • @light-sg5sl
    @light-sg5sl 11 หลายเดือนก่อน +1

    Hello sir first of all very good video!
    I want to ask did you created another ec2 on another account to install jenkins?
    And on that ec2 have you installed terraform?
    Can i use the same pipeline file to create any resource on aws?

    • @amonkincloud
      @amonkincloud  11 หลายเดือนก่อน

      Yes, both Jenkins and terraform should be installed on the same EC2 and you can use this particular pipeline to create any AWS Resources

    • @light-sg5sl
      @light-sg5sl 11 หลายเดือนก่อน +1

      @@amonkincloud thank you sirji!

    • @amonkincloud
      @amonkincloud  11 หลายเดือนก่อน

      @light-sg5sl you are welcome

  • @dhirajsonawane8220
    @dhirajsonawane8220 2 ปีที่แล้ว +3

    please make video on terraform if possible

    • @amonkincloud
      @amonkincloud  2 ปีที่แล้ว +1

      Hey Dhiraj,
      Thanks for reaching out. Your request has been noted. You can expect videos on Terraform and AWS in coming days. Until then please help me reach wider community of Cloud and DevOps enthusiasts. Keep supporting.
      Thanks,
      A Monk in Cloud

  • @mysticminds09
    @mysticminds09 6 หลายเดือนก่อน +1

    In this video i didn't understand how you configure your vscode with github and terraform to launch the resources ,pls explain.

    • @amonkincloud
      @amonkincloud  6 หลายเดือนก่อน

      VS Code configuration isn’t required at all

    • @mysticminds09
      @mysticminds09 6 หลายเดือนก่อน

      So how it's going to launch resources from github?

  • @rajbhoge3154
    @rajbhoge3154 10 หลายเดือนก่อน +1

    Thanks for this wonderful project. what is "foo"? i didnt get that

  • @mohitmansi11
    @mohitmansi11 ปีที่แล้ว +1

    Hello Yeshwanth , You made a good video. I followed your instruction step by step. I am facing error in Plan stage . Terraform init is failing . Any recommendation ?

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      What is the error ?

    • @mohitmansi11
      @mohitmansi11 ปีที่แล้ว

      @@amonkincloud manage to fix it. It was related to git. Did git init and then ran the pipeline .. which fixed the issue . You made excellent video . Appreciate it.

  • @shivakumare8985
    @shivakumare8985 5 หลายเดือนก่อน +1

    Hey it's great video ❤, but u didn't show how to configure terraform plugin and it's path.

    • @amonkincloud
      @amonkincloud  5 หลายเดือนก่อน

      Thank you 🙏
      That part is present in another video

  • @dummycreate-i1d
    @dummycreate-i1d ปีที่แล้ว +1

    if i want to create another instance with different name using the same terraform file how can i do it . i had done it is replacing name of the already created instance

  • @sreekanthreddyb
    @sreekanthreddyb 7 หลายเดือนก่อน +1

    Hi, Can you please list down some common error we face while working with Terraform and Jenkins in real time.

  • @Freezing0
    @Freezing0 11 หลายเดือนก่อน +1

    Where is the terraform state file stored for the pipeline?

    • @amonkincloud
      @amonkincloud  11 หลายเดือนก่อน

      It depends on how you configure it. If you want to store it in cloud you can do that

  • @RajeshK-h6v
    @RajeshK-h6v ปีที่แล้ว +1

    Hi Yesh bro,
    This tutorial is very useful.
    If we have a existing VPC, SG group & unassign Elastic IP. How can we setup a automation?
    In Configuration tab, In which situation will give "This Project is parameterized" option?
    Could you please explain, it will more helpful. Thanks

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Glad that it helped you. If you already have the resources which are created manually then you can import them on to the terraform state file. There are many tutorials on how to achieve it.

  • @GD-bx5pk
    @GD-bx5pk ปีที่แล้ว +1

    Hi I’m getting error when trying to add repo url. Its showing “failed to connect to repository:error performing git command…

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Make sure to check if git is installed or not

  • @camilogonzalez9137
    @camilogonzalez9137 5 หลายเดือนก่อน +1

    First of all, very good video, second I cannot run program "nohup" in directory createproccess error=2 the system cannot find the file specified, maybe because Iam runing jenkins on windows?

  • @abhigujjar7439
    @abhigujjar7439 ปีที่แล้ว +1

    I have to manually go and click run build after i make a commit to github, how i can set it up automatically

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      GitHub web hook setup is needed

    • @abhigujjar7439
      @abhigujjar7439 ปีที่แล้ว

      @@amonkincloud yes i add it up, one problem i am facing is that i have installed jenkins on ec2 ubuntu , so i opened 8080 port for jenkins but i dont why suddenly after 30-40 minutes always the ec2 doesn’t connect and i have to stop and restart it because of that i have to change the ip in the web hook also, dnt know why like that

  • @irfanmujawar3032
    @irfanmujawar3032 5 หลายเดือนก่อน +1

    there should two ec2 instance one for TF-ec2 and jenkins standalone server/ec2 instance

    • @amonkincloud
      @amonkincloud  5 หลายเดือนก่อน

      This is for demonstration

  • @GowriSathish-my8kr
    @GowriSathish-my8kr ปีที่แล้ว +1

    Hi , I tried to do the same in my AWS ubuntu machine but I m getting issue with Terraform init. I have installed git as well in my ubuntu machine but still I am facing issue Could you please help?

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Use the Jenkins file that I have provided in the GitHub repo it will work for sure

  • @MannuKumar-qv5it
    @MannuKumar-qv5it ปีที่แล้ว +1

    Kindly make terraform tutorial(with some project )

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Hi Mannu, thanks for reaching out. Many terraform related videos are yet to be released. I will start working on it soon. We can expect videos on this from next week.
      Thanks,
      A Mink in Cloud ☁️

  • @MuruOfficial
    @MuruOfficial ปีที่แล้ว +1

    I have requirement to trigger terraform plan once PR approved and run the terraform apply after Merged with main branch

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Yes Muru, we can do that certainly.

    • @MuruOfficial
      @MuruOfficial ปีที่แล้ว +1

      Can I get the code for this please ? Or any links

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Haven’t made a video on this yet.

    • @MuruOfficial
      @MuruOfficial ปีที่แล้ว +2

      @@amonkincloud is it possible to do that . Because it’s necessary for all the projects now using Jenkins Pipeline

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว +1

      Yes we can do that. But it takes some time

  • @abhigujjar7439
    @abhigujjar7439 ปีที่แล้ว +1

    So if i change the terraform code and push it to github, will Jenkins automatically take it and build and change the resources in aws account?

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Yes only if you have all the things correctly.

    • @abhigujjar7439
      @abhigujjar7439 ปีที่แล้ว +1

      All thinks correctly means doing all what you have shown in the video right?

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Yes corret

    • @abhigujjar7439
      @abhigujjar7439 ปีที่แล้ว +1

      You didn’t even integrated webhook with github and jenkins , so how is it actually happening

    • @balamurughanbala8238
      @balamurughanbala8238 ปีที่แล้ว

      @@amonkincloud hi bro video is awesome insted of terraform can i use visual studio code for yaml code and push it to bitbucket repo and build the infra in aws using jenkins pipeline using cicd? need your help

  • @johnkhoza6701
    @johnkhoza6701 ปีที่แล้ว +1

    Hi, the pipeline is stuck on "plan" . It keeps loading

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Please check the configuration

  • @mythili2218
    @mythili2218 ปีที่แล้ว +1

    Need a video of Jenkins master slave configuration with SSH

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว +2

      I have plans to create complete Jenkins course in future. Lets hope for the best

    • @mythili2218
      @mythili2218 ปีที่แล้ว +1

      @@amonkincloud post as soon as possible

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว +1

      Sure

  • @Rameshpowervlogs
    @Rameshpowervlogs ปีที่แล้ว +1

    Here where can I store my state file and where can I get it bro???

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว +1

      You can configure to store it in an s3 bucket

  • @streamlivemuzic1576
    @streamlivemuzic1576 ปีที่แล้ว +1

    how i can learn pipeline script ?

  • @vimaladeshmukh4017
    @vimaladeshmukh4017 ปีที่แล้ว +1

    Where is the video for configuration of jenkins terraform aws ..??

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Can you be more specific on what is the video that you are looking for?

    • @vimaladeshmukh4017
      @vimaladeshmukh4017 ปีที่แล้ว +1

      @@amonkincloud how to configure terraform with jenkins , so when we build a jenkins pipeline it will create a new VM in AWS.

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      I haven’t created detailed video on Jenkins. In future you might expect a video on that too

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      The current video is about the same I believe

  • @dhananjaywahagavkar7587
    @dhananjaywahagavkar7587 ปีที่แล้ว +1

    Waiting for Terroform, ,please

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Hi Dhananjay,
      I am working on it. Videos will be out soon.

  • @fatemealizade5149
    @fatemealizade5149 4 หลายเดือนก่อน +1

    Just consider that you need to install terraform in your jenkins machine. otherwise your pipeline will fail!

    • @amonkincloud
      @amonkincloud  4 หลายเดือนก่อน +1

      Yes that’s correct

  • @magicstickid3
    @magicstickid3 ปีที่แล้ว +1

    Mine is failing at checkout. please help

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว +1

      Hi Felix, thank you for reaching out. Please check if you have installed Git on the server where you are running Jenkins. If not installed, try installing it.
      Hope this helps!
      Thanks,
      A Monk in Cloud ☁️

    • @magicstickid3
      @magicstickid3 ปีที่แล้ว +1

      @@amonkincloud Thank you for the response. I have installed git on my local machine since that's where Jenkins is installed and still getting same issue.

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Can you also check the Jenkins configuration for the Git checkout whether you are providing the correct Git URL all those things.

    • @magicstickid3
      @magicstickid3 ปีที่แล้ว +1

      @@amonkincloud Yes i am, I forked your repo and pointed it to my github. i can send yo the console output if you want please

    • @amonkincloud
      @amonkincloud  ปีที่แล้ว

      Send the screenshot of the error message to amonkincloud@gmail.com

  • @AndrewBrotherton-bx4po
    @AndrewBrotherton-bx4po 3 หลายเดือนก่อน +1

    i can make 100 ec2 instances at once, aws ask how many you want to make at once

  • @eliasperez5168
    @eliasperez5168 2 หลายเดือนก่อน +1

    mine failed to build

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      Check the console output and troubleshoot the issue.

    • @eliasperez5168
      @eliasperez5168 2 หลายเดือนก่อน

      @@amonkincloud yes I will run it through cloud watch logs it may be the access keys