jonra1993 / fastapi-alembic-sqlmodel-async

This is a project template which uses FastAPI, Pydantic 2.0, Alembic and async SQLModel as ORM. It shows a complete async CRUD using authentication and role base access control.
MIT License
878 stars 142 forks source link

Include locals and all defaults for vars in terraform #50

Closed bazylhorsey closed 1 year ago

bazylhorsey commented 1 year ago

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

jonra1993 commented 1 year ago

Hello @bazylhorsey I ma going to check it