Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 13, 2022
1 parent 56c5dc7 commit dcb561b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ output "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 : ""
}

0 comments on commit dcb561b

Please sign in to comment.