-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
53 lines (48 loc) · 1.3 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
output "security_group_id" {
description = "The ID of the security group"
value = concat(
aws_security_group.this.*.id,
aws_security_group.this_name_prefix.*.id,
[""],
)[0]
}
output "security_group_vpc_id" {
description = "The VPC ID"
value = concat(
aws_security_group.this.*.vpc_id,
aws_security_group.this_name_prefix.*.vpc_id,
[""],
)[0]
}
output "security_group_owner_id" {
description = "The owner ID"
value = concat(
aws_security_group.this.*.owner_id,
aws_security_group.this_name_prefix.*.owner_id,
[""],
)[0]
}
output "security_group_name" {
description = "The name of the security group"
value = concat(
aws_security_group.this.*.name,
aws_security_group.this_name_prefix.*.name,
[""],
)[0]
}
output "security_group_description" {
description = "The description of the security group"
value = concat(
aws_security_group.this.*.description,
aws_security_group.this_name_prefix.*.description,
[""],
)[0]
}
#output "security_group_ingress" {
# description = "The ingress rules"
# value = "${element(concat(aws_security_group.this.*.ingress, list("")), 0)}"
#}
#output "security_group_egress" {
# description = "The egress rules"
# value = "${element(concat(aws_security_group.this.*.egress, list("")), 0)"
#}