Skip to content

Commit f6f401f

Browse files
fix: Simplify output for elastic IP address in Mediamtx configuration
1 parent 2b35435 commit f6f401f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

infra/terraform/media_relay/main.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ output "instance_id" {
141141

142142
output "elastic_ip" {
143143
description = "Elastic IP address associated with the relay"
144-
value = var.existing_eip_allocation_id != null
145-
? data.aws_eip.existing[0].public_ip
146-
: aws_eip.mediamtx[0].public_ip
144+
value = var.existing_eip_allocation_id != null ? data.aws_eip.existing[0].public_ip : aws_eip.mediamtx[0].public_ip
147145
}
148146

149147
output "public_dns" {

0 commit comments

Comments
 (0)