-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
36 lines (28 loc) · 1.45 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
output "this_security_group_id" {
description = "The ID of the security group"
value = "${element(concat(coalescelist(aws_security_group.this.*.id, aws_security_group.this_name_prefix.*.id), list("")), 0)}"
}
output "this_security_group_vpc_id" {
description = "The VPC ID"
value = "${element(concat(coalescelist(aws_security_group.this.*.vpc_id, aws_security_group.this_name_prefix.*.vpc_id), list("")), 0)}"
}
output "this_security_group_owner_id" {
description = "The owner ID"
value = "${element(concat(coalescelist(aws_security_group.this.*.owner_id, aws_security_group.this_name_prefix.*.owner_id), list("")), 0)}"
}
output "this_security_group_name" {
description = "The name of the security group"
value = "${element(concat(coalescelist(aws_security_group.this.*.name, aws_security_group.this_name_prefix.*.name), list("")), 0)}"
}
output "this_security_group_description" {
description = "The description of the security group"
value = "${element(concat(coalescelist(aws_security_group.this.*.description, aws_security_group.this_name_prefix.*.description), list("")), 0)}"
}
//output "this_security_group_ingress" {
// description = "The ingress rules"
// value = "${element(concat(aws_security_group.this.*.ingress, list("")), 0)}"
//}
//output "this_security_group_egress" {
// description = "The egress rules"
// value = "${element(concat(aws_security_group.this.*.egress, list("")), 0)"
//}