Day-6 | Terraform Workspaces Demo | Dev - QA - Stage |
HTML-код
- Опубликовано: 21 сен 2023
- Support my work
www.buymeacoffee.com/abhishekprd Hi Everyone, My Name is Abhishek and my channel is focused on delivering Free content on DevOps and Cloud. Follow my channel for practical learning of DevOps and Cloud. Don't miss the FREE DEVOPS COURSE and FREE AWS COURSE from Playlists section.
Doubts Clearing Group
www.youtube.com/@AbhishekVeer...
GitHub Repo for the Series
github.com/iam-veeramalla/ter...
Instagram: / abhishekveeramalla_off...
Book 1:1 with me on TopMate for career guidance
topmate.io/abhishek_veeramalla
Public Telegram Channel For Notes and Updates
t.me/abhishekveeramalla
About me:
========
LinkedIn: / abhishek-veeramalla-77...
GitHub: github.com/iam-veeramalla
Medium: / abhishekveeramalla-av
What is Terraform ?
Learn Terraform from basics
Terraform real world examples
Terraform course
Best terraform course
Terraform modules
Terraform workspaces
#devops #futureofdevops #kubernetes #sre #aws #azure
DEVOPS FAQ
DEVOPS
WHAT IS DEVOPS ?
WHY DEVOPS ?
HOW TO LEARN DEVOPS ?
LEARN DEVOPS IN 60 DAYS ?
NON IT TO IT BACKGROUND ?
IS DEVOPS EASY TO LEARN ?
BEST DEVOPS COURSE
FREE DEVOPS COURSE
#AbhishekVeeramalla
BEST DEVOPS VIDEOS
DEVOPS INTERVIEW QUESTIONS
EASY DEVOPS VIDEOS
BEST WAY TO LEARN DEVOPS
PYTHON FOR DEVOPS
PYTHON PROJECTS FOR DEVOPS
LEARN PYTHON
PYTHON PROJECTS FOR AWS
AWS PYTHON PROJECTS
AWS LAMBDA FUNCTIONS
WHAT IS GITOPS ?
WHY GITOPS ?
LEARN GITOPS ?
GITOPS FREE COURSE
What is AWS ?
LEARN AWS FOR FREE
AWS COURSE
AWS COURSE FOR DEVOPS
AWS CLI Deep Dive .
.
Disclaimer: Unauthorized copying, reproduction, or distribution of this video content, in whole or in part, is strictly prohibited. Any attempt to upload, share, or use this content for commercial or non-commercial purposes without explicit permission from the owner will be subject to legal action. All rights reserved. - Развлечения
Your Selflessness talks a lot! about you. Someone finishing a series of yours is a Hero for sure. 😉💗
😍😍
Excellent abhi anna.. No one explains complex topics in a easy way better than you...😊😊
Thank you so much 🙂
Please take care and thanks for the session anna. Looking forward for the Day 7 in Terraform Zero to Hero.
Deeply grateful at you Abhishek. I owe you a lot. You have own so many hearts by the extraordinary skill you have developed in you that is making things simple and straight and communicating the way everyone needs 🎉.
you are awesome.. thanks bro for your efforts making it so easy for us to understand the complex topics.
Great working Session on this Workspaces concept in Terraform. Kudos for all your fabulous efforts in producing this Terraform Series. (zero to hero)
Many thanks!
Thank you so much Sir, God bless you
Thank you so much. I am learning a lot from channel. 🍀
Your teaching skills are god's gift. Very easy to understand.
🎉
Thank you so much for all the information about the terraform WorkSpaces.
My pleasure!
Nice video learn many things
ur content doesnt fall back bro...was just going thru workspace and then this video...grateful for all ur efforts
Thanks
learning new things and ur commitment to provide ur knowledge on terraform thank u abhishek anna waiting for some more courses
Thank you so much 🙂
Fabulous ❤❤❤..it's really helped me a lots..
an amazing explanation, Abhishek. God Bless You!!
Thanks a lot Abhi , your work through with the demo and the possible pitfalls we may encounter warnings .. are fantastic .. Will you be sharing any real world project assignment like for us to do after the 7 days course ? , it would be great if you can .. . Thank you so much .. take care please ..
This is awesome Abhishek.Thank you
Welcome
awesome explaination
Thanks Abhishek.... its Crystal clear explanation ........your are Terraform Hero👌
Thanks a ton
Amazing series
Thanks Abhishek. I practiced and understood workspace concept. Waiting for next session
Its uploaded
really great session i cleared now completely workspaces
Amazing
very useful. I was searching this. Thank YOU
Most welcome
Awesome explanation, our doubts are getting cleared while watching the video and practicing along with you. Thanks a lot Abhishek!!!
It's my pleasure
It's my pleasure
I failed multiple times , but never give up and at last learn Workspace . Practicing without sleepless nights😊😊 . Excellent content Abhishek my friend !
Great to learn Terrafom
Yup
Hi, Abhishek. I really like your videos! They are no BS and very knowledgeable. So Thanks you so much for doing this. Also can you make a project on terraform and ansible combined something based on real world?
Thank you
Absolutely great
Welcome
Thanks for sharing anna❤
Welcome
Thanks for the content
Welcome
Awesome Abhishek 👏
Thank you so much for a wonderful session.
My pleasure!
Thank you for your efforts..
Amazing content. 👏
Waiting for Python course in near future.
😎
Abishek, that was so fabulous dude eventhough you were not feeling that much great, still prefer to make a content for Others and did it successfully as well.
thankyou sir
Thanks, Abhishek
Welcome
THANKS ATON ABHISHEK
Thanks Abhishek Sir.. Also one suggestions for peers never use terraform destroy --auto-approve.😛
😊
"Great work, Abhishek! I'm eager to learn how we can effectively handle storing various GCS backends to accommodate different state files originating from distinct workplace environments, such as having a 'dev-statefile' to store the 'dev-gcs-bucket.' Could you assist me in understanding this, please?"
+1
No doubt anyone can learn nd master watching your videos without wasting in single np... while watching/practicing your series like AWS, devops,now terraform to much confidence...same time unable to remember commands nd topics...is there any suggestions which one we need to more concentration....for asking this not good for your hardworking nd time spending for us but i hope everyone facing same issue 😔..
Hi Vaishnavi. Just keep practicing there are no shortcuts. I am sure you will remember and All the best :)
Thank you ^^
You're welcome 😊
Hi Abhishek, plz take care,... I request can you please make a project in Terraform by utilizing all 7 videos content
sure, will upload one
@@AbhishekVeeramallastill waiting for this project 😅😅
Nice explanation sir
Welcome
Thanks Abhishek!! Particle was practiced with three modes of workspaces dev,stage,prod with different instance types. Thanks once again abhishek for helping us to implement step by step carefully with more cautions. Thanks once again.
My pleasure 😊
Hi Abhishek excellent content, thank you. I see that you are Presenting in cloud native days Pune, can we have any coupon code to attend the session .
Hi Abhishek,
Thanks for explaining the concept, if possible please suggest if we create a workspace with the name dev and dev team wants multiple instances on day to day basis so tfstate file maintaining resource block to maintain resources suppose “example” so in dev workspace if we create t2.micro instance suppose so as we provision t2.medium then it will replace existing so can you help to create how we can manage this.
Supprrrrr❤
Welcome
14:04 Hi Bro, in that case do we need to create multiple statefiles in s3 bucket and multiple dynamodb table to lock each state file per environment? ❤
If a backend is being used, does that mean the workspaces and their respective state files will be stored in S3?
If we provision a stack with some resources with terraform for development team, how do we share passwords or grant access to them?
@abhishek please make vedio on for_each, count ,functions,map and conditions in terraform
Very nice video Abhishek, Now I'm getting into 7th Day successfully. 1 request- could you please make a video on the terraform certification preparation as well. A go-to guide at least.
Right now my focus is on job ready courses and not on certifications but some people were able to clear certifications by following these videos.
No issues, thank you
I really appreciate your commitment towards teaching even though you are unwell!! Get well soon❤!
I have a question:
Already an EC2 instace is created using the existing main.tf file and statefile is generated. If i want a 2nd instance to be created using the same main.tf without distroying/modifying the earlir EC 2 instance created and same state file has to be updated without using workspace concept what logic should be applied?
Just add the new resource block or increase the resource count
@@AbhishekVeeramalla Thank you
Thank you for sharing such an amazing content. I have a question here, so how can we maintain the state locking by using S3 and DynamoDB if we are using workspaces.
There is no difference, exactly same
Then How will write backend file for multiple env workspace to storing state file in s3 please answer me and if it's possible then make a video on it plzzzzzzzzzz
unfortunately, we have deleted out state file in staging env how we will recover. is there any options
Thanks sir , also sir please complete Argo cd & Argo workflows playlist after terraform , as I am only dependent on u 😢
Will cover
❤
Hi Abhishek , great videos. I learnt terraform from you and currently on a task of creating 100 + instances acoss different environment. Everything is going fine just one doubt. Say i have a Stg environment and i have created 4 instances already with similar configuration after a while i get a request of creating 2 more instances . Now if tstate.file exists will it not.modify the existing intsance instead of adding 2 more??
abhishek i came across one doubt how tf state file manged in backend for workspace...... so got the answer below is the backend code ...wokspace place holder in below code will dynamically create file for each workspace .....
if you get time you can add this one example video :)
terraform {
backend "s3" {
bucket = "your-terraform-state-bucket"
key = "terraform-state/{workspace}/terraform.tfstate"
region = "us-west-2"
dynamodb_table = "terraform-state-lock"
}
}
Hi Abhishek I have one doubt by using workspaces concept can create different environments, and it will create terraform statefile in local git repos.
But if we use s3 bucket to store statefiles. Then how this workspace concept will work
Hi Abhishek please make a video how to setup eks cluster using terraform
❤❤❤
😍
I have one question Abhishek bhai
As I can't keep these state files on local
So, I want to keep it on S3 bucket.
I will use terraform backend but how do I need to configure all the state files
Please reply
Hi Abhishek, I have written exact code but still getting error when I am switching the env..
Workspace "stage" doesn't exist.
You can create this workspace with the "new" subcommand
or include the "-or-create" flag with the "select" subcommand.
Kindly help
Hi Abhishek bro for a fresher perspective I mean those who are new to terraform , what concepts we need to give importance to the interview point of view , can u reply please
What ever I am covering in this playlist
😍
Thanks
Hi @AbhishekVeeramalla: general question, Resource created by terraform (EC2), if we update something manually on EC2 will it throw any error while we execute terraform again for any other update? because manually update change will not be available in state file right?
First of all it is not a good practice to update infrastructure manually. But if you have updated anything manually from console then you have to use terraform import command after adding the syntax in main.tf file. Once you apply import command it will update the state file with current state of infrastructure.
Hi Abhi Bro, getting below exception at 22:21 after we run terraform.apply
Error: Missing required argument
│
│ on main.tf line 13, in module "ec2_instance":
│ 13: module "ec2_instance" {
│
│ The argument "instance" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│ on main.tf line 16, in module "ec2_instance":
│ 16: instance_type = var.instance_type
│
│ An argument named "instance_type" is not expected here.
I am using the same code as mentioned in the video. Please suggest.
What is your terraform version ? Did you watch previous episodes ? Are those demos working for you ?
Thanks Abhishek, can we expect variable types and usage, and functions in this course?
we will cover, like today we covered map, previously we covered string and bool.
how do manage different configurations in prod in case we have multiple clients in prod and for every client the config is different.. lets say in prod I have pepsi, lays, dell etc and there instance type is t2.micro,t2.medium, t3.medium and m type machines etc.
You dont maintain same terraform scripts for all the clients.
You can use modules but repos should be different
Okay.. Got it. Thank you.
Hi Abhishek, can we create terraform code for already created resources, it was one interview question
Hope you are ok now . Take care and take rest
👍
bro similar to branch staragy (like dev, uat, prod) please correct me if iam wrong...
Yes u can think like that but not exactly same
Anna in terraform workspaces how to write terraform remote statefile configurations because we are deploying different environments like dev,stage and prod and then how to track all this environments changes in S3 bucket?
Just write the backend.tf as I explained in previous video and try. You will get it working
@@AbhishekVeeramalla if we deploy different environments in that case also it will create only one remote statefile right?
Hi Abhishek bro,
I have a doubt here. You have done everything with local(terraform.tfstate) file. But my doubt is, Will it work for the same Remote Backend(aws-s3,azure-storageaccount) also[i mean saving statefiles individually in remotely also or not]? Hope you will reply for it.
Thanks.
It will work exact same
@@AbhishekVeeramalla Thanks bro.
Why should we use terraform workspace when we can just copy paste the skeleton code of creating an instance into three different folders with different instance types...it will work same as workspace it self right?
Edit: Get well soon!!
What if you have 10 environments and 100 teams .. you will end up creating so many folders.
And lets say in future .. u need to make a simple change .. u need to update that n number of folders
I have explained all this in detail in the video. Pls check
Yes, now it makes sense, thank you
just waiting n you are here
😍😀
Hi Abhishek, I got a question in an interview, how do you know if there is any change in the infra without change in state file and how do you fix it.
Waiting for your response.
Explained in Day-8
I will watch, thank you Abhishek
Hi Sir,
At last, we have deleted the .tfvars file where we have stored AMI value and Instance_type value. But we have used a map and lookup for that instance_type and what about that AMI id? We didn't provide any hard coded value for AMI at last. How will terraform come to know about AMI value?
Hi, Where you able to find an answer for your question?
@@karthigabalamurugan5568 not yet
Hi Abhishek, along woth HArshas resume, can you share some more resumes?
Check telegram channel, there are other resumes
Abhishek... Upload the last video of Terraform
300K!!!!!!!!!!!!
waiting for eks cluster creation using terraform
Your Selflessness
One request as we can't come to hyderabad.. So i request u to plz record that meet up and session it will be helpful for others
We are planning online event don’t worry
you are always teaching only very simple concepts here u created directly ec2 but bfore that we need vpc, subnets , routables ,subnets association these are the basic components so we need these componets to create for multiple environments
Please watch all the episodes in order. We covered that already in day 2.
Here the concept is to understand environments.
at 34:37
terraform apply -var-file="dev.tfvars"
terraform apply -var-file="prod.tfvars"
Hi Abhishek bro naa LinkedIn invitation ni accept chei bro waiting for past 1 .5 month onwards kindly accept my connection bro
Already accepted
@@AbhishekVeeramalla ledu Abhishek Anna adi old di hack aindi acc kindly check in LinkedIn comments also I messaged thee
@@AbhishekVeeramalla adi hack aindi kabbatte neeki nenu malli request cheyalsi vachindi