File tree 6 files changed +34
-2
lines changed
6 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,8 @@ module "webhook" {
142
142
}
143
143
}
144
144
}
145
- sqs_workflow_job_queue = length (aws_sqs_queue. webhook_events_workflow_job_queue ) > 0 ? aws_sqs_queue. webhook_events_workflow_job_queue [0 ] : null
145
+ matcher_config_parameter_store_tier = var. matcher_config_parameter_store_tier
146
+ sqs_workflow_job_queue = length (aws_sqs_queue. webhook_events_workflow_job_queue ) > 0 ? aws_sqs_queue. webhook_events_workflow_job_queue [0 ] : null
146
147
147
148
github_app_parameters = {
148
149
webhook_secret = module.ssm.parameters.github_app_webhook_secret
Original file line number Diff line number Diff line change @@ -644,3 +644,13 @@ variable "instance_termination_watcher" {
644
644
})
645
645
default = {}
646
646
}
647
+
648
+ variable "matcher_config_parameter_store_tier" {
649
+ description = " The tier of the parameter store for the matcher configuration. Valid values are `Standard`, and `Advanced`."
650
+ type = string
651
+ default = " Standard"
652
+ validation {
653
+ condition = contains ([" Standard" , " Advanced" ], var. matcher_config_parameter_store_tier )
654
+ error_message = " `matcher_config_parameter_store_tier` value is not valid, valid values are: `Standard`, and `Advanced`."
655
+ }
656
+ }
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ module "webhook" {
4
4
tags = local. tags
5
5
kms_key_arn = var. kms_key_arn
6
6
7
- runner_matcher_config = local. runner_config
7
+ runner_matcher_config = local. runner_config
8
+ matcher_config_parameter_store_tier = var. matcher_config_parameter_store_tier
8
9
ssm_paths = {
9
10
root = local.ssm_root_path
10
11
webhook = var.ssm_paths.webhook
Original file line number Diff line number Diff line change @@ -61,4 +61,5 @@ resource "aws_ssm_parameter" "runner_matcher_config" {
61
61
name = " ${ var . ssm_paths . root } /${ var . ssm_paths . webhook } /runner-matcher-config"
62
62
type = " String"
63
63
value = jsonencode (local. runner_matcher_config_sorted )
64
+ tier = var. matcher_config_parameter_store_tier
64
65
}
Original file line number Diff line number Diff line change @@ -194,3 +194,13 @@ variable "ssm_paths" {
194
194
webhook = string
195
195
})
196
196
}
197
+
198
+ variable "matcher_config_parameter_store_tier" {
199
+ description = " The tier of the parameter store for the matcher configuration. Valid values are `Standard`, and `Advanced`."
200
+ type = string
201
+ default = " Standard"
202
+ validation {
203
+ condition = contains ([" Standard" , " Advanced" ], var. matcher_config_parameter_store_tier )
204
+ error_message = " `matcher_config_parameter_store_tier` value is not valid, valid values are: `Standard`, and `Advanced`."
205
+ }
206
+ }
Original file line number Diff line number Diff line change @@ -565,6 +565,15 @@ variable "enable_runner_workflow_job_labels_check_all" {
565
565
default = true
566
566
}
567
567
568
+ variable "matcher_config_parameter_store_tier" {
569
+ description = " The tier of the parameter store for the matcher configuration. Valid values are `Standard`, and `Advanced`."
570
+ type = string
571
+ default = " Standard"
572
+ validation {
573
+ condition = contains ([" Standard" , " Advanced" ], var. matcher_config_parameter_store_tier )
574
+ error_message = " `matcher_config_parameter_store_tier` value is not valid, valid values are: `Standard`, and `Advanced`."
575
+ }
576
+ }
568
577
variable "runner_ec2_tags" {
569
578
description = " Map of tags that will be added to the launch template instance tag specifications."
570
579
type = map (string )
You can’t perform that action at this time.
0 commit comments