Skip to content

Instantly share code, notes, and snippets.

@guterz
Created August 30, 2022 05:02
Show Gist options
  • Save guterz/be065bc4c42c07a378ea335d2c92f68f to your computer and use it in GitHub Desktop.
Save guterz/be065bc4c42c07a378ea335d2c92f68f to your computer and use it in GitHub Desktop.
#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