Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3526821
D12729.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
929 B
Referenced Files
None
Subscribers
None
D12729.diff
View Options
diff --git a/services/terraform/self-host/keyserver_secondary.tf b/services/terraform/self-host/keyserver_secondary.tf
--- a/services/terraform/self-host/keyserver_secondary.tf
+++ b/services/terraform/self-host/keyserver_secondary.tf
@@ -139,7 +139,7 @@
enable_execute_command = true
enable_ecs_managed_tags = true
force_new_deployment = true
- desired_count = 1
+ desired_count = var.desired_secondary_nodes
network_configuration {
subnets = local.vpc_subnets
diff --git a/services/terraform/self-host/variables.tf b/services/terraform/self-host/variables.tf
--- a/services/terraform/self-host/variables.tf
+++ b/services/terraform/self-host/variables.tf
@@ -77,3 +77,9 @@
type = string
default = "db.t4g.medium"
}
+
+variable "desired_secondary_nodes" {
+ description = "Desired number of secondary nodes"
+ type = number
+ default = 1
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 1:46 AM (2 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701324
Default Alt Text
D12729.diff (929 B)
Attached To
Mode
D12729: [terraform] Make number of secondary nodes configured by the user
Attached
Detach File
Event Timeline
Log In to Comment