Skip to content

Commit c6c0b01

Browse files
fix: Remove websocket prefix from domain name output (#118)
1 parent 6c3d6a4 commit c6c0b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ output "stage_id" {
103103

104104
output "stage_domain_name" {
105105
description = "Domain name of the stage (useful for CloudFront distribution)"
106-
value = replace(try(aws_apigatewayv2_stage.this[0].invoke_url, ""), "/^https?://([^/]*).*/", "$1")
106+
value = replace(try(aws_apigatewayv2_stage.this[0].invoke_url, ""), "/^(wss?|https?)://([^/]*).*/", "$2")
107107
}
108108

109109
output "stage_arn" {

0 commit comments

Comments
 (0)