diff --git a/README.md b/README.md index aedbc87..ca6454c 100644 --- a/README.md +++ b/README.md @@ -295,7 +295,7 @@ spec: | Name | Version | |------|---------| | terraform | >= 0.13 | -| aws | >= 3.13, < 4.0 | +| aws | >= 3.13 | | helm | >= 1.0, < 3.0 | | kubernetes | >= 1.10.0, < 3.0.0 | @@ -303,7 +303,7 @@ spec: | Name | Version | |------|---------| -| aws | >= 3.13, < 4.0 | +| aws | >= 3.13 | | helm | >= 1.0, < 3.0 | | kubernetes | >= 1.10.0, < 3.0.0 | @@ -327,7 +327,9 @@ spec: ## Outputs -No output. +| Name | Description | +|------|-------------| +| iam\_role\_arn | n/a | 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 +} +