Terraform Multiple Instances of a Provider - Terraform Certified Associate

preview_player
Показать описание
Terraform Certified Associate exam topic. How can you use multiple instances of a provider in a terraform file. Here we will learn how to create resources in different regions using same .tf file. We will be using alias with provider resource type. This is a important topic from "Hashicorp Terraform Certified Associate" certification exam.
Рекомендации по теме
Комментарии
Автор

very good explanation for terraform alias

rashmiseelamanthula
Автор

very good! fixed my issue! thank you for this

gwulfwud
Автор

Hello Alok sir, how are you.. after long long time seeing you. I was from class of BCA 2008 batch in Amrapali Institute where you came in 2007 to teach our class RHEL5 for 2 months. Found you as I am Back to learning Linux after roaming in multiple technologies... 😎😀

kunnu
Автор

Cool sir, came to this video after browsing a lot for simple thing. If you could help in knowing how to allow communication between these nodes (multi region network) that would be great Thanks !!

AshwaniKumar-uure
Автор

But still, we need to declare the resources twice for each provider. Can't we somehow use modules with provider alias? Can you please record another video as a continuation of this one?

atexnik
Автор

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.

geethareddy
Автор

I am creating a provider.tf file with two providers. One has no version constraints and another has contraints along with alias for azure. When I try to use, I am unable to use. Kindly help.

akashahuja