Skip to content

Commit

Permalink
Added depends on for IAM policy and role for github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Khramtsov committed Aug 20, 2024
1 parent ede5e96 commit a2bb37a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/modules/k8s-addons/eks-gha-runner-scale-set.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ resource "aws_iam_role" "github_actions_runner_role" {
name = "${local.gha_runner_scale_set.name}-role"

assume_role_policy = data.aws_iam_policy_document.github_actions_runner_assume_role_policy.json

depends_on = [ helm_release.gha_runner_scale_set ]
}

data "aws_iam_policy_document" "github_actions_runner_assume_role_policy" {
Expand All @@ -90,6 +92,8 @@ resource "aws_iam_role_policy" "github_actions_runner_policy" {
role = aws_iam_role.github_actions_runner_role[0].id

policy = data.aws_iam_policy_document.github_actions_runner_policy.json

depends_on = [ helm_release.gha_runner_scale_set ]
}

data "aws_iam_policy_document" "github_actions_runner_policy" {
Expand Down

0 comments on commit a2bb37a

Please sign in to comment.