# Variabel in source module

**URL:** <https://discuss.hashicorp.com/t/variabel-in-source-module/28753>\
**Category:** Terraform\
**Created:** [August 26, 2021, 10:50am UTC](https://discuss.hashicorp.com/t/variabel-in-source-module/28753 "2021-08-26T10:50:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose.pinto](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jose.pinto/32/16573_2.png) [@jose.pinto](https://discuss.hashicorp.com/u/jose.pinto)\
**Post date:** [August 26, 2021, 10:50am UTC](https://discuss.hashicorp.com/t/variabel-in-source-module/28753/1 "2021-08-26T10:50:56Z")

</div>

I I would like to do

locals {

URL = “[https://github.alm.europe.cloudcenter.corp/cib-cross-services/aws-automation-tf-modules/archive/v1.0.zip//aws-automation-tf-modules-1.0/infra/terraform/source/modulos/redes](https://github.alm.europe.cloudcenter.corp/cib-cross-services/aws-automation-tf-modules/archive/v1.0.zip//aws-automation-tf-modules-1.0/infra/terraform/source/modulos/redes)”

}

module “redes” {

source = local.URL

}

* * *

terraform init

ERROR MESSAGE;:

Error: Variables not allowed  
│  
│ on main.tf line 56, in module “redes”:  
│ 56: source = local.URL  
│  
│ Variables may not be used here.

thanks in advance

---

<div class="post-metadata">

**Author:** ![apparentlymart](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/apparentlymart/32/702_2.png) [@apparentlymart](https://discuss.hashicorp.com/u/apparentlymart)\
**Post date:** [August 27, 2021, 12:59am UTC](https://discuss.hashicorp.com/t/variabel-in-source-module/28753/2 "2021-08-27T00:59:05Z")

</div>

Hi @jose.pinto,

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

---

<div class="post-metadata">

**Author:** ![jose.pinto](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jose.pinto/32/16573_2.png) [@jose.pinto](https://discuss.hashicorp.com/u/jose.pinto)\
**Post date:** [August 27, 2021, 10:07am UTC](https://discuss.hashicorp.com/t/variabel-in-source-module/28753/3 "2021-08-27T10:07:28Z")

</div>

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