Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Use whichever region you're working in
export AWS_DEFAULT_REGION=eu-west-1
# Make ec2-user's home dir the install to make it easier to navigate when subsequently ssh-ing in to instances
su ec2-user -
cd /home/ec2-user
echo Working dir is `pwd`