Skip to content

Commit

Permalink
Merge pull request #3029 from uktrade/feat/Addind-ability-to-customis…
Browse files Browse the repository at this point in the history
…e-admin-instances

Adding the ability to customise the number of admin instances.
  • Loading branch information
Mohizurkhan authored Feb 14, 2024
2 parents c9b46e6 + 4739c3a commit 48429a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion infra/ecs_main_admin.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ resource "aws_ecs_service" "admin" {
name = "${var.prefix}-admin"
cluster = "${aws_ecs_cluster.main_cluster.id}"
task_definition = "${aws_ecs_task_definition.admin.arn}"
desired_count = 2
desired_count = var.admin_instances
launch_type = "FARGATE"
platform_version = "1.4.0"
deployment_maximum_percent = 600
Expand Down
4 changes: 4 additions & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ variable admin_authbroker_client_id {}
variable admin_authbroker_client_secret {}
variable admin_authbroker_url {}
variable admin_environment {}
variable admin_instances {
type = number
default = 2
}
variable admin_deregistration_delay {
type = number
default = 300
Expand Down

0 comments on commit 48429a5

Please sign in to comment.