-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from terraform-modules/feature-boolean-create
add create flag to trigger resource create
- Loading branch information
Showing
6 changed files
with
57 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,25 @@ | ||
|
|
||
| output "role_arn" { | ||
| description = "Created role ARN" | ||
| value = aws_iam_role.role.arn | ||
| value = var.create ? aws_iam_role.role[0].arn : "" | ||
| } | ||
|
|
||
| output "role_name" { | ||
| description = "Created role name" | ||
| value = aws_iam_role.role.name | ||
| value = var.create ? aws_iam_role.role[0].name : "" | ||
| } | ||
|
|
||
| output "ldap_dn" { | ||
| description = "Created LDAP DN for role (empty if ldap is not enabled)" | ||
| value = local.enable_ldap ? local.ldap_dn : "" | ||
| value = local.enable_ldap && var.create ? local.ldap_dn : "" | ||
| } | ||
|
|
||
| output "instance_profile_arn" { | ||
| description = "Created instance profile ARN, if enabled" | ||
| value = var.enable_instance_profile ? aws_iam_instance_profile.role[0].arn : "" | ||
| value = var.create && 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 : "" | ||
| value = var.create && var.enable_instance_profile ? aws_iam_instance_profile.role[0].name : "" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| variable "create" { | ||
| description = "Flag to indicate whether to create the resources or not (default: true)" | ||
| type = bool | ||
| default = true | ||
| } | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| locals { | ||
| _module_version = "1.3.5" | ||
| # _module_version = "2.1.1" | ||
| _module_version = "1.4.0" | ||
| # _module_version = "2.2.0" | ||
| } |