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 +} +