Skip to content

Commit a185a70

Browse files
authored
Output the role for the pool management (#1965)
Sometimes extra policies need to be attached to roles such as for custom KMS encryption of EBS. We need to output the pool lambda role so it can be configured.
1 parent 58bfec0 commit a185a70

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

modules/runners/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ output "lambda_scale_down" {
2121
output "role_scale_down" {
2222
value = aws_iam_role.scale_down
2323
}
24+
25+
output "role_pool" {
26+
value = length(var.pool_config) == 0 ? {} : module.pool.role_pool
27+
}

modules/runners/pool/outputs.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
output "role_pool" {
2+
value = aws_iam_role.pool
3+
}

0 commit comments

Comments
 (0)