From bd8fc5d79f0867fdd8ba56938251d159ece4c355 Mon Sep 17 00:00:00 2001 From: lucasmacedot Date: Sun, 4 Aug 2024 19:11:45 -0400 Subject: [PATCH] Add role arn to outputs --- _outputs.tf | 3 +++ iam.tf | 1 + namespace.tf | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 _outputs.tf diff --git a/_outputs.tf b/_outputs.tf new file mode 100644 index 0000000..636ea62 --- /dev/null +++ b/_outputs.tf @@ -0,0 +1,3 @@ +output "iam_role_arn" { + value = aws_iam_role.external_secrets[0].arn +} diff --git a/iam.tf b/iam.tf index caca35b..c5116ba 100644 --- a/iam.tf +++ b/iam.tf @@ -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 } + diff --git a/namespace.tf b/namespace.tf index 95d11c0..662a1b4 100644 --- a/namespace.tf +++ b/namespace.tf @@ -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 } -} \ No newline at end of file +} +