-
Zip entire api repo, including
.env
file -
Navigate to Elastic Beanstalk via the AWS Console
-
Select
Axsprodapi-env
from the available environments -
Click upload and deploy, and upload the zipped file
This will not be necessary until AWS stops supporting Node.js 16, and require an upgrade to a newer version
-
From the Elastic Beanstalk console, create a new environment
-
Select Web Server Envrionment
-
Name Application
-
From managed platfrom choose the Node.js version that you want the environemnt to be running
-
Under Application code, select upload your own code - You will need to zip the repo just like the mentioned in the Delopying new version section.
-
(Optional) - Give a custom version label
-
After environment has been created, navigate to that environment and head to the configuration tab
-
Ensure that all configs match the configs of
Axsprodapi-env
- this environment has everything the way it needs to be including ELB health check configs + inbound security rules -
Navigate to the Cloudflare console for axsmap.com
-
Under DNS, you will have to replace the CNAME for api to the new Elastic Beanstalk instance URL.