AWS EC2 Instance Setup and Run Springboot Microservice and MongoDB in EC2 Server
codeonedigest cod
Solutions Architect at Publicis Sapient and passionate youtuber
In this video we will learn amazon EC2 server setup from beginning. Also, run springboot microservice and nosql mongo database in EC2 sever.
1.????Creating aws linux EC2 instance from AWS management console.
2.????Adding firewall rule in the security group to open mongodb and microservice ports.
3.????Login to EC2 instance from local terminal using secret key pair.
4.????Download mongo database in EC2 instance.
5.????Install Mongo database in EC2 instance.
6.????Update mongodb configuration to accept connection from remote machines.
7.????Create user in mongodb.
8.????Connect mongo compass tool in local machine to mongodb in EC2 instance.
9.????Insert data in mongo database using mongo compass.
10. Creating Springboot Microservices.
11. Build and compile the project to generate jar.
12. Create S3 bucket and upload microservice jar.
13. Copy microservice jar from S3 bucket to EC2 instance.
14. Start microservice application
15. Test getCustomer and postCustomer endpoints in postman tool
** Introduction of AWS EC2 Instance **
Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage. Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic.
** Benefits of AWS EC2 Instance **
AWS enables you to select the operating system, programming language, web application platform, database, and other services you need. With AWS, you receive a virtual environment that lets you load the software and services your application requires. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage.
** NoSQL MongoDB **
MongoDB is an open-source document database and leading NoSQL database. This video will give you complete understanding of running the MongoDB in docker container. Mongo Database - Database is a physical container for collections. Each database gets its own set of files on the file system. A single MongoDB server typically has multiple databases. Mongo DB Collection - Collection is a group of MongoDB documents. It is the equivalent of an RDBMS table. A collection exists within a single database. Collections do not enforce a schema. MongoDB Compass - MongoDB Compass is a powerful GUI for querying, aggregating, and analyzing your MongoDB data in a visual environment. Compass is free to use and can be run on macOS, Windows, and Linux.
** Topics Covered **
1.????Introduction to AWS EC2 instance.
2.????Explained EC2 and MongoDB Architecture ?
3.????Creating aws linux EC2 instance from AWS management console.
4.????Adding firewall rule in the security group to open mongodb and microservice ports.
5.????Login to EC2 instance from local terminal using secret key pair.
6.????Download mongo database in EC2 instance.
7.????Install Mongo database in EC2 instance.
8.????Update mongodb configuration to accept connection from remote machines.
9.????Create user in mongodb.
10. Connect mongo compass tool in local machine to mongodb in EC2 instance.
11. Insert data in mongo database using mongo compass.
12. Creating Springboot Microservices.
13. Build and compile the project to generate jar.
14. Create S3 bucket and upload microservice jar.
15. Copy microservice jar from S3 bucket to EC2 instance.
16. Start microservice application
17. Test getCustomer and postCustomer endpoints in postman tool
** Chapter Timestamps **
0:00 Welcome to AWS EC2 sever setup with Microservice and MongoDB
0:52 Agenda of this tutorial
1:54 EC2 Architecture with Microservice and MongoDB
3:28 Create and Configure AWS EC2 Instance
9:20 Connect to EC2 Instance from Local Putty tool
11:21 Download and Install MongoDB in AWS EC2 Server
12:29 Start MongoDB in AWS EC2 Server
13:02 Update MongoDB Config to allow Remote Connection
14:16 Create user in MongoDB in EC2 instance
15:00 Create firewall rule in EC2 to open port for MongoDB
16:50 Connect MongoDB in EC2 from local Mongo Compass tool
17:42 Insert Data in MongoDB in EC2
20:14 Introduction of Springboot Microservice
领英推荐
24:09 Compile and build Springboot microsevice
24:36 Create and configure S3 bucket
26:05 Upload Jar to S3 bucket
27:35 Copy Jar from S3 bucket to EC2 server
28:37 Install Java in AWS EC2 Server
29:21 Start microservice in AWS EC2 Server
31:25 Testing microservice endpoint in postman tool
33:40 Summary of EC2 Server Microservice and MongoDB
?
?
?
** CHECK OUT OUR OTHER VIDEOS **
Amazon EC2 Instance Setup and Running Springboot Microservice in EC2: https://youtu.be/TLuuf4UsiXA
Spring boot project setup: https://youtu.be/bsgA20eJKxs
Spring Boot Microservice with postgres database Project: ?https://youtu.be/iw4wO9gEb50
Prepare Docker file, Container and Build Image: https://youtu.be/g_pdTzjnuso
Deploy Docker Image AWS Elastic Container Service: https://youtu.be/ZlR5onuwZzw
Run MongoDB in Docker Container: https://youtu.be/r4Yl4SO1BiA
?
** CHECK OUR PLAYLISTS **
Spring Boot Complete Tutorial https://youtube.com/playlist?list=PL2NZAYdLkYvg_VlNmszrb-Um0wRx5yGDF
Cloud & Container Tutorial with AWS Cloud and Docker Containers https://youtube.com/playlist?list=PL2NZAYdLkYvhZQo2VTVCSug_zVjekNodi
Java Design Pattern Complete Tutorial https://youtube.com/playlist?list=PL2NZAYdLkYvglL0xl-4tgBAribrcjeuNH
GITHUB Repository Tutorial | Complete Guide to GITHUB for Beginners
https://www.youtube.com/playlist?list=PL2NZAYdLkYvh5inIifHYlpAX10IE3vVGS
??
** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.
Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.
Check out our channel here:
Don’t forget to subscribe!
** OUR WEBSITE **
** GET IN TOUCH **
Email us on [email protected]
FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Subscribe: https://bit.ly/3NeWQ8U
Twitter: https://twitter.com/codeonedigest
Facebook: https://www.facebook.com/codeonedigest
Instagram: https://www.instagram.com/codeonedigest/
Reddit: https://www.reddit.com/user/codeonedigest
Github: https://github.com/codeonedigest
Website: https://codeonedigest.wordpress.com/
Tumblr: https://www.tumblr.com/codeonedigest
Pinterest: https://in.pinterest.com/codeonedigest/