Skip to content

Commit

Permalink
Add role arn to outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmacedot committed Aug 4, 2024
1 parent 61a2fbe commit bd8fc5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions _outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
output "iam_role_arn" {
value = aws_iam_role.external_secrets[0].arn
}
1 change: 1 addition & 0 deletions iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ resource "aws_iam_role_policy_attachment" "external_secrets" {
role = aws_iam_role.external_secrets[0].name
policy_arn = aws_iam_policy.external_secrets[0].arn
}

4 changes: 2 additions & 2 deletions namespace.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
resource "kubernetes_namespace" "external_secrets" {
depends_on = [var.mod_dependency]
count = (var.enabled && var.create_namespace && var.namespace != "kube-system") ? 1 : 0

metadata {
name = var.namespace
}
}
}

0 comments on commit bd8fc5d

Please sign in to comment.