πŸ–₯️EC2

How to access your EC2 resources.

EC2 Instances (AWS)

Creating the Instance

  • Find the AMI, create an EC2 instance

Navigate to the AMI images
Start New Instance from the AMI You Need
Configure and Start Your Instance

Connecting to the Instance

To access your instance:

  • Save your .pem to your local directory at ~/.ssh/your-rsa-key.pem.

  • Change the permissions to the file using

chmod 400 ~/.ssh/your-rsa-key.pem
  • Create and/or open the ~/.ssh/config file and update it with your configuration.

Host your-preferred-alias-name
HostName ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com
User ec2-user
IdentityFile ~/.ssh/your-rsa-key.pem
Port 22
  • Download the SSH - Remote plugin for VSCode and select the Host to connect.

Configure Gitterup

Prerequisites: GitHub SSH and GPG have both been set up.

  • Copy the gitterup binary to /usr/bin directory and change permissions to include execution sudo chmod 700 /usr/bin/gitterup

  • Make sure the /tmp directory has the config files required.

cd /tmp
mkdir build
cd build
mkdir config
cd config
touch config.env
nano config.env
  • Paste the content from the file found here and save and exit.

  • Add your github_pz key pairs to the remote instance ~/.ssh folder

  • Execute the gitterup command with appropriate arguments.

Last updated