Skip to content

Commit

Permalink
fix: ability to add custom role name
Browse files Browse the repository at this point in the history
  • Loading branch information
avx-rodmans committed Dec 8, 2023
1 parent 092ced1 commit c2f9f6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ resource "aws_secretsmanager_secret_version" "github_token" {
}

resource "aws_iam_role" "ecs_task_execution_role" {
name = "aws-ecs-github-runner-task-execution-role"
name = var.ecs_task_execution_role_name
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@ variable "tags" {
type = map(string)
default = {}
}

variable "ecs_task_execution_role_name" {
type = string
default = "aws-ecs-github-runner-task-execution-role"
}

0 comments on commit c2f9f6e

Please sign in to comment.