Variabel in source module

I I would like to do

locals {

URL = “https://github.alm.europe.cloudcenter.corp/cib-cross-services/aws-automation-tf-modules/archive/


module “redes” {

source = local.URL


terraform init


Error: Variables not allowed

│ on line 56, in module “redes”:
│ 56: source = local.URL

│ Variables may not be used here.

thanks in advance

Hi @jose.pinto,

This error message is correct. You need to specify the location of the module directly in the source argument.

yes I would like to use a variable instead of the value