MERN App on AWS EC2 Using User Data
Автор: Anupam Gupta
Загружено: 2021-03-06
Просмотров: 144
In the last video, I have described the simplest way to run the full stack application on EC2 (developer mode). And we did perform lots of manual steps to install different utilities and starting the application.Amazon EC2 provides a way to pass the "user data" to the instance that can be used to perform automated configuration tasks or to execute scripts after the instance starts. Now, we will utilize user data to automate those manual steps. The idea here is that we will pass the script as user data and when the instance is up and running, our Full Stack application should also be up and running.
You can also read the step by step instructions at: https://techclub.co.in/mern-based-ful...
I have observed one error in the user data script, please use the below sed command to change the mongodb connection details:
sed -i 's+mongodb://localhost:27017/taskmanager+mongodb\+srv://(username):(password)@cluster0.fcftx.mongodb.net/myFirstDatabase?retryWrites=true\&w=majority+g' configs.js
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: