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????
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
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
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.
@@gauravatre2045 you have to be very careful about when you you’re applying such variables in different workspaces. Are’nt you using terraform enterprises
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
absolutely your all episodes and playlist are so understable and really keep upload more and more hands on. salute brother
Glad you like them!
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 :)
Glad I could help!
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.
All your Terraform videos very informative..Keep up the good work Rahul..
Very well explained!
Clearly explained. Thank you very much Rahul. I really like your videos.
You are most welcome
Your videos r very informative and helpful. Thank you
Cheers and keep following many more to come in upcoming weeks
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????
Rahul Thank you so much your videos i learned a lot and cleared the interview
Congratulations! I hope you will do great in the new role
Great session Sir
You are welcome
How can we use workspaces for AWS Environment Using Multiple Accounts?? If you can please create a video lecture of it, it would be really great.
Please make video on full project provisioning by terraform
There is already one on my channel - Real Time DevOps Project | Use Terraform Jenkins AWS to deploy REST API
ua-cam.com/video/otQqd7GRVK0/v-deo.html
Sir , thanks a lot . for teaching me terraform
It's my pleasure
Thank you Rahul for all your videos on terraform.it is very well explained. Can you please make video on lifecycles.
Hi did you mean terraform lifecycle?
@@RahulWagh yes Rahul, sorry for the autotype
Thank you so much bro, It really helped me out
Glad to hear it
why we used locals in workspace we can simply add instance here then what the need to mention locals
Well explained.
Glad you liked it
I would like to know, does every workspace will have different state file ?
How we can see it
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
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
if my state file is set to store locally, then where is the state file stored when terraform apply is used in the two workspaces dev and test?
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.
Good explanation
What if we are in dev workspace and supply test.tfvar file in plan and apply?
It will be applied for the development workspace but what you are planning to do?
Thanks for replying.
Just in case someone by mistake applies test.tfvar in dev namespace then values of test file will be applied in dev namespace?
@@gauravatre2045 you have to be very careful about when you you’re applying such variables in different workspaces.
Are’nt you using terraform enterprises
@@RahulWagh earlier but not recently.
Thanks again.
👏👏👏👏👏👏🙌 thank you so much brother
You welcome bro
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 ?
perfect
Thanks
creating different resources for dev or testing, will that increase cost for both operation?
Hi Rahul ,Do you have any info handy link regarding handling multiple workspaces for ecs,can you share the link possible
This code does not work..and your Github repository link is not working .
what about tfstste file? will there be two tfstate file for both workspace
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)
tahts why tfvars file is used
NIce intro in to TF workspaces !
BTW whats the laser like mouse pointer you use? plz let know tkz !
Well its feature of google slides
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
Probably you should use terraform workspace to work with mulitple environment
@@RahulWagh I found a new solution. Used azure devops pipeline to deploy and at the time of configuring pipeline I mentioned multiple backend values
Hi Sir , Can you provide Terraform and Kubernetes classes .I will join if you teach.
Bro look like Sundar pichai 😅😅
😮 I didn’t know that 😝