Problem
Publishing a new module version that utilizes configuration_aliases with the aliases in quotes will fail when using Terraform Enterprise 202106-1 or later.
Cause
This is due to a change in the module verification code that is invoked during the registration process, starting with TFE 202106-1
In the output of `docker logs tfe-registry-worker` or `docker logs ptfe_registry_worker` (for older versions of TFE), you will see errors like this:
2022-07-12T17:15:40.215363672Z 2022-07-12T17:15:40.215Z [ERROR] Non-retryable job error: job_id=5d8beedd9f54537ea5473f56 job_name=push_ingress_version
2022-07-12T17:15:40.215396210Z error=
2022-07-12T17:15:40.215401705Z | {*errors.errorString error loading the module: Invalid expression: A single static variable reference is required: only attribute access and indexing with constant keys. No calculations, function calls, template expressions, etc are allowed here. (and 2 other messages) (in versions.tf on line 5) github.com/hashicorp/go-hclog.Stacktrace
Solution
You'll need to search the module code for "configuration_aliases" and remove any quotation marks in the expression.
For example, if your code looks like this:
configuration_aliases = [ "mycloud.alternate" ]
It should become this instead:
configuration_aliases = [ mycloud.alternate ]