How to Install Jenkins on EC2 with Terraform

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • Courses: www.aosnote.co...
    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/aze...
    Jenkins documentation: www.jenkins.io...
    ----------------------------------------------------------------------------
    AWS Hands-on Projects for Beginners👇
    ----------------------------------------------------------------------------
    ✔ Getting Started on AWS Cloud: www.aosnote.co...
    ✔ Deploy a Static Website: www.aosnote.co...
    ✔ Deploy a WordPress Website: www.aosnote.co...
    ✔ Deploy a Dynamic E-commerce Website: www.aosnote.co...
    ✔ Deploy a Dynamic Website with Terraform: www.aosnote.co...
    ✔ Deploy a Static Website with Ansible: www.aosnote.co...
    ✔ Deploy a Website Docker, AWS ECR, and AWS ECS: www.aosnote.co...
    ✔ Deploy a Dynamic Website with CloudFormation: www.aosnote.co...
    ----------------------------------------------------------------------------
    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.co...
    ----------------------------------------------------------------------------
    Courses: www.aosnote.co...
    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 👍

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

  • @AOSNote
    @AOSNote  2 года назад

    ----------------------------------------------------------------------------
    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 2 месяца назад

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

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

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

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

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

  • @user-ph7uv8io9n
    @user-ph7uv8io9n 11 месяцев назад

    Thank you, your teaching style is very impressive

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

      You are welcome!

  • @user-pw1kh3se7m
    @user-pw1kh3se7m 8 месяцев назад

    Very great explanation and concise. Good job

  • @tyafizi
    @tyafizi Год назад +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")

  • @user-vr5uc6tz5e
    @user-vr5uc6tz5e 11 месяцев назад

    Nice explaination. Thanks a lot for this video.

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

      You are welcome

  • @kilowdynwa3370
    @kilowdynwa3370 2 года назад

    Have been waiting for this ..👌

  • @raissa9007
    @raissa9007 2 года назад

    Can’t wait to try this 👌🏾

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

    Great lecture.

  • @sheynjila2457
    @sheynjila2457 2 года назад

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

    • @AOSNote
      @AOSNote  2 года назад

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

    • @sheynjila2457
      @sheynjila2457 2 года назад

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

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

    Well put together

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

      Thank you Khadijah.

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

    Thank you very much

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

      You are welcome.

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

    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 Год назад

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

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

    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  9 месяцев назад

      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: ruclips.net/video/H_OotOqUwcc/видео.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.

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

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

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

      It is complain about the credential you provided for your profile. Please watch this video to setup your credentials correctly: ruclips.net/video/vTJSV5xeQ5c/видео.html

    • @user-mw6ry2lx2o
      @user-mw6ry2lx2o Год назад

      put there access key and secret key

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

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

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

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

  • @vimaladeshmukh4017
    @vimaladeshmukh4017 2 года назад

    How about running jenkins as k8s pod..??

    • @AOSNote
      @AOSNote  2 года назад

      I will work on it at some point.

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

    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 Год назад

    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.

    • @user-mw6ry2lx2o
      @user-mw6ry2lx2o Год назад

      keep this pem file in other location like Desktop

  • @sheynjila2457
    @sheynjila2457 2 года назад

    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  2 года назад

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

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

    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 Год назад

      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 6 месяцев назад

      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 Год назад

    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