Created
August 30, 2022 05:02
-
-
Save guterz/be065bc4c42c07a378ea335d2c92f68f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Aliases | |
alias cl='clear' | |
alias ll='ls -lah' | |
alias hg='history | grep $1' | |
#Functions | |
function rdp() { | |
aws ssm start-session --target $1 --document-name AWS-StartPortForwardingSession --parameters "localPortNumber=55678,portNumber=3389" --region $2; | |
}; | |
function ssm() { | |
aws ssm start-session --target $1 --region $2; | |
}; | |
function ssmportforward() { | |
aws ssm start-session --target $1 --document-name AWS-StartPortForwardingSession --parameters "localPortNumber=55678,portNumber=$2" --region $3; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment