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
UA-cam: / @abhishekveeramalla .
.
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.
Thanks
Thanks alot for contributing to the channel ❤️❤️❤️
abhishek is my NEW GURU.....i hope i will get job earlist possible...pray for me guys
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 UA-cam or Udemy or ACloudGuru. U r too good! Thank you so much for this selfless service
Means alot Smriti 🙏
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.
🙏
awesome way of explanation Abhishek thank you so much.
I think it was first video never explain the before .simple way to learn terraform for beginners
Glad to hear that
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.
Abhishek, Your way of explanation is simply awesome. TBH, I got intrest to learn devops only because of your videos and crystal clear explanation
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.
great content for freshers and intermediate level.make the video of functions as well
"Although 'thank you' is all I can say, it doesn't seem enough to express my gratitude."
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.🙌
Awesome video . best teacher award goes to abhishek veeramalla
Means alot .. Thank you
Happy to be a part of learning with you brother , I loved the way you've explained the terraform and other topics. I have become a fan of your teaching method wish you all the success in life and keep motivating. I have already recommended this channel to some of my friends and will keep doing that for rest of the topics
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!
Awesome explanation Abhishek, really having a good time learning DevOps!!
Thank you so much for such a detailed guide on Terraform✅💯
Glad it was helpful!
Thank you so much for your work...Hope This will continue further...
Yes it will
Awesome. Please share the videos with your friends
Thanks a lot Abhishek :-) . Excellent video. Really helpful.
Thank you for the great work, very clear and you are amazing
You are very welcome
Informative Video. Thanks for sharing it.
Glad it was helpful!
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
Thanks Abhishek . explanation method makes easy to understand. thanks much🤝
Welcome
Thankyou so much Abhishek❤
Thank You Abishek for your valuable time ❤
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
Really good video Thanks Abhishek
made it to day 17. thanks abhishek for making this awesome course
Thanks alot .. please share if you like the videos.
Thanks for your Efforts sir !!
you are the best teacher Ever !!
Thanks alot
it is helpful thank you so much.
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 😊
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!
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!!!
Amazing explanation...Thank You
Glad it was helpful!
Awesome. Please share the videos with your friends
awesome sir, excellant teaching.
You're welcome 😊
I learned a lot of content from this video thanks a lot sir
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
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?
Vachina 3 days gap ni single video to cover chesaru boss, Thanks for the video
Haha .. Thanks
great explanation....
Hello Abhishek, Tons of thanks for this DevOps series. Is this video of Terraform enough to crack interviews?
learned a lot i will try to write a blog on hashnode thanks a lot abhishek sir
Sure 😊
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
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...
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
you're doing a great job sir
You are welcome !!
Thank you❤
Hi Sir
Thanks for your Efforts Sir, can you please share the GIT HUB REPO link which you are used in this video.
Super Excellent video
Thank you very much!
Your playlists are really helping me a lot thank you so much anna. Easy and understanding thanks once again.
You're most welcome
this session was sooo good
Great session ❤
Thank you 😁
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 !!!
You're welcome!
You are great bro👌
Thanks alot
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.
wonderfull video
Most Welcome !!
can you explain the jenkins pipeline for terraform using init validate plan and apply
excellent 💯
Thanks 💯
Nice explanation
Keep watching
#Question
how do we decide the required version of the terraform CLI?
are there any specific parameters or something?
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?
can you please make a tutorial on how to implement terraform modules (and reference modules in other modules) with a simple example
Noted
Xoss
Thanks!
Thanks for supporting the channel
Home Work Done!
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
Which video are you referring to for "Terraform interview questions??"
❤
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 ?
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 ?
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 Abhishek,
can anyone please explain whenever we run the local/main.tf the ec2 is getting terminated and creating the new one anything else I missed here.
If it’s terminate each time by running the local/main.tf it will be problem right..
Hi Abhishek,
Thanks for providing this valuable content.
These are the some of the issues found while installing the terraform in Linux(Ubuntu Destro).
1)Able to install the terraform with sudo snap install terraform --classic, but the version is installed is lower than the latest version. When trying to install the updated version, getting gpg error NO_PUBLICKEY_FOUND with AE3B12.....
if possible can you help me to rectify this issue.
2) I had a question, what is the difference between the blocking and executing using the DynamoDB and cron jobs.
3) Please Add Terraform destroy to destroy the infrastructure created using the Terraform.
Hi sir I have installed my terraform on windows. But I was not able to pass the command terraform init in my local machine
Can you make a simple video on Ansible, i am not confident on that
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?
Congars Abhi Anna 200K Subscriptions.
Thanks
@@AbhishekVeeramalla Anna Meru Hyd Uppal area side vonnaru kada ?
Abhishek,If we delete the state file from S3 what will happen?
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.
statefile is created at only one time or either when we are run "terraform" command at every time
Only once
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
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.
Hi sir, i cant able to push large file to github ... What to do .. i have even tried installing lfs but also not working.. please help
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.
Which certificate is best for beginner level in terraform
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.
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
hey did you pushed it into git bcoz i am not able to push???
Day-17 Done ✅️
Great
how can i download that file? the slides? thank you!
sir is it a good practice to make a seperate file for terraform block too which has provider info??
Yes
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
Hey Abhishek,to create a new instance do we have to delete tfstate file?
No
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
Hi. After creating an EC2 instance on AWS with terraform is it possible to SSH from that instance? I was successfull while creating the instance but while tried to connect to SSH, the error message says YOU DIDINT HAVE KEY PAIR WITH THIS INSTANCE. Please response. Thanks a lot.
you have to add the key during write code , which is alredy dowloaded in your local system