-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path012_outputs.tf
More file actions
154 lines (122 loc) · 5.15 KB
/
Copy path012_outputs.tf
File metadata and controls
154 lines (122 loc) · 5.15 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# ----------------------------------------------------------------------------------------------------------------------
# AWS Account Details
# ----------------------------------------------------------------------------------------------------------------------
output "aws_account_id" {
value = local.aws_account_id
}
output "aws_caller_arn" {
value = local.aws_caller_arn
}
output "aws_caller_user" {
value = local.aws_caller_user
}
# ----------------------------------------------------------------------------------------------------------------------
# EC2 Keys
# ----------------------------------------------------------------------------------------------------------------------
output "ec2_ssh_key" {
value = local.ec2_ssh_key
sensitive = true
}
# ----------------------------------------------------------------------------------------------------------------------
# Tower Core
# ----------------------------------------------------------------------------------------------------------------------
output "tower_base_url" {
value = module.connection_strings.tower_base_url
}
output "tower_server_url" {
value = module.connection_strings.tower_server_url
}
output "tower_api_endpoint" {
value = module.connection_strings.tower_api_endpoint
}
output "aws_ec2_private_ip" {
value = local.aws_ec2_private_ip
}
output "aws_ec2_public_ip" {
value = local.aws_ec2_public_ip
}
# output "database_connection_string" {
# description = "Dynamically generated db connectino string based on tfvars selections."
# value = data.external.generate_db_connection_string.result.value
# }
output "tower_db_dns" {
description = "The DB root."
value = module.connection_strings.tower_db_dns
}
output "tower_db_url" {
description = "The complete database URL for Tower including database name and connection string"
value = module.connection_strings.tower_db_url
}
output "tower_redis_dns" {
description = "The Redis DNS for Tower"
value = module.connection_strings.tower_redis_dns
}
output "tower_redis_url" {
description = "The Redis URL for Tower"
value = module.connection_strings.tower_redis_url
}
# ----------------------------------------------------------------------------------------------------------------------
# Groundswell
# ----------------------------------------------------------------------------------------------------------------------
output "swell_db_dns" {
description = "The DNS for Groundswell"
value = module.connection_strings.swell_db_dns
}
output "swell_db_url" {
description = "The complete database URL for Groundswell"
value = module.connection_strings.swell_db_url
}
# ----------------------------------------------------------------------------------------------------------------------
# Connect (Studio)
# ----------------------------------------------------------------------------------------------------------------------
output "tower_connect_dns" {
description = "The DNS name for Connect"
value = module.connection_strings.tower_connect_dns
}
output "tower_connect_wildcard_dns" {
description = "The DNS name for Connect"
value = module.connection_strings.tower_connect_wildcard_dns
}
output "tower_connect_server_url" {
description = "The server URL for Connect with appropriate protocol and port"
value = module.connection_strings.tower_connect_server_url
}
output "tower_connect_redis_dns" {
description = "The DNS for the Redis instance used by Connect."
value = module.connection_strings.tower_connect_redis_dns
}
output "tower_connect_redis_url" {
description = "The URL for the Redis instance used by Connect."
value = module.connection_strings.tower_connect_redis_url
}
# ----------------------------------------------------------------------------------------------------------------------
# Wave / Wave Lite
# ----------------------------------------------------------------------------------------------------------------------
output "tower_wave_url" {
description = "The URL for Wave-Lite"
value = module.connection_strings.tower_wave_url
}
output "tower_wave_dns" {
description = "The DNS name for Wave without protocol prefix"
value = module.connection_strings.tower_wave_dns
}
output "wave_lite_db_dns" {
description = "The database DNS for Wave-Lite"
value = module.connection_strings.wave_lite_db_dns
}
output "wave_lite_db_url" {
description = "The database URL for Wave-Lite"
value = module.connection_strings.wave_lite_db_url
}
output "wave_lite_redis_dns" {
description = "The Redis DNS for Wave-Lite"
value = module.connection_strings.wave_lite_redis_dns
}
output "wave_lite_redis_url" {
description = "The Redis URL for Wave-Lite"
value = module.connection_strings.wave_lite_redis_url
}
# ----------------------------------------------------------------------------------------------------------------------
# Route53
# ----------------------------------------------------------------------------------------------------------------------
output "route53_record_status" { value = var.flag_create_hosts_file_entry == true ? "Hosts file only. No R53 record." : "R53 record created." }