Much of the reasoning behind these limitations is shared in the following discussions:
- Use external tooling (e.g. scripting with Bash or PowerShell) to generate
*.tffiles with all of the needed
- Use the
tfeprovider to dynamically create Terraform Cloud/Enterprise Workspaces per distinct provider configuration. These Workspaces can then be configured with the needed environment variables to configure each distinct provider configuration. For example, if needing to create multiple AWS Provider configurations per region, the AWS Provider can make use of the
AWS_DEFAULT_REGIONenvironment variable to set the working region.
- Use the CDK for Terraform. This tool allows you to generate and run Terraform configurations using the language of your choice, granting the flexibility to use language features like "for" loops to define dynamic provider configurations.