Skip to content

Commit

Permalink
chore: iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach committed Jan 10, 2024
1 parent 96d155b commit 6406fae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion humanitec-resource-defs/k8s/service-account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ serviceaccount.yaml:
metadata:
name: $${resources.aws-role.outputs.k8s_service_account_name}
annotations:
{{- if "$${resources.aws-role.outputs.role_arn}}" }
{{- if "$${resources.aws-role.outputs.role_arn}}" }}
eks.amazonaws.com/role-arn: $${resources.aws-role.outputs.role_arn}
{{- end }}
context: {{trimPrefix "modules." "$${context.res.id}"}}
Expand Down
2 changes: 1 addition & 1 deletion modules/iam-role/service-account/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
output "role_arn" {
value = length(var.policy_arns) > 0 ? aws_iam_role.main[0].arn : null
value = length(var.policy_arns) > 0 ? aws_iam_role.main[0].arn : ""
}

output "k8s_service_account_name" {
Expand Down

0 comments on commit 6406fae

Please sign in to comment.