-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
outputs.tf
65 lines (56 loc) · 1.51 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
54
55
56
57
58
59
60
61
62
63
64
65
output "id" {
description = "The ID of the security group."
value = aws_security_group.this.id
}
output "arn" {
description = "The ARN of the security group."
value = aws_security_group.this.arn
}
output "name" {
description = "The name of the security group."
value = aws_security_group.this.name
}
output "description" {
description = "The description of the security group."
value = aws_security_group.this.description
}
output "owner_id" {
description = "The ID of the AWS account that owns the security group."
value = aws_security_group.this.owner_id
}
output "vpc_id" {
description = "The ID of the associated VPC."
value = aws_security_group.this.vpc_id
}
output "ingress_rules" {
description = <<EOF
The configuration of the security group ingress rules.
EOF
value = {
for name, rule in aws_vpc_security_group_ingress_rule.this :
name => {
id = rule.id
arn = rule.arn
description = rule.description
protocol = rule.ip_protocol
from_port = rule.from_port
to_port = rule.to_port
}
}
}
output "egress_rules" {
description = <<EOF
The configuration of the security group egress rules.
EOF
value = {
for name, rule in aws_vpc_security_group_egress_rule.this :
name => {
id = rule.id
arn = rule.arn
description = rule.description
protocol = rule.ip_protocol
from_port = rule.from_port
to_port = rule.to_port
}
}
}