Update SSM tunnel script

This commit is contained in:
2020-06-25 11:19:02 +02:00
parent 52359079de
commit 06d7d7801d

View File

@ -5,10 +5,10 @@ function ssm_tunnel --description 'access private AWS ressources via Bastion Hos
return return
end end
if [ "$env" != "ops" ] #if [ "$AWS_PROFILE" != "twaice-ops"* ]
echo "Switch to OPS ENV first" # echo "Switch to OPS ENV first"
return # return
end #end
# Get bastion host ID using it's name # Get bastion host ID using it's name
set INSTANCE_ID (aws ec2 describe-instances \ set INSTANCE_ID (aws ec2 describe-instances \