File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,13 @@ module "runners" {
4
4
aws_region = var. aws_region
5
5
aws_partition = var. aws_partition
6
6
vpc_id = var. vpc_id
7
- subnet_ids = var. subnet_ids
8
7
prefix = " ${ var . prefix } -${ each . key } "
9
8
tags = merge (local. tags , {
10
9
" ghr:environment" = " ${ var . prefix } -${ each . key } "
11
10
})
12
11
13
12
s3_runner_binaries = each. value . runner_config . enable_runner_binaries_syncer ? local. runner_binaries_by_os_and_arch_map [" ${ each . value . runner_config . runner_os } _${ each . value . runner_config . runner_architecture } " ] : null
14
-
13
+ subnet_ids = length (each . value . runner_config . subnet_ids ) > 0 ? each . value . runner_config . subnet_ids : var . subnet_ids
15
14
ssm_paths = {
16
15
root = " ${ local . ssm_root_path } /${ each . key } "
17
16
tokens = " ${ var . ssm_paths . runners } /tokens"
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ variable "multi_runner_config" {
55
55
instance_max_spot_price = optional (string , null )
56
56
instance_target_capacity_type = optional (string , " spot" )
57
57
instance_types = list (string )
58
+ subnet_ids = optional (list (string ), [])
58
59
job_queue_retention_in_seconds = optional (number , 86400 )
59
60
minimum_running_time_in_minutes = optional (number , null )
60
61
pool_runner_owner = optional (string , null )
You can’t perform that action at this time.
0 commit comments