Skip to content

Commit

Permalink
reinstated original behaviour of security group output, and moved new…
Browse files Browse the repository at this point in the history
… functionality to separate output
  • Loading branch information
dms1981 committed Oct 22, 2024
1 parent c95588b commit 498e46b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
output "bastion_security_group" {
description = "Security group of bastion"
value = aws_security_group.bastion_linux.id
}

output "bastion_security_group_map" {
description = "Security group details of bastion"
value = aws_security_group.bastion_linux
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit-test/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ output "bastion_s3_bucket" {

output "bastion_security_group" {
description = "Bastion security groups"
value = { for idx, bastion in module.bastion_linux : "bastion_${idx}" => bastion.bastion_security_group.id }
value = { for idx, bastion in module.bastion_linux : "bastion_${idx}" => bastion.bastion_security_group_map.id }
}

output "bastion_kms_key" {
Expand Down

0 comments on commit 498e46b

Please sign in to comment.