Skip to content

Commit f54c8d4

Browse files
Added outputs for SG
1 parent f726c99 commit f54c8d4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

outputs.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,17 @@ output "ephemeral_block_device" {
230230
null
231231
)
232232
}
233+
234+
################################################################################
235+
# Security Group
236+
################################################################################
237+
238+
output "security_group_arn" {
239+
description = "Amazon Resource Name (ARN) of the security group"
240+
value = try(aws_security_group.this[0].arn, null)
241+
}
242+
243+
output "security_group_id" {
244+
description = "ID of the security group"
245+
value = try(aws_security_group.this[0].id, null)
246+
}

0 commit comments

Comments
 (0)