Valid TA-002-P Dumps shared by ExamDiscuss.com for Helping Passing TA-002-P Exam! ExamDiscuss.com now offer the newest TA-002-P exam dumps, the ExamDiscuss.com TA-002-P exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com TA-002-P dumps with Test Engine here:
Your team has started using terraform OSS in a big way , and now wants to deploy multi region deployments (DR) in aws using the same terraform files . You want to deploy the same infra (VPC,EC2 ...) in both us-east-1 ,and us-west-2 using the same script , and then peer the VPCs across both the regions to enable DR traffic. But , when you run your script , all resources are getting created in only the default provider region. What should you do? Your provider setting is as below - # The default provider configuration provider "aws" { region = "us-east-1" }
Correct Answer: C
Explanation You can optionally define multiple configurations for the same provider, and select which one to use on a per-resource or per-module basis. The primary reason for this is to support multiple regions for a cloud platform; other examples include targeting multiple Docker hosts, multiple Consul hosts, etc. To include multiple configurations for a given provider, include multiple provider blocks with the same provider name, but set the alias meta-argument to an alias name to use for each additional configuration. For example: # The default provider configuration provider "aws" { region = "us-east-1" } # Additional provider configuration for west coast region provider "aws" { alias = "west" region = "us-west-2" } https://www.terraform.io/docs/configuration/providers.html