Skip to content

Commit

Permalink
add instance_profile_name
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 10, 2022
1 parent 94fa603 commit 2ddb766
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ No modules.
| Name | Description |
|------|-------------|
| <a name="output_instance_profile_arn"></a> [instance\_profile\_arn](#output\_instance\_profile\_arn) | Created instance profile ARN, if enabled |
| <a name="output_instance_profile_name"></a> [instance\_profile\_name](#output\_instance\_profile\_name) | Created instance profile name, if enabled |
| <a name="output_ldap_dn"></a> [ldap\_dn](#output\_ldap\_dn) | Created LDAP DN for role (empty if ldap is not enabled) |
| <a name="output_role_arn"></a> [role\_arn](#output\_role\_arn) | Created role ARN |
| <a name="output_role_name"></a> [role\_name](#output\_role\_name) | Created role name |
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ""
}
4 changes: 2 additions & 2 deletions version.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 2ddb766

Please sign in to comment.