Automated Nodejs Server Launch in EC2 Instances: The AWS EC2 Fundamentals Series w/ J Cole Morrison
Автор: Tech Guides and Thoughts
Загружено: 2020-01-16
Просмотров: 165
Описание:
Sign up to my mailing list for exclusive tech guides and thoughts: https://list.jcolemorrison.com/
Welcome to The AWS EC2 Fundamentals Series with me, J Cole Morrison.
We've arrived! This is the final of the seven steps we've covered about the details of creating an EC2 instance with AWS. Now we're going to take what we did in the last video and automate it. This will include package installation, installing Node.js, pulling down a Node source code from a GitHub repository, and getting it up and live on the web.
Now this process is how I go about automating things for myself: I do the manual steps first to confirms what works and how to do it in the best way, then I go back and script them. This video is just like the last one up to a certain point so be sure to check out the technical steps below for the changes. Also, I've included a link to the Loopback application GitHub repo there as well.
Steps:
The Loopback Application GitHub Repo: https://github.com/jcolemorrison/ec2-...
1. Create the server IDENTICALLY as we did in the Quick Setup UNTIL Step 3: Configure Instance Details
2. On Step 3: Configure Instance Details, under 'Advanced Details' paste in the following to the 'User data' text box:
Make sure As text is selected
Input the following script from here: https://gist.github.com/jcolemorrison...
3. Continue with the exact same settings as we did in the Quick Setup.
4. After launch, navigate to your Instance's DNS Name or Public IP Address to see the app up and running
5. Logs are in ' app/stdout.log ' for the general logs and ' app/stderr.log ' for errors
Result - An EC2 server that can auto launch a Node.js server given a github repository that follows these rules:
1. It's on github
2. It's public
3. The command node . will start the application
An example of our userdata.sh script using a different Node start command, specifically ' npm start ' can be found here: https://gist.github.com/jcolemorrison...
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: