Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam VA-002-P Topic 1 Question 12 Discussion

Actual exam question for HashiCorp's VA-002-P exam
Question #: 12
Topic #: 1
[All VA-002-P Questions]

The following is a snippet from a Terraform configuration file:

1. provider "aws" {

2. region = "us-east-1"

3. }

4. provider "aws" {

5. region = "us-west-1"

6. }

which, when validated, results in the following error:-

1. Error: Duplicate provider configuration

2.

3. on main.tf line 5:

4. 5: provider "aws" {

5.

6. A default provider configuration for "aws" was already given at

7. main.tf:1,1-15. If multiple configurations are required, set the "______"

8. argument for alternative configurations.

Fill in the blank in the error message with the correct string from the list below.

Show Suggested Answer Hide Answer
Suggested Answer: C

An alias meta-argument is used when using the same provider with different configurations for different resources.

https://www.terraform.io/docs/configuration/providers.html#alias-multiple-provider-instances


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel