Skip to content

Commit 582b0b5

Browse files
committed
fix error when captioner_enabled=false
1 parent 5251560 commit 582b0b5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tf/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ locals {
4343
}
4444

4545
captioner_medialive_settings = {
46-
for k, _p in var.captioner_channels :
46+
for k, _p in(var.captioner_enabled ? var.captioner_channels : {}) :
4747
k => {
4848
public_outbound_ip = data.aws_eip.medialive-channel-public-outbound[k].public_ip
4949
private_input = {

tf/parametersheet.html.tftpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
<body>
1313
<h1>RubyKaigi RTMP Parameters</h1>
1414

15-
<p>Main の URL とストリームキーが通常利用する環境、Backup がバックアップとして用意している環境です。指示がない限り Main へ配信を行ってください。なお、Main には会場ネットワークからでしか接続できません。</p>
15+
<p>Main の URL と Stream Key が通常利用する環境、Backup がバックアップとして用意している環境です。障害等による指示がない限り Main へ配信を行い、<b>Backup へは配信をしないでください (帯域の節約のため)</b>。なお、Main には会場ネットワークに限って接続できます。</p>
16+
<p>Stream Key は一部のエンコーダーでは [ストリーム名] として設定項目が用意されている場合があります。</p>
1617

1718
%{ for channel_name, settings in medialive_settings ~}
1819
<hr>
19-
<h2><code>${channel_name}</code></h2>
20+
<h2><code>Channel: ${channel_name}</code></h2>
2021

2122
<h3>Main</h3>
2223
<p>

0 commit comments

Comments
 (0)