-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
36 lines (29 loc) · 1.46 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
output "app_id" {
description = "ID of the Scalingo application."
value = scalingo_app.app.id
}
output "all_environment_variables" {
description = "All environment variables of the Scalingo application (ones added by the terraform module and ones added by Scalingo add-ons)."
value = scalingo_app.app.all_environment
sensitive = true # Environment variables can contain sensitive information
}
output "url" {
description = "Base URL to access the application (`https://*`). If you have set a canonical domain, this will be the URL with the canonical domain, otherwise it will be the default URL of the Scalingo application."
value = (var.domain != null ? "https://${var.domain}" : scalingo_app.app.url)
}
output "domain" {
description = "Hostname to use to access the application. Same as the `url` output but without the `https://`."
value = trim((var.domain != null ? "https://${var.domain}" : scalingo_app.app.url), "https://")
}
output "origin_domain" {
description = "The FQDN of the Scalingo application (`<your_app_name>.<region>.scalingo.io`). Same as the `domain` output if you have not set a canonical domain."
value = "${scalingo_app.app.name}.${local.current_region}.scalingo.io"
}
output "git_url" {
description = "Hostname to use to deploy code with Git + SSH."
value = scalingo_app.app.git_url
}
output "region" {
description = "Region where the application is deployed."
value = local.current_region
}