Terraform: Duplicate required providers configuration
With the changes made in #1867 to use required_providers, this causes an issue for projects that use additional Terraform configuration around what Chalice generates, and use providers outside of what Chalice specifies. Since Terraform version 0.13, only a single required_providers block is allowed. They will not get merged. So this means additional providers cannot be specified, or even just alternative provider constraints.
The way I have worked around the issue is that I place the Terraform configuration Chalice generates inside its own sub-directory within my other Terraform configuration and just treat it like a module. This means i need to specify additional variables.tf and outputs.tf where I need it but overall has worked well.
There may not be any programmatic changes needed for this, possibly some enhancements, but initially just maybe documentation changes and examples of how Chalice generated Terraform could be used in this case.
Thoughts?
Another option could be to use the Terraform override configuration features but I'm guessing that is less desired from a Terraform best-practices point of view.