-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
81 lines (67 loc) · 2.58 KB
/
outputs.tf
File metadata and controls
81 lines (67 loc) · 2.58 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// outputs.tf
output "web_tier_sg_id" {
description = "The ID of the web tier security group"
value = try(aws_security_group.web_tier[0].id, null)
}
output "app_tier_sg_id" {
description = "The ID of the application tier security group"
value = try(aws_security_group.app_tier[0].id, null)
}
output "db_tier_sg_id" {
description = "The ID of the database tier security group"
value = try(aws_security_group.db_tier[0].id, null)
}
output "management_sg_id" {
description = "The ID of the management security group"
value = try(aws_security_group.management[0].id, null)
}
output "web_tier_sg_name" {
description = "The name of the web tier security group"
value = try(aws_security_group.web_tier[0].name, null)
}
output "app_tier_sg_name" {
description = "The name of the application tier security group"
value = try(aws_security_group.app_tier[0].name, null)
}
output "db_tier_sg_name" {
description = "The name of the database tier security group"
value = try(aws_security_group.db_tier[0].name, null)
}
output "management_sg_name" {
description = "The name of the management security group"
value = try(aws_security_group.management[0].name, null)
}
output "web_tier_sg_arn" {
description = "The ARN of the web tier security group"
value = try(aws_security_group.web_tier[0].arn, null)
}
output "app_tier_sg_arn" {
description = "The ARN of the application tier security group"
value = try(aws_security_group.app_tier[0].arn, null)
}
output "db_tier_sg_arn" {
description = "The ARN of the database tier security group"
value = try(aws_security_group.db_tier[0].arn, null)
}
output "management_sg_arn" {
description = "The ARN of the management security group"
value = try(aws_security_group.management[0].arn, null)
}
output "security_group_ids" {
description = "Map of managed security group IDs"
value = {
web = try(aws_security_group.web_tier[0].id, null)
app = try(aws_security_group.app_tier[0].id, null)
db = try(aws_security_group.db_tier[0].id, null)
management = try(aws_security_group.management[0].id, null)
}
}
output "security_group_names" {
description = "Map of managed security group names"
value = {
web = try(aws_security_group.web_tier[0].name, null)
app = try(aws_security_group.app_tier[0].name, null)
db = try(aws_security_group.db_tier[0].name, null)
management = try(aws_security_group.management[0].name, null)
}
}