diff --git a/sam-template.yaml b/sam-template.yaml index 3c3093d13..d03f040bf 100644 --- a/sam-template.yaml +++ b/sam-template.yaml @@ -92,6 +92,7 @@ Resources: DC_ENVIRONMENT: !Ref AppDcEnvironment SLACK_FEEDBACK_WEBHOOK_URL: !Ref AppSlackFeedbackWebhookUrl YNR_API_KEY: !Ref AppYnrApiKey + IGNORE_ROUTERS: "1" Tags: dc-environment: !Ref AppDcEnvironment dc-product: wcivf diff --git a/wcivf/settings/lambda.py b/wcivf/settings/lambda.py index 5120b09f1..ffebf2801 100644 --- a/wcivf/settings/lambda.py +++ b/wcivf/settings/lambda.py @@ -2,12 +2,15 @@ from .base import * # noqa -DATABASES["default"] = { # noqa - "ENGINE": "django.db.backends.postgresql", - "NAME": os.environ.get("RDS_DB_NAME"), - "USER": "wcivf", - "PASSWORD": os.environ.get("RDS_DB_PASSWORD"), - "HOST": os.environ.get("RDS_HOST"), - "PORT": os.environ.get("RDS_DB_PORT", "5432"), +DATABASES = { + "default": { + "ENGINE": "django.db.backends.postgresql", + "NAME": os.environ.get("RDS_DB_NAME"), + "USER": "wcivf", + "PASSWORD": os.environ.get("RDS_DB_PASSWORD"), + "HOST": os.environ.get("RDS_HOST"), + "PORT": os.environ.get("RDS_DB_PORT", "5432"), + } } + EE_BASE = "https://elections.democracyclub.org.uk"