Skip to content

Commit e1e24d9

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ec2-instance-connect/aws-ssm-ssh-proxy-command.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $REGION_SEPARATOR = "--"
1717
$splitted_instance = $instance_id -split $REGION_SEPARATOR
1818
if ($splitted_instance.Length -gt 1) {
1919
$instance_id = $splitted_instance[0]
20-
$env:AWS_DEFAULT_REGION = $splitted_instance[1]
20+
$env:AWS_REGION = $splitted_instance[1]
2121
}
2222

2323
Write-Output "Add public key $ssh_public_key_path for $ssh_user at instance $instance_id for 60 seconds"

0 commit comments

Comments
 (0)