From 2ddb766307c4161b7fbc9094e35c1fd9f0e93c16 Mon Sep 17 00:00:00 2001 From: badra001 Date: Mon, 10 Jan 2022 12:13:55 -0500 Subject: [PATCH] add instance_profile_name --- CHANGELOG.md | 9 +++++++++ README.md | 1 + main.tf | 4 ++-- outputs.tf | 5 +++++ version.tf | 4 ++-- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 391c2ca..5f62325 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,12 @@ * 1.3.3 -- 20220106 - add version number max for external provier to 1.2 (2.x not compatible with tf 0.12) +* 1.3.4 -- 20220107 + - fix to remove ldap provider for tf-0.12 + +* 1.3.5 -- 20220110 + - add output instance_profile_name + ## version 2.x branch: compat-tf-0.13 @@ -63,3 +69,6 @@ tag: 2.0.1 * 2.1.0 -- 20220106 - prep for tf 0.13+ + +* 2.1.1 -- 20220110 + - add output instance_profile_name diff --git a/README.md b/README.md index a8091bb..5b83c6d 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,7 @@ No modules. | Name | Description | |------|-------------| | [instance\_profile\_arn](#output\_instance\_profile\_arn) | Created instance profile ARN, if enabled | +| [instance\_profile\_name](#output\_instance\_profile\_name) | Created instance profile name, if enabled | | [ldap\_dn](#output\_ldap\_dn) | Created LDAP DN for role (empty if ldap is not enabled) | | [role\_arn](#output\_role\_arn) | Created role ARN | | [role\_name](#output\_role\_name) | Created role name | diff --git a/main.tf b/main.tf index 4fd3c4c..b64db98 100644 --- a/main.tf +++ b/main.tf @@ -197,8 +197,8 @@ resource "null_resource" "role_ldif" { } resource "ldap_object" "role" { - # count = local.ldap_exists && local.enable_ldap ? 1 : 0 - count = local.enable_ldap ? 1 : 0 + count = local.ldap_exists && local.enable_ldap ? 1 : 0 + # count = local.enable_ldap ? 1 : 0 provider = ldap dn = local.ldap_dn object_classes = [ diff --git a/outputs.tf b/outputs.tf index 9a56266..1deda7d 100644 --- a/outputs.tf +++ b/outputs.tf @@ -18,3 +18,8 @@ output "instance_profile_arn" { description = "Created instance profile ARN, if enabled" value = var.enable_instance_profile ? aws_iam_instance_profile.role[0].arn : "" } + +output "instance_profile_name" { + description = "Created instance profile name, if enabled" + value = var.enable_instance_profile ? aws_iam_instance_profile.role[0].name : "" +} diff --git a/version.tf b/version.tf index 6a00c99..aa8147b 100644 --- a/version.tf +++ b/version.tf @@ -1,4 +1,4 @@ locals { - # _module_version = "1.3.3" - _module_version = "2.1.0" + _module_version = "1.3.5" + # _module_version = "2.1.1" }