Skip to content

AWS Setup

Robert Konigsberg edited this page Jan 19, 2024 · 3 revisions

Very little data on this so far, but thanks to jimmoy@ on Discord. Edits welcome.

  • Create default Amazon Linux image
  • Instance type t2.medium. It might work with t2.small, I didn't try it, t2.micro too small to build TM successfully
  • As part of the creation process either configure keys for ssh so you can login and use the command line, or select one you already have
  • Add Inbound rule for port 8080 to the security group so players can access it
  • Install git, nvm, node, postgres client
  • Clone the TM repo and follow the Local Setup instructions
  • Get the game running on the default database, troubleshoot any mistakes from above
  • Create RDS/Postgres instance
  • Creation method "Easy" works, pick Aurora (PostgresQL Compatible) for the database
  • Choose to let it set up EC2 connection, the defaults work
  • Click Create database, don't take any "add-ons."
  • Login to your EC2 instance
  • The psql client should have been installed and you can use it to create the terraforming-mars database, see the Database wiki page in the repo
  • The above page has the format of the POSTGRES_HOST entry and the info comes from the RDS instance page