Skip to content

Instantly share code, notes, and snippets.

View Mat-moran's full-sized avatar

Amadeo Morán Mat-moran

View GitHub Profile
@Mat-moran
Mat-moran / gist.md
Last active August 2, 2022 16:40 — forked from ArcRanges/gist.md
aws-ec2-nextjs

Instructions to properly set up a production-ready NextJS App with AWS

This is a summary of how to start your own NextJS app, create the repo on Github, upload later in an AWS EC2 Instance and automate the process with AWS Codebuild, CodeDeploy, & CodePipeline.

After following these instructions you should be able to:

  • Create a NextJS App
  • Create an AWS EC2 instance
  • Be able to SSH to an EC2 instance
  • Prepare the instance as a Node environment
  • Configure Nginx service for proper routing
  • Configure domain and add SSL