QuestionQ65
Terraform configurationYou need to deploy resources to two different regions in the same Terraform configuration, using the block shown in the exhibit area on this page.
provider "aws" \{
region = "us-east-1"
\}
provider "aws" \{
region = "us-west-2"
\}
What must you add to the provider configuration to deploy the resource to the us-west-2 AWS Region?
- A resource “aws_instance” “example-us-west-2” {ami = data.aws_ami.ubuntu.idinstance_type = “t3.micro”}
- B provider “aws” {region = “us-east-1”}provider “aws” “west” {region = “us-west-2”}
- C provider “aws_west” {region = “us-west-2”}
- D provider “aws” {region = “us-east-1”}provider “aws” {alias = “west”region = “us-west-2”}
Community Discussion