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😍❣.
@@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.
To all who are searching for the output after applying: create a output variable file in the root directory and refer to the variable using module.module_name.output_variable_name_in_module..... like output "public_ip" { value = module.ec2_instance.your_output_variable_in_module } Thanks Abhishek for educating us....
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.
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.🎉
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.
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😊❤
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😁🤝
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
❤❤Pranam Guruji❤❤ this Terraform series is getting more interesting. It was fun reading the modules. After reading the modules everything seemed easy🚀🚀
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!!
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.
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
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
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 ?
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.
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?
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
The module part didn't give the output of the public ip of ec2 instance created because Abhishek did not create another output.tf file outside the module folder, The output.tf file should have been like this, output "ec2-public_ip" { value = module.ec2_instance.public-ip-address }
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..?
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 ?
Hi Abhishek, I have just started to learn terraform really liked your videos and currently at Day 3 of terraform zero to hero series of yours. I have one small question, If we use module from different private github repo, how will be authentication part done! can you please let me know.
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.
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.
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 ?
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 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 .
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?
Hi Abhishek, Thank you so much for this wonderful tutorial. I am having one doubt. When you done the practical for the modules part in the video we have two main.tf files one is in the root directory and the other one is inside the modules/ec2_instance directory and in both of the main.tf you have added the provider. Do we really need that provider in both main.tf files or is it enough only in root main.tf file. Can you please suggest the best practice?
You only need to define the provider in the root main.tf file most of the time. This way, all child modules can use it without repeating. However, if a child module needs to use a different provider or if you want to keep it clear for reuse, you can add the provider in the child module too. But for simplicity, stick to just the root file when possible.
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
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?"
I query about modules as per below mentioned methods which way is better to deal methode1 =,most of the people maintain single main.tf and write modules outside main.tf and import it same for example I will write a code for ec2 with ec2moudle and import every time in main.tf when ever need to create new ec2 instance methode2 create a sperate folder like dev, prod maintained individual dev_main.tf and prod_main.tf for each environment. where as main code will write in main.tf so that can I import same code as single module in dev_main.tf or prod_main.tf with different terraform.tfvars.
bro can u done Monitoring vedios especially the students get stucked in industries , kube prometheus and opentelemtry and alerting with msteams slack etc ,
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 ?
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
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?
If you observe at 44:01 the output is not shown to user when he/she used modules. If I want to see the output their like earlier what should I do? Please respond.
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.
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?
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
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
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 ?
Hi Abhishek anna Anna I am trying to practice this modules but when I try to execute apply command it gives me Invalid AMIID error anna but I am giving correct ami id from my AWS account how can I rectify this error anna
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.
To all who are searching for the output after applying: create a output variable file in the root directory and refer to the variable using module.module_name.output_variable_name_in_module.....
like
output "public_ip" {
value = module.ec2_instance.your_output_variable_in_module
}
Thanks Abhishek for educating us....
Thanks Mate.
Ya , This is the way it seems. 👍
thanks
Thanks
After I created my first aws instance with terraform, I felt joy. Thanks to you!
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!
No b lie...
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
Because of you sir ......i am able to learn terraform in so much detailed ....Thank you so much
You are most welcome
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 🤩
Very clear explanation, thank you so much for bringing this terraform series abhishek.
Thank you Abhi. You are my DevOps hero
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 😀
I am clear about Terraform Modules. Thanks Abhishek sir.
You are most welcome
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
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😊❤
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😁🤝
😍😍😍
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
You are doing an amazing job. Thank you from the bottom of my heart.❤
You are so welcome
❤❤Pranam Guruji❤❤ this Terraform series is getting more interesting. It was fun reading the modules. After reading the modules everything seemed easy🚀🚀
😍😍
excellent explanation of modules concept with example
Glad it was helpful!
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 😀
Wow ... finally got a worthy tutorial to learn terraform...
Thanks for dedicating your time and effort
My pleasure
Ur content is next level
Thank you sir🙏
Most welcome
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.
Exceptional training 🙏🏻🙏🏻
Thank you 🙌
very much addicted to your videos , learning a lot from this. Please do not stop your contributions at any cost 😀
Thanks, will do!
I addicted to your Devops classes ❤ if I have 10m time my hand take me to TH-cam and typing Abhishek veeramalla
Keep rocking
Delivery is good. Thank you.. able to grab the Modules concept
Abhishek sir is always best ❤
Great video Abhishek,your way of explanation was too good.
great content for free thanks for you efforts
My pleasure!
Very well-organized session.
😍😍😍
Congratulations Abhishek for 1 lacs subscribers...you deserved for this..
Thank you so much 😀
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
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
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!
Thank you for great video
You're welcome 😊
Thanks for this nice explanation, you are next Khan sir 😍
simply excellent. kudos
Another great video abhishek. Hats of to you for your dedication and your efforts. Keep it up.
Thanks a ton
Excellent teaching
Thank you so much 😀
Excellent 👍
great work so much helpful thank you much 👏🙏
Vera Level
👍
Thanks Abhishek
Most 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
very informative and thank you so much!
Glad it was helpful!
No words to describe you annaya😊
Thank you so much 😀
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 ?
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
best tutor
Thanks
loved it....❤❤❤❤❤❤❤❤❤❤❤❤
@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
First view bro❤
🤩
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
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.
Super bro , love your content :)
Thank you so much 😀
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!
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 module part didn't give the output of the public ip of ec2 instance created because Abhishek did not create another output.tf file outside the module folder,
The output.tf file should have been like this,
output "ec2-public_ip" {
value = module.ec2_instance.public-ip-address
}
Thanks, I was stuck on this 😊
Thank you ^^
You're welcome 😊
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..?
thank Abhishek for your selfless teaching, why output is not shown when we modularized the project?
DAY-3 Completed 🧭
😍
Thnx for the tutorial sir plz make avideo on 3 tier architecture application using terraform and aws
sure, will try
Beautiful Anna
Abhishek please at the end make video on one project on terraform covering all complex topics of terraform
sure, will try
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
thank you so much for the video .. if need to launch two instance with same module whether we need to use for each or anyother options is there?
Completed...!
Hi Abhishek,
I have just started to learn terraform really liked your videos and currently at Day 3 of terraform zero to hero series of yours.
I have one small question, If we use module from different private github repo, how will be authentication part done! can you please let me know.
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
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.
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 ?
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
Hi @Abhishek.Veeramalla, where we can store our modules in production env. which is the best practice.
thanks
thankyou sir
Most welcome
super like
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
}
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?
thanks :)
Welcome!
Hi Abhishek, Thank you so much for this wonderful tutorial.
I am having one doubt. When you done the practical for the modules part in the video we have two main.tf files one is in the root directory and the other one is inside the modules/ec2_instance directory and in both of the main.tf you have added the provider. Do we really need that provider in both main.tf files or is it enough only in root main.tf file. Can you please suggest the best practice?
You only need to define the provider in the root main.tf file most of the time. This way, all child modules can use it without repeating.
However, if a child module needs to use a different provider or if you want to keep it clear for reuse, you can add the provider in the child module too. But for simplicity, stick to just the root file when possible.
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
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.
Anna one question! after completing this series with best practices can we attempt and qualify in HashiCorp Certified: Terraform Associate (003) exam?
I query about modules as per below mentioned methods which way is better to deal
methode1
=,most of the people maintain single main.tf and write modules outside main.tf and import it same
for example I will write a code for ec2 with ec2moudle and import every time in main.tf when ever need to create new ec2 instance
methode2
create a sperate folder like dev, prod maintained individual dev_main.tf and prod_main.tf for each environment.
where as main code will write in main.tf so that can I import same code as single module in dev_main.tf or prod_main.tf
with different terraform.tfvars.
bro can u done Monitoring vedios especially the students get stucked in industries , kube prometheus and opentelemtry and alerting with msteams slack etc ,
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 ?
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
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?
same queries man you got the answers?
❤❤❤
Thanks
If you observe at 44:01 the output is not shown to user when he/she used modules. If I want to see the output their like earlier what should I do? Please respond.
U have to create a new output.tf and reference it
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
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?
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
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
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
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
while running the modularized the instance -> Terraform apply doesn't gave any Output (ip_address of instance) ???
Hi Abhishek anna
Anna I am trying to practice this modules but when I try to execute apply command it gives me Invalid AMIID error anna but I am giving correct ami id from my AWS account how can I rectify this error anna
Strange
@@AbhishekVeeramalla for me also anna
Finally I found the reason why it is showing that error anna