Skip to content

Commit 2b31849

Browse files
authored
Set MAVIS__PDS__WAIT_BETWEEN_JOBS environment variable (#3349)
This adds a new environment variable to the task definition that allows us to configure the wait time between when PDS jobs are enqueued without needing a deployment, by storing the value in the parameter store. #3329 is the change to the application code which added the setting.
2 parents 5d768db + 1be1779 commit 2b31849

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

terraform/app/ssm_parameters.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
resource "aws_ssm_parameter" "pds_wait_between_jobs" {
2+
name = "/${var.environment}/pds_wait_between_jobs"
3+
type = "String"
4+
5+
# This value is the default, but can be customised in the AWS console
6+
# directly and isn't managed by Terraform.
7+
value = "2"
8+
9+
lifecycle {
10+
ignore_changes = [value]
11+
}
12+
}

terraform/app/variables.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ locals {
214214
{
215215
name = "RAILS_MASTER_KEY"
216216
valueFrom = var.rails_master_key_path
217-
}
217+
},
218+
{
219+
name = "MAVIS__PDS__WAIT_BETWEEN_JOBS",
220+
valueFrom = aws_ssm_parameter.pds_wait_between_jobs.name,
221+
},
218222
]
219223
}
220224

0 commit comments

Comments
 (0)