-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
105 lines (103 loc) · 3.93 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
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
################################################################################
# OUTPUTS
################################################################################
output "node_origin_image_name" {
description = "AMI image name of the Red5 Pro Node Origin image"
value = try(aws_ami_from_instance.red5pro_node_origin_image[0].name, null)
}
output "node_origin_image_id" {
description = "AMI image ID of the Red5 Pro Node Origin image"
value = try(aws_ami_from_instance.red5pro_node_origin_image[0].id, null)
}
output "node_edge_image_name" {
description = "AMI image name of the Red5 Pro Node Edge image"
value = try(aws_ami_from_instance.red5pro_node_edge_image[0].name, null)
}
output "node_edge_image_id" {
description = "AMI image ID of the Red5 Pro Node Edge image"
value = try(aws_ami_from_instance.red5pro_node_edge_image[0].id, null)
}
output "node_transcoder_image_name" {
description = "AMI image name of the Red5 Pro Node Transcoder image"
value = try(aws_ami_from_instance.red5pro_node_transcoder_image[0].name, null)
}
output "node_transcoder_image_id" {
description = "AMI image ID of the Red5 Pro Node Transcoder image"
value = try(aws_ami_from_instance.red5pro_node_transcoder_image[0].id, null)
}
output "node_relay_image_name" {
description = "AMI image name of the Red5 Pro Node Relay image"
value = try(aws_ami_from_instance.red5pro_node_relay_image[0].name , null)
}
output "node_relay_image_id" {
description = "AMI image ID of the Red5 Pro Node Relay image"
value = try(aws_ami_from_instance.red5pro_node_relay_image[0].id, null)
}
output "ssh_key_name" {
description = "SSH key name"
value = local.ssh_key_name
}
output "vpc_id" {
description = "VPC ID"
value = local.vpc_id
}
output "vpc_name" {
description = "VPC Name"
value = local.vpc_name
}
output "subnet_ids" {
description = "Subnet IDs"
value = local.subnet_ids
}
output "mysql_rds_create" {
description = "Create MySQL RDS instance"
value = local.mysql_rds_create
}
output "mysql_host" {
description = "MySQL host"
value = local.mysql_host
}
output "stream_manager_ip" {
description = "Stream Manager IP"
value = local.cluster ? local.stream_manager_ip : null
}
output "stream_manager_http_url" {
description = "Stream Manager HTTP URL"
value = local.cluster ? "http://${local.stream_manager_ip}:5080" : null
}
output "stream_manager_https_url" {
description = "Stream Manager HTTPS URL"
value = local.cluster ? var.https_letsencrypt_enable ? "https://${var.https_letsencrypt_certificate_domain_name}:443" : null : null
}
output "load_balancer_dns_name" {
description = "Load Balancer DNS Name"
value = local.autoscaling ? local.stream_manager_ip : null
}
output "load_balancer_http_url" {
description = "Load Balancer HTTP URL"
value = local.autoscaling ? "http://${local.stream_manager_ip}:5080" : null
}
output "load_balancer_https_url" {
description = "Load Balancer HTTPS URL"
value = local.autoscaling ? var.https_certificate_manager_use_existing ? "https://${var.https_certificate_manager_certificate_name}:443" : null : null
}
output "single_red5pro_server_ip" {
description = "Single Red5 Pro Server IP"
value = local.single ? local.elastic_ip : null
}
output "single_red5pro_server_http_url" {
description = "Single Red5 Pro Server HTTP URL"
value = local.single ? "http://${local.elastic_ip}:5080" : null
}
output "single_red5pro_server_https_url" {
description = "Single Red5 Pro Server HTTPS URL"
value = local.single && var.https_letsencrypt_enable ? "https://${var.https_letsencrypt_certificate_domain_name}:443" : null
}
output "ssh_private_key_path" {
description = "SSH private key path"
value = local.ssh_private_key_path
}
output "single_red5pro_server_brew_mixer_controller_page_url" {
description = "Single Red5 Pro Server Brew Mixer Controller Page URL"
value = local.single && var.red5pro_brew_mixer_enable ? "https://${var.https_letsencrypt_certificate_domain_name}/brewmixer/rtController.html" : null
}