How To Deploy Apollo Server To Elastic Beanstalk

Deploying an application to Elastic Beanstalk was pretty tricky for me at first. It's pretty simple but somehow I messed it up so many times. Here is a guide to get you started so you don't make the same mistakes I did.

First things first

  1. clone or download this repo
  2. navigate to wherever you downloaded it
  3. click on the apollo-server-elastic-beanstalk folder
  4. highlight everything, right click and create a zip called
  5. we will be using this zip later so just hang on to it for now

    Alt Text

Getting Started with Elastic Beanstalk

Sign into your AWS console Or go to if you haven't made an account

Once you've signed in or created your account you will be greeted with this page. Go ahead and search for Elastic Beanstalk. Click the "Elastic Beanstalk" from the suggestions list

Alt Text

Click the blue "Get Started" button

Alt Text

This is where we will configure our Elastic Beanstalk environment and application.

Alt Text

Go ahead and do the following:

  1. Application name: apollo-server
  2. Platform: Node.js
  3. Upload your code: click "upload" button a window will pop up that looks like this:

Alt TextNow we wait...

Finishing up

If followed each step correctly you should see something like this. Success!

Click on the URL that was generated at the top and see your new application in all of its glory!

Alt Text

This is a pretty simple setup. Stay tuned for a more complicated example. :)