Member-only story
Deploy from GitHub to EC2 with AWS CodeDeploy
This tutorial assumes that the changes from the following two tutorials: Setting up and AWS environment for development and Team work, with Visual Studio Code and GitHub , have been already applied.
The following will show you how to create and connect to a virtual machine (VM) on AWS using the Visual Studio Code Remote — SSH extension. You’ll be able to run a ReacJS app in development on a remote machine with VS Code just like if the source code was local. This documentation is based on Remote development over SSH article and the usage of AWS CodeDeploy extension.
Running Docker in development is CPU intensive so, in real life the chosen EC2 instances should be in the following margins:
- minimum: t2.large (8 GiB RAM + 2 vCPU) at 0.0928 USD per Hour with a Linux OS
- recommended: r5.large (16 GiB RAM + 2 vCPU)
Prerequisites:
- Download and install Visual Studio Code
- Install the Remote —…