How to Install Jenkins on EC2 with Terraform
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 👍
----------------------------------------------------------------------------
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 👍
Wow!!! I just subscribed! You are a genius!!!!! I am binge watching every video now. 🎉
I was getting some errors in my code and this video helped me. Thank you for this great content🎉
Have been waiting for this ..👌
Can’t wait to try this 👌🏾
Very great explanation and concise. Good job
Very good Job Brother Azeez, very clear and very concise. Straight to the point
Thank you sir.
Thank you, your teaching style is very impressive
You are welcome!
Great lecture.
Nice explaination. Thanks a lot for this video.
You are welcome
Well put together
Thank you Khadijah.
Thank you very much
You are welcome.
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")
This is one of it's kind. Thanks. Are going to continue with the website project?
Thanks Shey, I always appreciate your support. Are you referring to the Terraform module?
@@AOSNote Yes. You ended with creation of Security groups.
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
Hello, i tried all code but it is showing error of file provisioner time out error
Hi can you help me i am getting error like ssh auntentication failed null resource is not creating
Yes in my case also same error in file provisioner line and even I can't access the instance
can you help? why is showing like that: Error: configuring Terraform AWS Provider: failed to get shared config profile, terraform-user
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
put there access key and secret key
How about running jenkins as k8s pod..??
I will work on it at some point.
Hi i would like to join, but i would like to know what the monthly fee will be if i need all listed
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.
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
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.
keep this pem file in other location like Desktop
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
╵
Hello Shey. please paste your code from line 101 to 128
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
╵
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
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
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