AWS Cloud9

1 min read aws, cloud9

Written in 2020. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/aws-cloud9-playground.

  • learn AWS Cloud9
  • setup remote development environment

Enabling SSH Connectivity

  • add SSH inbound rule to Security Group
  • add ~/.ssh/id_rsa.pub to /home/ec2-user/.ssh/authorized_keys. do this via Cloud9 IDE shell
  • ssh -i ~/.ssh/id_rsa ubuntu@dev01.example.com

Troubleshooting

  • may need to connect via Cloud9 IDE to “wake up”/start instance due to “auto stop” of EC2 instance after X minutes.
  • May need to remote remote host in ~/.ssh/known_hosts on client if the following error
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    SHA256:<deleted>
    Please contact your system administrator.
    Add correct host key in ~/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in ~/.ssh/known_hosts:37
    ECDSA host key for dev01.example.com has changed and you have requested strict checking.
    Host key verification failed.
    

VS Code Remote Development on Cloud9

vscode remotely SSH connected screenshot

Resources

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.