問題文
A configuration needs the official AWS provider. Where does the requirement belong so that the working directory can obtain the correct plugin, and what does the requirement have to state?
選択肢
- In a separate versions file that lists the plugin binaries to download, so that the working directory can be initialized without contacting a registry at all and the same binaries are reused across every configuration.
- In a provider block, giving the provider name and the version to install.
- In the backend block, since the backend by itself determines which provider plugins the working directory is allowed to use.
- In a required_providers block inside the terraform block, giving a local name and a source address such as hashicorp/aws.