Skip to content

Commit 2a09228

Browse files
committed
feat: expose base_url output from scalingo_app
Add base_url output returning the default Scalingo application URL, useful when a canonical domain is set but the original URL is still needed. Requires scalingo provider ~> 2.7 (base_url attribute added in v2.3.0).
1 parent 862ae93 commit 2a09228

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ output "domain" {
2020
value = trimprefix((var.domain != null ? "https://${var.domain}" : scalingo_app.app.url), "https://")
2121
}
2222

23+
output "base_url" {
24+
description = "Default URL of the Scalingo application (without canonical domain override)."
25+
value = scalingo_app.app.base_url
26+
}
27+
2328
output "origin_domain" {
2429
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."
2530
value = "${scalingo_app.app.name}.${local.current_region}.scalingo.io"

0 commit comments

Comments
 (0)