Do not add service urls to the lambda
locals {
is_prod = terraform.workspace == "production"
domain = local.is_prod ? "${local.domain_name}.python.it" : "${terraform.workspace}-${local.domain_name}.python.it"
-
- # Services URLs
- pycon_backend_service_url = local.is_prod ? "https://admin.pycon.it" : "https://admin.pycon.it"
- association_backend_service_url = local.is_prod ? "https://association-api.python.it" : "https://${terraform.workspace}-association-api.python.it"
- users_service_url = local.is_prod ? "https://users-api.python.it" : "https://${terraform.workspace}-users-api.python.it"
}
data "aws_iam_role" "lambda" {
@@ -29,11 +24,6 @@ module "lambda" {
APOLLO_GRAPH_ID = var.admin_variant ? "admin-python-italia" : "default-python-italia"
APOLLO_GRAPH_VARIANT = terraform.workspace
- # Services
- USERS_SERVICE = local.users_service_url
- ASSOCIATION_BACKEND_SERVICE = local.association_backend_service_url
- PYCON_BACKEND_SERVICE = local.pycon_backend_service_url
-
# Secrets
PASTAPORTO_SECRET = var.pastaporto_secret
IDENTITY_SECRET = var.identity_secret
