Skip to content

Commit 4ead1e9

Browse files
authored
Update aws-ssm-ssh-proxy-command.ps1
1 parent ff8e80c commit 4ead1e9

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
@@ -47,7 +47,7 @@ $REGION_SEPARATOR = "--"
4747
$splitted_instance = $instance_id -split $REGION_SEPARATOR
4848
if ($splitted_instance.Length -gt 1) {
4949
$instance_id = $splitted_instance[0]
50-
$env:AWS_DEFAULT_REGION = $splitted_instance[1]
50+
$env:AWS_REGION = $splitted_instance[1]
5151
}
5252

5353
Write-Output "Add public key $ssh_public_key_path for $ssh_user at instance $instance_id for 10 seconds"

0 commit comments

Comments
 (0)