Skip to content

Commit 703763f

Browse files
committed
Add iam_overrides var to multi-runner module
1 parent 509bb71 commit 703763f

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

modules/multi-runner/variables.tf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,3 +718,20 @@ variable "user_agent" {
718718
type = string
719719
default = "github-aws-runners"
720720
}
721+
722+
variable "iam_overrides" {
723+
description = "This map provides the possibility to override some IAM defaults. The following attributes are supported: `instance_profile_name` overrides the instance profile name used in the launch template. `runner_role_arn` overrides the IAM role ARN used for the runner instances."
724+
type = object({
725+
override_instance_profile = optional(bool, null)
726+
instance_profile_name = optional(string, null)
727+
override_runner_role = optional(bool, null)
728+
runner_role_arn = optional(string, null)
729+
})
730+
731+
default = {
732+
override_instance_profile = false
733+
instance_profile_name = null
734+
override_runner_role = false
735+
runner_role_arn = null
736+
}
737+
}

modules/runners/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ variable "subnet_ids" {
3636
}
3737

3838
variable "overrides" {
39-
description = "This map provides the possibility to override some defaults. The following attributes are supported: `name_sg` overrides the `Name` tag for all security groups created by this module. `name_runner` overrides the `Name` tag for the ec2 instance defined in the auto launch configuration. `instance_profile_name` overrides the instance profile name used in the launch template."
39+
description = "This map provides the possibility to override some defaults. The following attributes are supported: `name_sg` overrides the `Name` tag for all security groups created by this module. `name_runner_agent_instance` overrides the `Name` tag for the ec2 instance defined in the auto launch configuration. `name_docker_machine_runners` overrides the `Name` tag spot instances created by the runner agent."
4040
type = map(string)
4141

4242
default = {

0 commit comments

Comments
 (0)