Day-3 | Terraform Modules | Write your First Module |
Вставка
- Опубліковано 13 вер 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.
Contribute to the channel
topmate.io/abhishek_veeramall...
Doubts Clearing Group
www.youtube.com/@AbhishekVeer...
Instagram: / abhishekveeramalla_off...
GitHub Repo for the Series
github.com/iam-veeramalla/ter...
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 - Розваги
I have failed to answer terraform modules questions in couple of interviews. Abhi bro, Now your video made my day better to answer for those questions😎. Thanks is a small word for your efforts, We are simply love you bro😍❣.
Great 👍 .. Glad that it helped you.
very nice news . Did you able to clear the interview now ?
Hi,are you getting interview calls these days?
@@sireeshadasari2453no
@@AbhishekVeeramallaI am network engineer, having 10 months of experience, I am applying for devops even I am getting regret mails I am not getting shortlisted, 😢how to get job for devops for freshers. I am really worried🥺I am following your video. And learning.
Very clear explanation, thank you so much for bringing this terraform series abhishek.
i.m amazwd by the quality and simplicity of your content sir, I'm learning devops from the past 1 year, your channel makes my deevops learning easier
Glad to hear that
Delivery is good. Thank you.. able to grab the Modules concept
Wow! I have had issues understanding this concept of modules practically, even with paid videos. But after watching your Terraform zero-to-hero video for Day 3, the concept of modules became as clear as crystal! Thanks Abhishek...you really can teach! Thank you for the good job you're doing.
You're very welcome!
simply excellent. kudos
Because of you sir ......i am able to learn terraform in so much detailed ....Thank you so much
You are most welcome
The way you are managing your schedules for videos with your work is amazing. Nd it's obvious that to deliver such an amazing Content you must be going through learning process from various sources. Hats off to you Bhaiya!!
pick up any video from your channel, and boom. Tysm for such a great content!!
Thank you so much 😀
When you start teaching DevOps concept it is very interesting to learn and grab the concepts very easy. You won't believe Abhishek sir, when I start watching your You-tube channel I have got interest in learning DevOps. Thank you Abhishek Sir😊❤
Great video Abhishek,your way of explanation was too good.
Exceptional training 🙏🏻🙏🏻
Thank you 🙌
You did a great job. I just wanted to check if you have included the important part in your upcoming training videos on how to avoid destroying previously created resources when adding or modifying resources.
I am clear about Terraform Modules. Thanks Abhishek sir.
You are most welcome
You are doing an amazing job. Thank you from the bottom of my heart.❤
You are so welcome
excellent explanation of modules concept with example
Glad it was helpful!
Thanks allot Sir for your efforts to make us understanding Modules. After watching this videos , i'm able to write my own terraform script for my project just adding the required inputs by reffering the customised modules from our infrastructure team.
Thank you so much Sir for detailed lecturing.🎉
This is awesome 🤩
liked shared and subscribed for further reach to audience. keep up the good work and Thanks a ton. Great teacher! you know the art of teaching!
Wow ... finally got a worthy tutorial to learn terraform...
Thanks for dedicating your time and effort
My pleasure
You are making us more educated by give this type contents. Now we will give interview without any fear. We feel more confidante .Me and my Friend always talk about you series we also share and update if someone misses any video, actually we are enjoying your process. Thank you so much😁🤝
😍😍😍
Very well-organized session.
😍😍😍
It will be very very helpful if you can kindly make a complete separate video on what are the tools and plugins required for writing all types of codes in Terraform for AWS Infrastructure Administration and troubleshooting and monitoring and mauntainence and management of FSX logic ONTAPP storage backups in AWS using Terraform
very informative and thank you so much!
Glad it was helpful!
very much addicted to your videos , learning a lot from this. Please do not stop your contributions at any cost 😀
Thanks, will do!
Ur content is next level
Thank you sir🙏
Most welcome
Abhishek sir is always best ❤
Another great video abhishek. Hats of to you for your dedication and your efforts. Keep it up.
Thanks a ton
Thank you for great video
You're welcome 😊
with watching at 1.5x but great content. anything like this when free is just fabulous. Thanks for creating good tech content.
Thank you so much 😀
Hi Abhishek sir,
this video made me little confusion but i watched it 2times after that i understand and created terraform project.
thank you abhi sir.
Awesome
Abhi,The commitment and dedication of doing the course video is exceptional in spite of your busy work schedules and personal things...take a bow brother
Thanks a ton
great content for free thanks for you efforts
My pleasure!
Excellent teaching
Thank you so much 😀
❤❤Pranam Guruji❤❤ this Terraform series is getting more interesting. It was fun reading the modules. After reading the modules everything seemed easy🚀🚀
😍😍
Very informative video. Completed hands on practice of this video. If possible make a video on Data Sources in terraform. Data sources are not cleared when I was doing that part.
Congratulations Abhishek for 1 lacs subscribers...you deserved for this..
Thank you so much 😀
loved it....❤❤❤❤❤❤❤❤❤❤❤❤
Thanks Abhishek
Most Welcome
No words to describe you annaya😊
Thank you so much 😀
Hi Abhishek, first of all thank you for providing such good content. I have one doubt, you mentioned that we can maintain the modules in different private GitHub repo. So how do we configure the GitHub credentials to access these modules in our Terraform script especially when we are deploying our infrastructure using Jenkins pipeline. Thank you
Thanks for this nice explanation, you are next Khan sir 😍
Vera Level
👍
I addicted to your Devops classes ❤ if I have 10m time my hand take me to UA-cam and typing Abhishek veeramalla
Keep rocking
@AbhishekVeeramalla in the day3 concept while executing with modules it does show the output of the public ip of the instance
yes i got same error did you found any solution for that
Abhishek, your effort is remarkable and hope for lots of learner. I have clear lots of my doubts.
Any chance for Ansible playlist..
Thanks alot
Hi abhishek, when we do terraform apply at last after creating modules, output is not coming in console.. do we need to explicitly mention it in case of modules..?
Super bro , love your content :)
Thank you so much 😀
thanks
Thank you so much for the training videos! I really appreciate the effort you put into explaining the topic. It's incredibly informative and valuable to me.
Could you please let me know why the output was not generated when we created the EC2 instance using the module?
You're very welcome!
Thank u for the great and clear explanation Abhishek.
I have a doubt when I called the module, it worked well but what about the output variable? I didn't get that in the output. Do we need to add something extra for output variable to work ?
This is one of the simplest explaination I could ever found on the modules !! just one question in my mind ; how would the Developer know that what are the required values that need to be added by the developer while using the module ?
Amazing session! At the end I saw that the output was not present while using terraform module. So, tried to do it from my end. Just in the root main file add below output block - Note: this output variable name should not match with that inside ec2_instance module.
output "public_ip_address_latest" {
value = module.ec2_instance.public_ip_address
Nice work!
nice bro,thanks
Thank you ^^
You're welcome 😊
best tutor
Thanks
Thnx for the tutorial sir plz make avideo on 3 tier architecture application using terraform and aws
sure, will try
Hi @Abhishek.Veeramalla, where we can store our modules in production env. which is the best practice.
thanks :)
Welcome!
Hi Abhishek, Thanks for another awesome course. If it's possible can you please add a session on Terraform cloud as well within this course.
will try
abhishek i have seen shell scrpiting two videos but can make a video on real time content of shell scripting @@AbhishekVeeramalla
Anna one question! after completing this series with best practices can we attempt and qualify in HashiCorp Certified: Terraform Associate (003) exam?
thankyou sir
Most welcome
Doubts:
1. Is the terraform.tfvars file not required anymore when we are using modules to define the resources in main.tf, or we can create an give the path of that file aswell?
2. why we didn't got the output shown when we did terraform apply with the modular approach?
How do you print output values when consuming the modules. You have defined the output variable but that didn’t show the public ip in the output
Please suggest any video related to Real time monitoring for Docker and Kubernates
can you teach us that how to make terraform in virtually all these things
for example creating ec2 instance and connecting to mobaextram and there installing terraform and using terraform virtually with aws
46:20 when u did terraform apply ..... why didnt u get the PUBLIC IP at the output ?
even tho output.tf file is present inside the modules? Can u please let me know
The output public ip address not shown after executing terraform apply command from output.tf. is there any different way to do it ? rest was the best video
Thanks for the wonderful video Abhishek. I have a doubt on output variable
outputs.tf is under the module folder so when the main.tf(of Day-3 folder) is executed this outputs.tf is not executed. From your videos I can see public IP address is not printed when apply is executed. Can you please let me know how can we execute outputs.tf while using modular approach?
First view bro❤
🤩
hi abhilash , great video , but in interview i got a question , suppose you have module which we created and or from hashicorp , so in X enviroment you want a resource but in Y enviroment you dont want that resource , how to avoid the any unwanted resources in modules ?
Hy Abhishek sir thank you so much for this video please make a microservices video i facing issues with microservices
what issue ?
@@AbhishekVeeramalla multiple questions regarding microservices in my devops aptitudes exam
if i created a subnet by writing infra.. then how can i keep that subnet id value in this module syntax.. pls tell me bro..
ok i have a question here when we actually edit tfvars it will either replace the current instance ryt so how can we use tfvars for 2 or more instances without deleting the current one
can you please explain how can we create the ec2 instances in different regions by using varibles concept
Hi Abhishek, thank you for the great explanation. I am bit new to terraform. I have a question: can we use terragrunt which can easily handle modularity and dependency in terragrunt.hcl ? Could you please share your thoughts ?
Yes you can
while running the modularized the instance -> Terraform apply doesn't gave any Output (ip_address of instance) ???
Hello @Abhishek.veeramalla, I'm confused about the main.tf file in the module. Why did we create another main.tf file outside? Can't we pass another argument within the same module's main.tf file instead of specifying the module and source separately? OR Can we pass input and output variables in modules?"
Hello Abhishek How to be updated in Devops comunity day to day with the tools integration and upcoming strategies in DevOps.
Abhishek please at the end make video on one project on terraform covering all complex topics of terraform
sure, will try
in defining the modules section, can't i just write below code in my main.tf file and the terraform would fetch the instance type and AMI ID from the terraform.tfvars from the folder ./modules/ec2instance ??? Or Do I need to pass these variable values in the main.tf file itself? Please let me know
provider "aws" {
region = "us-east-1"
}
module "ec2_instance" {
source = "./modules/ec2instance"
}
Hi Abhishek, Immense thanks for creating this course and sharing. I do have question on modules. When you ran the module code for reusability, terraform apply did not return the public IP as it should because we have configured it in ec2_instance module. I know I am being beginner at these things but I wanted to know about that.
.
Ya same for me also #abhishekveeramalla terraform apply did not return the public IP as it should because we have configured it in ec2_instance module.
I have added following as Output block in my terraform module
output "public_ip" {
value = aws_instance.ec2_tf.public_ip
}
output "instance_id" {
value = aws_instance.ec2_tf.id
}
when I am calling module resource i.e. EC2 instance is successfully created but output is not displayed in terraform when module is called successfully. How to display output when module is called?
Doubt: if we are passing the values of the variables in the modules instead of tfvars , isn't it violating the security?
Can we refer a module from private registry/repo and use it in public?
After creating this all, atlast Iam not able to see output in the terminal. I also saw in your video that there is no output in the terminal. please explain me why?
But after the execution of apply the module the output (public ip) is not show?
Hi buddy do you have eks module for cluster creation ?
DAY-3 Completed 🧭
😍
Abhishek, I'm trying to book slot for resume review with you but the dates are available from May 10. Is it possible for early slot?
Hi Abhishek,
Thanks for the wonderful video,
But one doubt when you are using module in last section to create instance , in the terraform apply output it didn't displayed output section , public IP of the instance ? But it's already declared in module.
It will be great if you answer this @abhishek
Quick query is Terraform used only in cloud environment ?
Hi Abhishek I have to create module folder in day 3 but when I search source it doesn't show day 3 it shows remaining days plse help me
bro can u done Monitoring vedios especially the students get stucked in industries , kube prometheus and opentelemtry and alerting with msteams slack etc ,
Hi Abhishek. The Output value is not displayed in the Command Line after modules are created, can you please explain how to get the output when module are used? Thanks
Even for me also output IP is not displayed
Also if possible plz make hands on project on : provision RDS Instance in VPC private subnet, create IAM role, policy & provision EC2instances having IAM role attached & permissions to read & write data to S3 buckets. Thanks.
yes this kind of things are really needed.. they are being asked in interviews . 🙂
looking forward for this kind of project
Thanks for the wonderful session @Abhishek.Veeramalla . I have one question : May i know why we have not got the output of "Public IP Address" as out once AWS instance is created using module. I am referring to 45:00 min of this vedio . Whatever it is ,the reason , i am learing everyday a vedio of yours and really making a good progress .
Create another outputs.tf file in the porject folder and enter below -
output "ec2-public_ip" {
value = module.ec2_instance.public-ip-address
}
@AbhishekVeeramalla : Could you help me how to apply if else condition in modules.
I have to build virtual machines in Vmware . I have 2 Vcenters in my environment . Based on my JSON input (If I mention vcenter_server name as Vcenter1 , it should go to Vcenter1 and create Virtual machine ) and (If I mention vcenter_server name as Vcenter2 , it should go to Vcenter2 and create Virtual machine ).
Note : Iam using count in my main.tf file to create multiple virtual machines.
Very informative Anna. But in that module topic we have created main.tf and passed the values by referring the ec2 module. But it has not given public ip as output. 45:20
same question...
The root module does not declare a variable named "instance_kind" but a value was found in file "terraform.tfvars". If you meant
│ to use this value, add a "variable" block to the configuration.
im getting this error
Hi abhishek, in this video when you implemented the modules, I observed the output ( IP_address) you declared in the output.tf file did not display when you deployed the resources on terraform. Please how can I get it to display the output ?
Create a output.tf file outside of module.
Just put
Value= module.ec2_instance.public.ip
❤❤❤
Thanks
Provided i have knowledge of AWS and Azure; will this tutorial be enough to crack an interview.