Skip to content

Commit 326cd22

Browse files
feat: Add key_name variable for EC2 SSH access and update example configuration
1 parent 70a27fd commit 326cd22

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

infra/terraform/media_relay/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Key variables:
2121
| `publish_user` / `publish_pass` | Credentials the SBC uses to publish | **required** |
2222
| `viewer_user` / `viewer_pass` | Playback credentials (`viewer_user=any` allows anonymous access) | `any` / empty |
2323
| `allowed_cidrs` | List of CIDR blocks allowed to reach the relay | `["0.0.0.0/0"]` |
24+
| `key_name` | EC2 key pair used for SSH access | `orion` |
2425
| `existing_eip_allocation_id` | Allocation ID of an existing Elastic IP to reuse | `null` |
2526
| `mediamtx_version` | Container tag pulled from Docker Hub | `1.15.3` |
2627
| `tags` | Extra tags applied to every resource | `{}` |

infra/terraform/media_relay/terraform.tfvars.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ viewer_user = "any"
66
viewer_pass = ""
77
allowed_cidrs = ["0.0.0.0/0"]
88
instance_type = "t3.small"
9+
#key_name = "orion"
910
#existing_eip_allocation_id = "eipalloc-0123456789abcdef0"

infra/terraform/media_relay/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ variable "instance_type" {
4949
variable "key_name" {
5050
description = "Optional EC2 key pair name for SSH access"
5151
type = string
52-
default = null
52+
default = "orion"
5353
}
5454

5555
variable "vpc_id" {

0 commit comments

Comments
 (0)