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. B. C.
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, 6 months agodepal_dhir
Highly Voted 2 years, 6 months agosjokkorein
Most Recent 11 months, 1 week ago8876ca1
9 months agoalen995454
1 year, 2 months agoSpandrop
1 year, 3 months agoSpandrop
1 year, 3 months agoTyler2023
1 year, 4 months ago