Setting up an AWS EC2 instance: Deploying Spring Boot Microservice with MongoDB in an EC2 virtual machine

Setting up an AWS EC2 instance: Deploying Spring Boot Microservice with MongoDB in an EC2 virtual machine

HomecodeonedigestSetting up an AWS EC2 instance: Deploying Spring Boot Microservice with MongoDB in an EC2 virtual machine
Setting up an AWS EC2 instance: Deploying Spring Boot Microservice with MongoDB in an EC2 virtual machine
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
In this video, we will learn how to set up an Amazon EC2 server from scratch. Also, run Springboot microservice and NoSQL Mongo database on the EC2 server.

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable compute capacity in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, allowing you to 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 lets you scale up or down to accommodate changes in demand or spikes in popularity, reducing the need to predict traffic.

** Benefits of AWS EC2 instance **
AWS allows you to choose the operating system, programming language, web application platform, database, and other services you need. With AWS, you get a virtual environment where you can load the software and services your application needs. By using Amazon EC2, you don't have 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 a thorough understanding of running MongoDB in a Docker container. Mongo Database – A database is a physical container for collections. Each database maintains its own set of files in the file system. A single MongoDB server typically has multiple databases. Mongo DB Collection – A collection is a group of MongoDB documents. It corresponds to 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 runs on macOS, Windows, and Linux.

** Topics covered **
1. Introduction to AWS EC2 instance.
2. Explanation of the EC2 and MongoDB architecture
3. Create an AWS Linux EC2 instance using the AWS Management Console.
4. Add a firewall rule in the security group to open MongoDB and Microservice ports.
5. From the local terminal, log in to the EC2 instance using a secret key pair.
6. Download the Mongo database to the EC2 instance.
7. Install Mongo database on EC2 instance.
8. Update the MongoDB configuration to accept connections from remote computers.
9. Create a user in MongoDB.
10. Connect the Mongo Compass tool on the local machine to MongoDB in the EC2 instance.
11. Insert data into the Mongo database using Mongo Compass.
12. Creating Springboot microservices.
13. Build and compile the project to generate a JAR file.
14. Create an S3 bucket and upload the microservice jar.
15. Copy the microservice jar from the S3 bucket to the EC2 instance.
16. Start the microservice application
17. Test the getCustomer and postCustomer endpoints in the Postman tool

#mongodb #awsec2 #microservice

** CHECK OUT OUR OTHER VIDEOS **
Setting up an Amazon EC2 instance and running the 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 Dockerfile, container and build image: https://youtu.be/g_pdTzjnuso
Deploy Docker image to AWS Elastic Container Service: https://youtu.be/ZlR5onuwZzw
Run MongoDB in Docker container: https://youtu.be/r4Yl4SO1BiA

**CHECK OUR PLAYLISTS**
Full Spring Boot Tutorial https://youtube.com/playlist?listPL2NZAYdLkYvg_VlNmszrb-Um0wRx5yGDF
Cloud and container tutorial with AWS Cloud and Docker containers https://youtube.com/playlist?listPL2NZAYdLkYvhZQo2VTVCSug_zVjekNodi
Full Java Design Pattern Tutorial https://youtube.com/playlist?listPL2NZAYdLkYvglL0xl-4tgBAribrcjeuNH
GITHUB Repository Tutorial Complete Guide to GITHUB for Beginners
https://www.youtube.com/playlist?listPL2NZAYdLkYvh5inIifHYlpAX10IE3vVGS

** ABOUT OUR CHANNEL **
CodeOneDigest is a YouTube channel that produces videos on programming languages, cloud and container technologies, software design principles, and Java frameworks in English and Hindi.

Check out our channel here:
https://www.youtube.com/channel/UC9V0QYsWKz_OD2uooCtEtRg
Don't forget to register!

** OUR WEBSITE **
https://codeonedigest.wordpress.com/

** GET IN TOUCH **
Send us an email to [email protected]

FOLLOW US ON SOCIAL MEDIA – LIKE, SHARE AND SUBSCRIBE
Get updates or connect with us for updates on our social media profiles!
Subscribe: https://bit.ly/3NeWQ8U
Youtube: https://www.youtube.com/channel/UC9V0QYsWKz_OD2uooCtEtRg
Twitter: https://twitter.com/codeonedigest
Facebook: https://www.facebook.com/codeonedigest
Instagram: https://www.instagram.com/codeonedigest/
Linkedin: https://www.linkedin.com/in/codeone-digest-10b418255/
Github: https://github.com/codeonedigest
Website: https://codeonedigest.wordpress.com/
Tumblr: https://www.tumblr.com/codeonedigest

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.