the odc_eks/cloud_front_distribution.tf currently declares a aws provider for region us-east-1 as this is required for cloudfront. Unfortunately the explicitly declared module provider means you can't specify AWS credentials for the provider to use from the caller.
The correct approach is to use a Module Provider Alias in the module and then have the caller provide the AWS Provider like this:
Why this change is needed
the odc_eks/cloud_front_distribution.tf currently declares a aws provider for region us-east-1 as this is required for cloudfront. Unfortunately the explicitly declared module provider means you can't specify AWS credentials for the provider to use from the caller.
The correct approach is to use a Module Provider Alias in the module and then have the caller provide the AWS Provider like this:
Details can be found at https://www.terraform.io/docs/configuration/modules.html#providers-within-modules
Negative effects of this change
Yes, callers will need to declare a us-east-1 aws Provider and pass it in via the providers block in the module call.