Skip to content

Commit 8b05baf

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 b7871cf commit 8b05baf

2 files changed

Lines changed: 6 additions & 1 deletion

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"

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
scalingo = {
66
source = "scalingo/scalingo"
7-
version = "~> 2.2"
7+
version = "~> 2.7"
88
}
99

1010
environment = {

0 commit comments

Comments
 (0)