Skip to content

Commit a2bb37a

Browse files
author
Valentin Khramtsov
committed
Added depends on for IAM policy and role for github runner
1 parent ede5e96 commit a2bb37a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

terraform/modules/k8s-addons/eks-gha-runner-scale-set.tf

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ resource "aws_iam_role" "github_actions_runner_role" {
6464
name = "${local.gha_runner_scale_set.name}-role"
6565

6666
assume_role_policy = data.aws_iam_policy_document.github_actions_runner_assume_role_policy.json
67+
68+
depends_on = [ helm_release.gha_runner_scale_set ]
6769
}
6870

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

9294
policy = data.aws_iam_policy_document.github_actions_runner_policy.json
95+
96+
depends_on = [ helm_release.gha_runner_scale_set ]
9397
}
9498

9599
data "aws_iam_policy_document" "github_actions_runner_policy" {

0 commit comments

Comments
 (0)