-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
outputs.tf
29 lines (24 loc) · 1.08 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output "security_group_arn" {
description = "The ARN of the security group"
value = try(aws_security_group.this[0].arn, aws_security_group.this_name_prefix[0].arn, "")
}
output "security_group_id" {
description = "The ID of the security group"
value = try(aws_security_group.this[0].id, aws_security_group.this_name_prefix[0].id, "")
}
output "security_group_vpc_id" {
description = "The VPC ID"
value = try(aws_security_group.this[0].vpc_id, aws_security_group.this_name_prefix[0].vpc_id, "")
}
output "security_group_owner_id" {
description = "The owner ID"
value = try(aws_security_group.this[0].owner_id, aws_security_group.this_name_prefix[0].owner_id, "")
}
output "security_group_name" {
description = "The name of the security group"
value = try(aws_security_group.this[0].name, aws_security_group.this_name_prefix[0].name, "")
}
output "security_group_description" {
description = "The description of the security group"
value = try(aws_security_group.this[0].description, aws_security_group.this_name_prefix[0].description, "")
}