How to Install Jenkins on EC2 with Terraform

Sdílet
Vložit
  • čas přidán 23. 08. 2022
  • Courses: www.aosnote.com/store
    Website: www.aosnote.com/
    This tutorial will teach you how to install Jenkins on an ec2 instance with Terraform.
    How to configure a named profile on your computer - • Install AWS CLI and Co...
    Download reference file: github.com/azeezsalu/terrafor...
    Jenkins documentation: www.jenkins.io/doc/tutorials/...
    ----------------------------------------------------------------------------
    AWS Hands-on Projects for Beginners👇
    ----------------------------------------------------------------------------
    ✔ Getting Started on AWS Cloud: www.aosnote.com/offers/qq2dok...
    ✔ Deploy a Static Website: www.aosnote.com/offers/T7wgpK...
    ✔ Deploy a WordPress Website: www.aosnote.com/offers/xFzqby...
    ✔ Deploy a Dynamic E-commerce Website: www.aosnote.com/offers/gYsmFB...
    ✔ Deploy a Dynamic Website with Terraform: www.aosnote.com/offers/pjYL9y...
    ✔ Deploy a Static Website with Ansible: www.aosnote.com/offers/WgGk2N...
    ✔ Deploy a Website Docker, AWS ECR, and AWS ECS: www.aosnote.com/offers/5hthWg...
    ✔ Deploy a Dynamic Website with CloudFormation: www.aosnote.com/offers/zFhSEi...
    ----------------------------------------------------------------------------
    Projects Coming Soon 👇
    ----------------------------------------------------------------------------
    ✔ Deploy a Website with Terraform Modules, AWS ECR, and AWS ECS
    ✔ Create CICD to Deploy a Dynamic Website
    ✔ Python and AWS Lambda Project
    ----------------------------------------------------------------------------
    Bootcamp 👇
    ----------------------------------------------------------------------------
    6 Months Cloud/DevOps Bootcamp: www.aosnote.com/offers/SZFctC...
    ----------------------------------------------------------------------------
    Courses: www.aosnote.com/store
    Website: www.aosnote.com/
    ----------------------------------------------------------------------------
    Thank you🙏. If you find this video valuable, please don't forget to like, subscribe, and share to support this channel 👍

Komentáře • 42

  • @AOSNote
    @AOSNote  Před rokem

    ----------------------------------------------------------------------------
    AWS Hands-on Projects for Beginners👇
    ----------------------------------------------------------------------------
    ✔ Getting Started on AWS Cloud: www.aosnote.com/offers/qq2dokAR/checkout
    ✔ Deploy a Static Website: www.aosnote.com/offers/T7wgpKti/checkout
    ✔ Deploy a WordPress Website: www.aosnote.com/offers/xFzqby9z/checkout
    ✔ Deploy a Dynamic E-commerce Website: www.aosnote.com/offers/gYsmFBVg/checkout
    ✔ Deploy a Dynamic Website with Terraform: www.aosnote.com/offers/pjYL9ybL/checkout
    ✔ Deploy a Static Website with Ansible: www.aosnote.com/offers/WgGk2NUk/checkout
    ✔ Deploy a Website Docker, AWS ECR, and AWS ECS: www.aosnote.com/offers/5hthWgH4/checkout
    ✔ Deploy a Dynamic Website with CloudFormation: www.aosnote.com/offers/zFhSEiuQ/checkout
    ----------------------------------------------------------------------------
    Projects Coming Soon 👇
    ----------------------------------------------------------------------------
    ✔ Deploy a Website with Terraform Modules, AWS ECR, and AWS ECS
    ✔ Create CICD to Deploy a Dynamic Website
    ✔ Python and AWS Lambda Project
    ----------------------------------------------------------------------------
    Bootcamp 👇
    ----------------------------------------------------------------------------
    6 Months Cloud/DevOps Bootcamp: www.aosnote.com/offers/SZFctCkU/checkout
    ----------------------------------------------------------------------------
    Courses: www.aosnote.com/store
    Website: www.aosnote.com/
    ----------------------------------------------------------------------------
    Thank you🙏. If you find this video valuable, please don't forget to like, subscribe, and share to support this channel 👍

  • @abo2517
    @abo2517 Před měsícem

    Wow!!! I just subscribed! You are a genius!!!!! I am binge watching every video now. 🎉

  • @abo2517
    @abo2517 Před měsícem

    I was getting some errors in my code and this video helped me. Thank you for this great content🎉

  • @kilowdynwa3370
    @kilowdynwa3370 Před rokem

    Have been waiting for this ..👌

  • @raissa9007
    @raissa9007 Před rokem

    Can’t wait to try this 👌🏾

  • @user-pw1kh3se7m
    @user-pw1kh3se7m Před 7 měsíci

    Very great explanation and concise. Good job

  • @RodrigueTchamna
    @RodrigueTchamna Před rokem

    Very good Job Brother Azeez, very clear and very concise. Straight to the point

  • @user-ph7uv8io9n
    @user-ph7uv8io9n Před 10 měsíci

    Thank you, your teaching style is very impressive

    • @AOSNote
      @AOSNote  Před 10 měsíci

      You are welcome!

  • @giftfelix4848
    @giftfelix4848 Před rokem

    Great lecture.

  • @user-vr5uc6tz5e
    @user-vr5uc6tz5e Před 10 měsíci

    Nice explaination. Thanks a lot for this video.

  • @KhadijahCelestine
    @KhadijahCelestine Před rokem

    Well put together

  • @DevOpsPulse
    @DevOpsPulse Před rokem

    Thank you very much

  • @tyafizi
    @tyafizi Před rokem +1

    thanks!
    By the way, if someone has the following problem:
    Error connecting to SSH_AUTH_SOCK: dial unix
    /run/user/1000/ssh-agent.socket: connect: no such file or directory
    Then just add agent = "false" to your ssh connection (inside resource "null_resource" "name")

  • @sheynjila2457
    @sheynjila2457 Před rokem

    This is one of it's kind. Thanks. Are going to continue with the website project?

    • @AOSNote
      @AOSNote  Před rokem

      Thanks Shey, I always appreciate your support. Are you referring to the Terraform module?

    • @sheynjila2457
      @sheynjila2457 Před rokem

      @@AOSNote Yes. You ended with creation of Security groups.

  • @chaan5567
    @chaan5567 Před rokem

    getting this error when i try to apply terrform apply --auto-approve "ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no│ supported methods remain" can u plz help me how to resolve this issue thanks in advance

  • @sonnalbhaware2883
    @sonnalbhaware2883 Před 11 měsíci

    Hello, i tried all code but it is showing error of file provisioner time out error

  • @ttttttyyyyyy
    @ttttttyyyyyy Před rokem

    Hi can you help me i am getting error like ssh auntentication failed null resource is not creating

    • @sonnalbhaware2883
      @sonnalbhaware2883 Před 11 měsíci

      Yes in my case also same error in file provisioner line and even I can't access the instance

  • @the_secret3130
    @the_secret3130 Před rokem

    can you help? why is showing like that: Error: configuring Terraform AWS Provider: failed to get shared config profile, terraform-user

    • @AOSNote
      @AOSNote  Před rokem

      It is complain about the credential you provided for your profile. Please watch this video to setup your credentials correctly: czcams.com/video/vTJSV5xeQ5c/video.html

    • @user-mw6ry2lx2o
      @user-mw6ry2lx2o Před rokem

      put there access key and secret key

  • @vimaladeshmukh4017
    @vimaladeshmukh4017 Před rokem

    How about running jenkins as k8s pod..??

    • @AOSNote
      @AOSNote  Před rokem

      I will work on it at some point.

  • @faitheavowlanou5235
    @faitheavowlanou5235 Před 8 měsíci

    Hi i would like to join, but i would like to know what the monthly fee will be if i need all listed

    • @AOSNote
      @AOSNote  Před 8 měsíci

      Hello Faith,
      Thank you for your interest in the program. It's worth mentioning that our program is designed to be self-paced, giving you the flexibility to start at any time that suits you best. To help you keep track of your progress, we provide a Jira board where you can monitor your own advancement.
      This is the roadmap: czcams.com/video/H_OotOqUwcc/video.html, which outlines the courses and projects we will guide you through step by step once you enroll in the program. This comprehensive roadmap is specifically designed to equip you with the essential skills required to become a cloud/devops engineer.
      Moreover, I hold regular meetings with my students every Saturday, and we have a dedicated Slack channel. These resources will help you bridge any knowledge gaps you may have and provide additional support throughout the program.
      If you are interested in joining the program, you can sign up through the following links:
      6-month program: www.aosnote.com/resource_redirect/offers/Szqs3Gkq
      1-year program: www.aosnote.com/resource_redirect/offers/RaYvuF2s
      Please feel free to reach out if you have any further questions or require additional information.

  • @nntun03
    @nntun03 Před 7 měsíci

    superb! best video on Jenkins on EC2 ..thank you very much! very clear and not confusing..
    but does null_resource work in 2023?
    Error: remote-exec provisioner error

    │ with null_resource.name,
    │ on ec2.tf line 118, in resource "null_resource" "name":
    │ 118: provisioner "remote-exec" {

    │ error executing "/tmp/terraform_1084987931.sh": Process exited with status 127

  • @yawotentegue1526
    @yawotentegue1526 Před rokem

    Hello .I follow all the steps but i getting an error I don't how to fix it
    help me please
    this is the error :on ec2.tf line 107, in resource "null_resource" "name":
    │ 107: private_key = file ("~/Downloads/ec2_key.pem")
    │ ├────────────────
    │ │ while calling file(path)

    │ Invalid value for "path" parameter: no file exists at "~/Downloads/ec2_key.pem"; this function works only with files that are
    │ distributed as part of the configuration source code, so if this file will be created by a resource in this configuration you must
    │ instead obtain this result from an attribute of that resource.

  • @sheynjila2457
    @sheynjila2457 Před rokem

    I got the following error when provisioning. Error: file provisioner error

    │ with null_resource.name,
    │ on jenkins.tf line 112, in resource "null_resource" "name":
    │ 112: provisioner "file" {

    │ host for provisioner cannot be empty

    • @AOSNote
      @AOSNote  Před rokem

      Hello Shey. please paste your code from line 101 to 128

  • @sheynjila2457
    @sheynjila2457 Před rokem

    Hi Azeez, I still have issues with the installation. Timeout when ssh'ing:
    null_resource.name: Still creating... [4m40s elapsed]
    │ on jenkins.tf line 113, in resource "null_resource" "name":
    │ 113: provisioner "file" {

    │ timeout - last error: dial tcp 54.146.224.156:22: i/o
    │ timeout

    • @ttttttyyyyyy
      @ttttttyyyyyy Před rokem

      I also getting same issue like null_ resource is still creating after 5 m. It is showing like time elapsed and it shows like in line no 110 ssh handshake is failed .Ssh authentication failed

    • @Xanthron
      @Xanthron Před 5 měsíci

      found solution for this?
      I am getting below error:
      Error: remote-exec provisioner error

      │ with null_resource.name,
      │ on aws.tf line 127, in resource "null_resource" "name":
      │ 127: provisioner "remote-exec" {

      │ error executing "/tmp/terraform_231287387.sh": Process exited with status 1

  • @ashishAWS
    @ashishAWS Před rokem

    Hi, Excellent Job Azeez. Each and every point is explained well. I am following this as hands on and getting one error which i explore to google but did't find relevant solution. Kindly look into it and suggest.
    emote-exec provisioner error

    │ with null_resource.name,
    │ on ec2.tf line 118, in resource "null_resource" "name":
    │ 118: provisioner "remote-exec" {

    │ error executing "/tmp/terraform_301962996.sh": Process exited with status 1