Skip to content

Commit aac2385

Browse files
authored
Allow 'mi-' prefix in EC2 instance ID pattern
1 parent 9e514e7 commit aac2385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-ssm-ssh-proxy-command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ssh_user="$2"
1919
ssh_port="$3"
2020
ssh_public_key_path="$4"
2121

22-
ec2InstanceIdPattern='^i-[0-9a-f]{8,17}$'
22+
ec2InstanceIdPattern='^m?i-[0-9a-f]{8,17}$'
2323
if [[ $instance_name =~ $ec2InstanceIdPattern ]]; then
2424
instance_id=$instance_name
2525
else

0 commit comments

Comments
 (0)