Rahul, the main purpose of terraform data source is to read the resources created outside of terraform (Not in the same .tfstate file). If we create the resource using the same terraform file then we can read them directly e.g. value=aws-instance.myinstance.public_ip No need to go for data source. Or your intent was to create the resource outside of the terraform but you reduced the efforts and created using the same script? Correct me if I am wrong.
You mean outside of current configuration , we mostly use data source when we want to refer to the resources in other infra repos ( as we maintain different repo for each resource)
I am getting very much benefitted through your playlist. Examples are clear and very easy to understand.. would suggest to make a video of quick run up on certification questions, as there is fewer content on certifications aspect for Terraform. Thanks a lot :)
Noted. I will add to my checklist but to be honest the complete terraform playlist which i have prepared with the aim of sharing some practical knowledge and it will off course help you to get your terraform certification
Hello sir , appreciated your work Can you tell me if data-sources needed to output any value so what is the use of output variable or what is the difference between data-sources and output variable.? Thank you
I had basic knowledge in terraform and always find difficulties to understand this to advance knowledge of terraform. You made it very simple .Good work keep it growing like this.
Hi Sir, Thanks you for the video. I have small doubt for returning values we use data source but same this we can get through output also right? thank you
Excellent explanation with clear instructions. Thank you so much, Rahul. By the way, has anyone ever told you that you resemble Sundar Pichai? To me, you look just like him. :)😄😃
"myawsinstance" in the data section referring to which name? i mean already there a resource- EC2 instance created with the name "Ec2_example" in the previous section right? can you please clarify this point.
Hi rahul iam one of your subscriber learning terraform by watching your channel with that i have a question if we want to make changes in aws security group how can we do with terraform scripts? thanks in advance
Hi satish you can manage the aws security group but it is going to be a lot terraform script you need to write probably i could come up with some session. It would be really hard to explain everything in the comment section
Question - How do you pass a parameter to aws lamda in terraform . Essentially I created aws managed active directory, I need to pass the directory_id as a parameter to aws lambda( created outside of terraform by some body) which creates aws log group and subscription. My question is how to pass the parameter to aws lambda using terraform with that parameter lambda executes
Hi Rahul, Could you please help how to export data from one source to another using terraform with example( instead of AWS)? I am using commercetools with terraform in which import I run successfully.
Hi Rahul, thanks for the sharing. I'm using data source to fetch the instance ids. When I create cloudwatch dashboard and wanna refer to each values of data.aws_instances.XX.ids, how can I write the code? I use ${data.aws_instances.XX.ids[0]}, ${data.aws_instances.XX.ids[1]} and there should be a better way I guess.
I have an vpc and subnet and I have a public IP in aws. I want to create an instance in the existing VPC and existing subnet and ec2 instance have attach my public Ip i have in aws. Could you please help me on that using terraform.
Excellent Video, not sure why the views are less, Perfect teaching, now i understand clearly about the data source
Keep learning, more to come
Rahul, the main purpose of terraform data source is to read the resources created outside of terraform (Not in the same .tfstate file). If we create the resource using the same terraform file then we can read them directly e.g. value=aws-instance.myinstance.public_ip No need to go for data source. Or your intent was to create the resource outside of the terraform but you reduced the efforts and created using the same script? Correct me if I am wrong.
Agree
You mean outside of current configuration , we mostly use data source when we want to refer to the resources in other infra repos ( as we maintain different repo for each resource)
Thanks Rahul Wagh for the explanation. Excellent video.
This Playlist is awesome. Eagerly waiting for more topics. If possible please share a few demos over GCP as well.
Will upload soon
I am getting very much benefitted through your playlist. Examples are clear and very easy to understand.. would suggest to make a video of quick run up on certification questions, as there is fewer content on certifications aspect for Terraform. Thanks a lot :)
Noted. I will add to my checklist but to be honest the complete terraform playlist which i have prepared with the aim of sharing some practical knowledge and it will off course help you to get your terraform certification
Simple , easy explanation like pro ... !!
Glad it helped!
Excellent indeed as usual by Rahul !!
Hello sir , appreciated your work
Can you tell me if data-sources needed to output any value so what is the use of output variable or what is the difference between data-sources and output variable.? Thank you
Appreciate the playlist. Really helping me prepare for my interview
Greate good luck with your interview
I had basic knowledge in terraform and always find difficulties to understand this to advance knowledge of terraform. You made it very simple .Good work keep it growing like this.
Glad you liked it and enjoyed it
Hi Sir,
Thanks you for the video.
I have small doubt for returning values we use data source but
same this we can get through output also right?
thank you
Great session Sir
You are welcome
Very useful session Rahul. Thanks
So nice of you
can u please make a video on how we should handle keys in production environment
I am preparing a long lab session on hashi corp vault for handling the secrets
Many thanks for great video , Simple and the Best
Glad it helped
Hey Why not use Output variables? than Data resource in this scenario
Very well explained!
Excellent explanation with clear instructions. Thank you so much, Rahul. By the way, has anyone ever told you that you resemble Sundar Pichai? To me, you look just like him. :)😄😃
No i am not sundar pichai
Thanks @Rahul for this amazing video.
Glad you liked
Very Nicely explaned
Nice and concise !!
Glad you liked it!
"myawsinstance" in the data section referring to which name? i mean already there a resource- EC2 instance created with the name "Ec2_example" in the previous section right? can you please clarify this point.
Hi rahul iam one of your subscriber learning terraform by watching your channel with that i have a question if we want to make changes in aws security group how can we do with terraform scripts? thanks in advance
Hi satish you can manage the aws security group but it is going to be a lot terraform script you need to write probably i could come up with some session. It would be really hard to explain everything in the comment section
@@RahulWagh no worries. Thanks for your quick response
Could you please create a video on loops like count etc to create/refer multiple resources of same pattern .. Thanks very much for the videos
y aws always ? y not azure
Question - How do you pass a parameter to aws lamda in terraform . Essentially I created aws managed active directory, I need to pass the directory_id as a parameter to aws lambda( created outside of terraform by some body) which creates aws log group and subscription. My question is how to pass the parameter to aws lambda using terraform with that parameter lambda executes
Hi Rahul, Could you please help how to export data from one source to another using terraform with example( instead of AWS)? I am using commercetools with terraform in which import I run successfully.
Hi, how to increase ebs volume in terraform script?
Thanks for this video. It would have been wowww if you have explained where/how it is used...
Thanks for suggestions but sometimes it is hard to put everything in one session
How to use these data resources with terraform conditionals to commit plan or abort it, I would like to see that demo as part of this vedio.
Hi Rahul, thanks for the sharing. I'm using data source to fetch the instance ids. When I create cloudwatch dashboard and wanna refer to each values of data.aws_instances.XX.ids, how can I write the code? I use ${data.aws_instances.XX.ids[0]}, ${data.aws_instances.XX.ids[1]} and there should be a better way I guess.
Really appreciate 🎉🎉
Cheers
Thank you so much ❤
You welcome bro
I have an vpc and subnet and I have a public IP in aws. I want to create an instance in the existing VPC and existing subnet and ec2 instance have attach my public Ip i have in aws. Could you please help me on that using terraform.
Ty.....sir
Hi! is it posible to filter data sources by labels instead of tags?
I haven’t tried but I guess it should be possible using labels
How to use s3 bucket data resource?
can anyone tell me how to output list of ec2 instances of type t2.micro using data sources and filters, running on my aws account
Is the playlist completed?
Not yet there is still more to come
⭐⭐⭐⭐⭐