I'm new to Jenkins, but have the task of deploying to multiple Terraform workspaces (each on for a different customer), then multiple K8s Namespaces (again, one per customer), with a central set of resources that cover all customers, like a central AD server, VPC, etc.... What features of Jenkins pipelines should I be using for this? Can setup variables to describe the differences between customer setups, then set a pipeline to deploy against each? Would folder help me, could I have a folder per customer with nested variables?
Thanks, can you please create a tutorial on ECS, using jenkinsfile, dockerfile, ansible, terraform, ECR. maven, nexus etc. please ? it would be complete real time tutorial
I dont quite understand: I can do same thing via scripted pipeline using powershell plugin, run the terraform commands I need (in Windows). Or bash if I use Linux, what does this plugin do ? Is there something I missed?
"terraform" does not have an install of "terraform-11" configured - did you mean "terraform - 11"? @ line 4, column 18. terraform'terraform-11' ^ whats error?
And what happens if i wanto to redeploy my vms or another instances in case i commit changes to the .tf files in GitHub? Is there any way to manage that jenkins get triggered?
Hello sir, i am getting below error while running this script set up every thing Error: cloning the remote git repository, error cloning remote repo 'origin'
Thank you sir for such a wonderful explanation, but i have one query. what if i create cross account roles from multiple new accounts, how can i tell pipeline to where to execute the code?
hi, thanks for putting up this video. am new to DEVOPS, will this work without installation of Terraform client on Jenkins server? In real time, is it always like that we need both Jenkins and Terraform client installed on same server?
Hello Sir, i have followed your instruction, its working fine for deploy.Can you help me to destroy it..I have created a job to destroy.How to point the terraform deploy location
can anyone please help me to understand ( assume terraform code is ready for one region) 1> Can we use different name (e.g. envjenkinfile ) ? 2> what is the best way to deploy multi region infrastructure with jenkins ( create separate jenkinfile or same ? create separate jobs or same job ? ) 3> create separate git branch or just create separate tvars folder ?
🌟 Welcome to Java Home Cloud 🌟
Register for Online Training 👉 bit.ly/3vuBQqb
javahome.in
Terraform integration with jenkins explained in most simplest way! Thank you so much!
This is what I was looking for. Thank you
Glad I could help
Thanks for sharing this information ..It is very useful for my upcoming interview..Thanks
All the best
I love this. Stay strong!
Thank you
Thank you bhai ji .. !! Much needed video.
It is such a cool implementation. Thank you so much for this guide.
Great video! greetings from Mexico.
Hey, thanks!
Thank you so much for the wonderful demonstration.
Thank you very much ....it's a very helpful
You are welcome!
Good one and easy to understand
Glad you liked it
Nice implementation.
Glad you like it!
I'm new to Jenkins, but have the task of deploying to multiple Terraform workspaces (each on for a different customer), then multiple K8s Namespaces (again, one per customer), with a central set of resources that cover all customers, like a central AD server, VPC, etc.... What features of Jenkins pipelines should I be using for this? Can setup variables to describe the differences between customer setups, then set a pipeline to deploy against each? Would folder help me, could I have a folder per customer with nested variables?
Nice video
How would I configure a local working dir where my terraform scrips are stored instead of pulling them from git?
Thanks, can you please create a tutorial on ECS, using jenkinsfile, dockerfile, ansible, terraform, ECR. maven, nexus etc. please ? it would be complete real time tutorial
very useful, thanks man!
Glad it helped!
How can we install azure cli in the machine through jenkins pipeline
Check Azure CLI Jenkins plugin
I dont quite understand:
I can do same thing via scripted pipeline using powershell plugin, run the terraform commands I need (in Windows). Or bash if I use Linux, what does this plugin do ?
Is there something I missed?
Great 👏
"terraform" does not have an install of "terraform-11" configured - did you mean "terraform - 11"? @ line 4, column 18.
terraform'terraform-11'
^
whats error?
excellent bro
Thank you so much 😀
Hi sir, where the tfstatefile will be stored ?
as per my code it stores on jenkins local workspace
And what happens if i wanto to redeploy my vms or another instances in case i commit changes to the .tf files in GitHub? Is there any way to manage that jenkins get triggered?
Configure GitHub webhooks
Cool man.thanks alot
Thanks..Helpful for me.
it was short and accurate, thank you. but can we poll this job. and also how can we destroy created infra at every specific time.
Yeah, it can be done
My jenkins is running on local machine. How dot I provide authentication to create aws resource.
A quick response will be appreciated
Hello sir, i am getting below error while running this script set up every thing
Error: cloning the remote git repository, error cloning remote repo 'origin'
Please help me
Thank you for this great tutorial! If I would to terminate the deployed resources, how should I proceed with the command terraform destroy.
Many Thanks 👍👍👍👍
Great video. How would you add provider information of aws if you run it on the localhost?
Super !!
A like one more time .. thank
sir how to do the same with azure
Hi Sir, is there another way for storing aws credential instead of iam role? Actually I am running Jenkins on localhost.
use aws credentials plugin
@@JavaHomeCloud How to do it?
Getting this error for terraform apply -
error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: context deadline exceeded
Please help
thank you sir
Most welcome
Hi, Can you please list down some common error we face while working with Terraform and Jenkins in real time.
Yeah will do a video
Thank You.....! SiR
Thank you sir for such a wonderful explanation, but i have one query.
what if i create cross account roles from multiple new accounts, how can i tell pipeline to where to execute the code?
Check AWS credentials plugin for Jenkins
👍👍👍👍
hi, thanks for putting up this video. am new to DEVOPS, will this work without installation of Terraform client on Jenkins server? In real time, is it always like that we need both Jenkins and Terraform client installed on same server?
Yes, absolutely
Hello Sir, i have followed your instruction, its working fine for deploy.Can you help me to destroy it..I have created a job to destroy.How to point the terraform deploy location
can anyone please help me to understand ( assume terraform code is ready for one region)
1> Can we use different name (e.g. envjenkinfile ) ?
2> what is the best way to deploy multi region infrastructure with jenkins ( create separate jenkinfile or same ? create separate jobs or same job ? )
3> create separate git branch or just create separate tvars folder ?
1. Yes
2. you just need to change the region and deploy
3. use same branch and just update the region variable.
then How to destroy same thing which is deployed infrastructure using jenkins pipeline
create another pipeline for destroy