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
# Assumptions: | |
# - SSM agent is installed on instance | |
# - Netcat is installed on instance | |
# - Port 1234 is accessible and no other process is listening | |
# Set instance id | |
export INSTANCE_ID="i-123123123" | |
# Shell 1: Start session | |
aws ssm start-session --target $INSTANCE_ID |