File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ module "forms_admin" {
2626 analytics_enabled = var. forms_admin_settings . analytics_enabled
2727 act_as_user_enabled = var. forms_admin_settings . act_as_user_enabled
2828 enable_mailchimp_sync = var. forms_admin_settings . synchronize_to_mailchimp
29+ use_database_as_truth = var. forms_admin_settings . use_database_as_truth
2930 deploy_account_id = var. deploy_account_id
3031 repeatable_page_enabled = var. forms_admin_settings . repeatable_page_enabled
3132 vpc_id = data. terraform_remote_state . forms_environment . outputs . vpc_id
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ variable "forms_admin_settings" {
142142 govuk_app_domain = string
143143 synchronize_to_mailchimp = bool
144144 repeatable_page_enabled = bool
145+ use_database_as_truth = bool
145146 })
146147 nullable = false
147148}
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ forms_admin_settings = {
7979 govuk_app_domain = " integration.publishing.service.gov.uk"
8080 synchronize_to_mailchimp = false
8181 repeatable_page_enabled = true
82+ use_database_as_truth = false
8283}
8384forms_api_settings = {
8485 cpu = 256
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ forms_admin_settings = {
124124 govuk_app_domain = " publishing.service.gov.uk"
125125 synchronize_to_mailchimp = true
126126 repeatable_page_enabled = true
127+ use_database_as_truth = false
127128}
128129forms_api_settings = {
129130 cpu = 512
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ forms_admin_settings = {
4444 govuk_app_domain = " staging.publishing.service.gov.uk"
4545 synchronize_to_mailchimp = false
4646 repeatable_page_enabled = true
47+ use_database_as_truth = false
4748}
4849forms_api_settings = {
4950 cpu = 256
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ forms_admin_settings = {
4242 govuk_app_domain = " "
4343 synchronize_to_mailchimp = false
4444 repeatable_page_enabled = true
45+ use_database_as_truth = false
4546}
4647forms_api_settings = {
4748 cpu = 256
Original file line number Diff line number Diff line change @@ -175,6 +175,10 @@ module "ecs_service" {
175175 {
176176 name = " SETTINGS__FEATURES__REPEATABLE_PAGE_ENABLED" ,
177177 value = var.repeatable_page_enabled
178+ },
179+ {
180+ name = " SETTINGS__USE_DATABASE_AS_TRUTH" ,
181+ value = var.use_database_as_truth
178182 }
179183 ]
180184
Original file line number Diff line number Diff line change @@ -150,3 +150,9 @@ variable "alb_listener_arn" {
150150 type = string
151151 description = " The ARN of the load balancer listener to which forms-admin will be attached"
152152}
153+
154+ variable "use_database_as_truth" {
155+ type = bool
156+ description = " Enables using Forms Admin database as the source of truth"
157+ default = false
158+ }
You can’t perform that action at this time.
0 commit comments