this is what I was looking for... I was a system engineer for a long duration and used to do the things manually, now adapting things like IaC and because of that need to learn the stuff you explained. Thank you for creating this video... love from Maharashtra :)
it was a very good explanation and very good information for preparing for interviews i saw all you are terraform classes and ur giving proper documentation also it helps very much for every one who are preparing. and u have to post more videos on cloud and Devops Thank u very much sir.
Hello Rahul Sir, You didn't shown to us "test.tfvars " file for test workspace. We have seen main.tf file and also seen "dev.tfvars" file. But what for test workspace????
Thanks for the demo! I am building cicd pipeline for terraform workspace into azure. kindly share if you have any content/links on that, would be helpful
There is already one on my channel - Real Time DevOps Project | Use Terraform Jenkins AWS to deploy REST API ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-otQqd7GRVK0.html
wt about terraform statefile per each environment individulke tf state file genarate or only one tfstae uesed for multple environments plese tell me i am confused about that
@@gauravatre2045 you have to be very careful about when you you’re applying such variables in different workspaces. Are’nt you using terraform enterprises
Hello..thanks for the video....but I have a query: What if I used keypair and vpc? How can I select the key and vpc for dev and prod separately as per the workspace by tfvars? If possible, please let me know ..thanks a lot.
one quick question : can we configure Tfc to Terminal and will this created workspace reflect there in the portal ? if not can advice the best approach ?
Can we have diff contents of main.tf file (or any other terraform file) for 2 diff workspaces of same working directory/same terraform project ? Let's say I have 'dev' & 'prod' workspaces , I want to test few infra changes in 'dev' workspace , for which I switch to 'dev' workspace , do some changes in few terraform code , run terraform apply , test it out , found that it has some issues . Keeping those changes as it is , now switching to 'prod' workspace . Run terraform apply . What happens now ? Will 'prod' workspace also gets those in-progress 'dev' changes applied ? In git this won't happen since 'dev' & 'prod' both are diff branches , however in case of terraform workspace , since we have shared terraform files (main.tf , etc) , what would be the outcome in this case ?
Hi, Here you didn't declare variable in main confiuration file. How did you run plan and apply commands? i got errors like this "An input variable with the name "instance_type" has not been declared. This variable can be declared with a variable "instance_type" {} block". after that I declared a varible in main configuration file.(solved my error)
I am trying to create 2 environments via Azure in Azure DevOps Pipeline . I know if I use multiple tfvars file for both environment it will work . I need to have 2 backend . How I can achieve this ? If you have any sample script please send me