diff --git a/README.md b/README.md
index 8ff2c31..b26d898 100644
--- a/README.md
+++ b/README.md
@@ -185,6 +185,7 @@ In order to prevent older versions from being retained forever, in addition to t
| [bastion\_launch\_template](#output\_bastion\_launch\_template) | Launch template of bastion |
| [bastion\_s3\_bucket](#output\_bastion\_s3\_bucket) | S3 bucket of bastion |
| [bastion\_security\_group](#output\_bastion\_security\_group) | Security group of bastion |
+| [bastion\_security\_group\_map](#output\_bastion\_security\_group\_map) | Security group details of bastion |
[Standards Link]: https://operations-engineering-reports.cloud-platform.service.justice.gov.uk/public-report/modernisation-platform-terraform-bastion-linux "Repo standards badge."
diff --git a/outputs.tf b/outputs.tf
index 3b18dbe..5b70613 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -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
}
diff --git a/test/unit-test/outputs.tf b/test/unit-test/outputs.tf
index 2c5bbd8..5050407 100644
--- a/test/unit-test/outputs.tf
+++ b/test/unit-test/outputs.tf
@@ -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" {