Include locals and all defaults for vars in terraform
bazylhorsey opened this issue · comments
Bazyl Ichabod Horsey commented
This snippet fails due to no locals, its hard to infer what these are. A local in variables.tf seems appropriate @jonra1993 .
env_vars = {
for obj in concat(local.fastapi, local.database, local.traefik, local.redis, local.minio, local.external_apis) : "${obj.name}" => " ${obj.value}"
}
This one is not as big a deal but variables need to set by the user by putting defaults or setting it up on terraform cloud. It'd be really cool if this was all taken from .env
Jonathan Vargas commented
Hello @bazylhorsey I ma going to check it