Day-17 |Everything about Terraform |Write Your First Project |Remote Backend |Modules |Interview Q&A
ฝัง
- เผยแพร่เมื่อ 28 ม.ค. 2023
- Support my work
www.buymeacoffee.com/abhishekprd Hi Everyone, Today's class (Day-17) is going to be about Terraform. We learn about most of the Terraform topics such as,
- Terraform Use-Cases
- Terraform Life Cycle
- Write your First Terraform Project
- Terraform State File
- Terraform Best practices
- Terraform Modules
- Problems with Terraform
- Terraform Interview Questions
Telegram channel
===============
t.me/abhishekveeramalla
About me:
-----------------
LinkedIn: / abhishek-veeramalla-77...
GitHub: github.com/iam-veeramalla
Medium: / abhishekveeramalla-av
TH-cam: / @abhishekveeramalla
Thanks
Thanks alot for contributing to the channel ❤️❤️❤️
abhishek, i have seen so much videos on devops and its tools. but the clarity i got from your videos is like way ahead. now i will never forgot what i have learnt. it is the best content for devops and cloud on youtube.
😍😍
Abhishek, u are an excellent teacher. after listening to your sessions i can't go to any other video tutorials in TH-cam or Udemy or ACloudGuru. U r too good! Thank you so much for this selfless service
Means alot Smriti 🙏
awesome way of explanation Abhishek thank you so much.
Hi Abhishek, This is such a nice and clean explanation. I have already learned terraform in some other channel but In your channel I have learned so many real time scenario based use cases.I really loved it.🙌
Thanks Abhishek for clear and crisp explanation! I was gettign error when I used same script but when I googled for the error then there I found a fix by using Hashicorp version 3.47.
Abhishek, Your way of explanation is simply awesome. TBH, I got intrest to learn devops only because of your videos and crystal clear explanation
u r really great thank you for your work.Everyone one can understand ur class .i think you already got lot of friends bcos of ur excellent work thank you so much.
Hi Abhi, You are too good. Thanks for making such a wonderful videos for community for free. People charge lot of money. Appreciate your efforts.
Welcome
Hi Abhishek, You are doing a lot of good to our techies with free of cost. Even If we purchase some course outside those will not compete with your teaching. I really appreciate your thought in providing videos for free of cost. Jai Hind.. Jai Bharath.
🙏
great content for freshers and intermediate level.make the video of functions as well
I think it was first video never explain the before .simple way to learn terraform for beginners
Glad to hear that
Awesome explanation Abhishek, really having a good time learning DevOps!!
Thanks a lot Abhishek :-) . Excellent video. Really helpful.
Awesome video . best teacher award goes to abhishek veeramalla
Means alot .. Thank you
Abhishek, You are the greatest tutor I have ever seen online. I credit my blog to you as everything Inhave learnt from my DevOps journeu is from you. I have recommended this channel to my friends too as there is a lot to learn from the approach you teach DevOps
🚀
Your work is truly commendable! The videos are concise and offer valuable insights into the subject matter. Your course content is fantastic - short yet comprehensive.
You're very welcome!
Thank you so much for your work...Hope This will continue further...
Yes it will
Awesome. Please share the videos with your friends
Thank you so much for such a detailed guide on Terraform✅💯
Glad it was helpful!
Informative Video. Thanks for sharing it.
Glad it was helpful!
Thank you for the great work, very clear and you are amazing
You are very welcome
Thanks Abhishek . explanation method makes easy to understand. thanks much🤝
Welcome
Thankyou so much Abhishek❤
Really good video Thanks Abhishek
Thanks for your Efforts sir !!
you are the best teacher Ever !!
Thanks alot
thank you. the task is to practice running the terraform scripts that you have in git to learn better.
There is also a dedicated terraform playlist on the channel
Abhi anna as usual u r morvelous..
No one explains us the topic as clear as u r...
Anna if you have a free time then plz a make a video on "wht are the real time errors will come on devops and how to troubleshoot them"
Sure Shaffi.. Thanks 🙏
Thanks Abhi❤.. really very good.. will try the task given by you .
Most welcome 😊
it is helpful thank you so much.
Hello Abhishek, Tons of thanks for this DevOps series. Is this video of Terraform enough to crack interviews?
Great explanation about terraform. If possible, pls make a complete Terraform session with GCP infrastructure project. Would really helps a lot for beginner. Thanks!
Great suggestion!
Vachina 3 days gap ni single video to cover chesaru boss, Thanks for the video
Haha .. Thanks
made it to day 17. thanks abhishek for making this awesome course
Thanks alot .. please share if you like the videos.
Amazing explanation...Thank You
Glad it was helpful!
Awesome. Please share the videos with your friends
awesome sir, excellant teaching.
You're welcome 😊
Considering any production critical scenario, would we land into updating the state file manually?
Or it is meant to be only read-only at any cost?
Hi Abhishek, can you please make a tutorial on how to implement terraform modules (and reference modules in other modules) with a simple example if you get a chance? Your time and efforts are greatly appreciated.
sure
I've been waiting since Thurday like a kid during Christmas.
Did u like it ?
@@AbhishekVeeramalla I love it! More and more I can picture myself in a work environment. I like the way you use examples like "they asked you to add a load balancer to the instances". To somebody who's not in IT, it tells me this is the kind of tasks that I might do day to day (which would help in interviews). Please continue to use these day to day scenarios as you teach us the tools. Thanks!!!
Hi abhishek thank you for your great work. I have one doubt. In this video where did you installed terraform and aws cli configuration ? Is it in your local machine ?
Hi Abhishek , video is really helpfull to learn terrafor basics, can you please do a video on terraform functions because this is very much asked in interviews..!!
Yes, soon
learned a lot i will try to write a blog on hashnode thanks a lot abhishek sir
Sure 😊
great explanation....
you're doing a great job sir
You are welcome !!
Hi Abhishek, great content good learning so far.... one request can you please make a video on what are the possible mistakes/errors which we occured while working on REAL TIME devops tools for example while running an ansible dry run we will get few errors and how did u overcome this errors.. any such videos will help us know in and out of devops on real time basis...
Super Excellent video
Thank you very much!
Hi Sir
Thanks for your Efforts Sir, can you please share the GIT HUB REPO link which you are used in this video.
Hi can u make a video with this ideal set up of terraform, just show us a pipeline with s3 + DynamoDB
Yes need help with that, I am brand new to IT space.
Dear Abhishek, can you please make video on how to setup dev qa stage and prod environments, and what would be the services installed on those environments
Noted
Thank you so much abhishek for fantastic explanation. As terraform creates multiple ec2 instances, how do we download those keypairs in order to connect to those machines?
Generally, during the creation of the machines, we would download the keypair but in this case, how do we download those keypairs and use them?
you should find it in state file
Thank you❤
00:06 Today's topic is about Terraform and its various aspects.
05:39 Advantages of Terraform
16:50 To use terraform, first initialize the provider and then write the terraform files.
21:49 Terraform initialization and required providers
31:50 Terraform requires authentication with the cloud provider CLI before use.
37:11 Creating output.tf file in terraform
47:54 Do not store or manipulate terraform state files locally
52:54 Always store the state file in a centralized location like AWS S3 for better management and avoid conflicts.
1:03:43 Implementing a remote backend using AWS S3 in Terraform
1:08:45 State file corruption and manual changes to cloud provider are major challenges with Terraform
Great session ❤
Thank you 😁
Your playlists are really helping me a lot thank you so much anna. Easy and understanding thanks once again.
You're most welcome
Congars Abhi Anna 200K Subscriptions.
Thanks
@@AbhishekVeeramalla Anna Meru Hyd Uppal area side vonnaru kada ?
Again out of the world explanation. But can you give example of module in one line ? I did not got those explained in Video ? That would be of great help if interviewer asked something about that.
We will cover that in the coming terrafrom zero to hero series
@@AbhishekVeeramalla till time we can say for code reusability we use modules right ?
You are great bro👌
Thanks alot
this session was sooo good
Hi @abishek . Thanks for your sharing . I would like to know one thing . In git while pushing the file from local repo to remote repo ,we used to mention the file name which beeds to be pushed from local to remote using below commands
git init
git add filename or .(Add all files)
git commit
git push origin branch
But in terra form ,in our scenario we have the file called master.tf which us having the scripts to create the EC2 instance . But if we have multiple terrraform files like first file will create the ec2 instance and the another one will create the s3 resource . How can we trigger only the second terra form file
Below cli commands will pick up all the terraform files from local ?
terraform init
terraform plan
terraform apply
excellent 💯
Thanks 💯
can you explain the jenkins pipeline for terraform using init validate plan and apply
#Question
how do we decide the required version of the terraform CLI?
are there any specific parameters or something?
Nice explanation
Keep watching
Thank You !!!
You're welcome!
wonderfull video
Most Welcome !!
Which video are you referring to for "Terraform interview questions??"
can you please make a tutorial on how to implement terraform modules (and reference modules in other modules) with a simple example
Noted
Hi Abhishek thanks for the free devops classes, able to understand how devops process is. When I'm using commands "init, plan and apply" I'm getting a error "Error aquiring the state lock". As I searched on google and stack overflow, getting answers like there might be another process running. I've checked no other process are running. As error suggests I did a "-lock=false" in the commands, it worked. My doubt is it a good practice to do that?
When the process is executed as you said it needs to create a terraform.tfstate file. I'm not able to see that file as well.
Home Work Done!
Hi Abhishek Thanks a lot for this Knowledge share.
having a doubt here what if we use multi cloud providers like AWS AZURE , will everything be saved in one state file only ?
if yes and if we are using s3 remote backend will everything related to azure resource creation details stored in AWS s3 ?
Annaiah, whatever you explained about, making our own DevOps project on "DevOps pe Charcha" wala call was difficult to understand and comprehend. can you please make a video dedicated on this? PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!! I am on that call. Na per - Satish Sutar
Sure .. Noted
@@AbhishekVeeramalla Thanks for the prompt reply
on creating the ec2 instances using terraform where we will get the key pairs that we used to generate when doing the manual creation?
U need to create the key value pair first
Next to the Downloads, it is followed by git:(argo-all-namespaces) x cd write_your_first_terraform_project.
I am a bit unsure of how to get git written after Downloads and also 'git:(main)' in the next line. Though I am able to fully follow up with this tutorial but I need help with understanding the denotation. The help I need with this is to make sure to display the current branch of the git I am working with.
did you get the solution bro ? coz i am also dealing with the same problem can anyone anwer please.
hi, can please tell me when i create remote state file and create S3 bucket and dynamoDb do i need to create an account for dynamodb?
Hi Abhishek.. Thank you for the great video. I just have one doubt, " at 1:04 you said, "append the backend details". I could not understand this part like in which file yo append the backend details and why?
Thanks!
Thanks for supporting the channel
Great video..I have one question. how to rollback to previous state in terraform. How to undo the changes in terraform? Please guide me
I think Terraform State is immutable. AFAIK, you will not not be able to roll back. Somebody canelaborate or can add more details here.
Hii, your videos are very nice. But this one is not for beginner friendly you have not shown many things just said I have shown how to create s3 or remote but not explained what is written, meaning. As a beginner this is very tough to understand please explain in detail.
statefile is created at only one time or either when we are run "terraform" command at every time
Only once
Which certificate is best for beginner level in terraform
Xoss
Day-17 Done ✅️
Great
Hi Abhishek
How you have shorten the directory path in the terminal whenever you're trying to switch the directory its displaying only short path?
Could you please explain how you're managing the short path
Timestamp: 31.25
Hi Harsha, I use ZSH on my Mac.
can you please make more vidoes on terraform or (terraform playlist)
Sure Zaffer
Abhishek,If we delete the state file from S3 what will happen?
can you please explain about yaml detail
How is state locking handled in Azure storage containers?
Azure storage blob lease mechanism.
medium.com/developingnodes/how-to-manage-terraform-state-in-azure-blob-storage-870a80917450
sir is it a good practice to make a seperate file for terraform block too which has provider info??
Yes
Sir, Can you share the PPT link in the description or in the pinned comments. Its looks amazing , It contains essentials for Hasicorp Certification.
Hi bro, I have question that, if we create a ec2 instance in linux in aws for free subscription account, if we use that instance to use it for terraform and kubernetes, will that be charged?
Hi Varun. If you are using with in the limits
1. 750 hrs for all Linux EC2 instances per all month.
2. Don't attach additional EBS volumes
@@AbhishekVeeramalla sorry anna, ardam kaaledu
Hi Abhishek if we isolate and store the tfstate file for each environment on S3 that doesn't increase the cost?
Not much .. we did that example in terraform zero to hero workspaces episode. You can watch that, you might like it.
Hi sir I have installed my terraform on windows. But I was not able to pass the command terraform init in my local machine
Hey Abhishek,to create a new instance do we have to delete tfstate file?
No
abhi anna,
statefile ni maniplation prevented, but what if we modify the resources in the cloud, does terraform identify those changes, if yes, let me know the any resources like blog or docs of that topic
Terraform cannot autoheal your cloud infrastructure drift
IN VPC , pls explain about cidr block, how to write ip's?
Explained in Aws playlist
AWESOME ! But, plz deliver words just a bit slower then we the audience could grab your lessons perfectly quicker..!! Thank You
Use TH-cam playback speed option as you require
can anyone explain about AMI ID written in terraform file,How did we declare it? from where we can check it?
You will learn about that in aws series once u complete devops zero to hero
Tried doing a Terraform init after the backed S3 was added to the main.tf, its asking to enter the "The path to the state file inside the bucket" Can anyone pls advise what needs to be entered here ?
there are four commands terraform init, validate, plan , and apply
hi abhishek, i got a question, how can we get the .pem file? because it is important to login to instance right. thanks in advance
yours, raja. love you from london.
Can you please provide the timestamp ?
@@AbhishekVeeramalla it is when creating ec2 instance using terraform. It is not giving any .pem file right?
Abhishek sir where we store the AWS access & secret key ....in git repository or local machine
U can store in any secure 🔐 apps or git secrets if you need them in pipelines .. Ensure you don't compromise the secrets
@@AbhishekVeeramalla can we use hashi corp vault for this?