You are creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this? A.
I think B is correct as you are configuring the provider not declaring it
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = "us-east-1"
}
The question seems to hinge on the word "needs" ... if it was asking for "required_providers" then they would need to nested inside a terraform block however none of the examples show the correct syntax for a required_providers block
terraform {
required_providers {
mycloud = {
source = "mycorp/mycloud"
version = "~> 1.0"
}
}
}
I'm going with B.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
keiffo2
Highly Voted 2 years, 2 months agodepal_dhir
Highly Voted 2 years, 2 months agosjokkorein
Most Recent 7 months, 2 weeks ago8876ca1
5 months agoalen995454
10 months, 1 week agoSpandrop
11 months, 1 week agoSpandrop
11 months, 1 week agoTyler2023
1 year ago