Skip to content

Commit 9e514e7

Browse files
authored
Allow 'mi-' prefix for EC2 instance IDs
1 parent d384e64 commit 9e514e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-ssm-ssh-proxy-command.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ssh_user = $args[1]
2929
$ssh_port = $args[2]
3030
$ssh_public_key_path = $args[3]
3131

32-
$ec2InstanceIdPattern = '^i-[0-9a-f]{8,17}$'
32+
$ec2InstanceIdPattern = '^m?i-[0-9a-f]{8,17}$'
3333
if ($instance_name -match $ec2InstanceIdPattern) {
3434
$instance_id = $instance_name
3535
} else {

0 commit comments

Comments
 (0)