Add association frontend url
locals {
is_prod = terraform.workspace == "production"
domain = local.is_prod ? "${local.domain_name}.beta.python.it" : "${terraform.workspace}-${local.domain_name}.beta.python.it"
+
+ # TODO: Need to coordinate between env and vercel
+ association_frontend_url = "https://associazione.python.it"
}
data "aws_db_instance" "database" {
@@ -46,6 +49,9 @@ module "lambda" {
DATABASE_URL = "postgresql+asyncpg://${data.aws_db_instance.database.master_username}:${var.database_password}@${data.aws_db_instance.database.address}:${data.aws_db_instance.database.port}/users"
EMAIL_BACKEND = "pythonit_toolkit.emails.backends.ses.SESEmailBackend"
+ # Services
+ ASSOCIATION_FRONTEND_URL = local.association_frontend_url
+
# Secrets
PASTAPORTO_SECRET = var.pastaporto_secret
IDENTITY_SECRET = var.identity_secret
