問題文
A configuration must create a bucket in one region and a replica bucket in a second region, using the same provider type. Which approach expresses this correctly?
選択肢
- Declare two provider blocks of the same type, give the second one an alias, and set the provider argument on the resources that should use the second configuration.
- Split the configuration into two working directories, one per region, since a single working directory can hold only one configuration per provider type and the two buckets therefore cannot share a plan.
- Declare two provider blocks of the same type without aliases, one for each of the two regions, and Terraform will match each resource to the closest one in the file.
- Declare one provider block and set the region argument on each resource that needs the second region.