AWS EC2 Virtual Machine Setup | Run Springboot Microservice and Postgres DB in EC2 Server

AWS EC2 Virtual Machine Setup | Run Springboot Microservice and Postgres DB in EC2 Server

In this video we will learn AWS cloud EC2 virtual machine setup from beginning. Also, deploy and run springboot microservice and postgres database setup in EC2 server.

1.????Create aws linux EC2 instance in AWS cloud from AWS management console.

2.????Adding firewall rule in the security group to open postgres db and microservice port.

3.????Connect to EC2 instance from local terminal using secret key pair.

4.????Download postgres database in AWS EC2 instance.

5.????Install postgres database in AWS EC2 instance.

6.????Update postgres db configuration to accept connection from remote machines.

7.????Connect postgres database in AWS EC2 instance from local machine

8.????Create schema and table in postgres database in AWS EC2 server.

9.????Insert data in postgres table in AWS EC2 server.

10. Query data from postgres table in AWS EC2 server.

11. Create springboot microservice application.

12. Create S3 bucket.

13. Update microservice jar to S3 bucket.

14. Transfer microservice jar from S3 bucket to AWS cloud EC2 server.

15. Run Microservice in EC2 virtual machine.

16. Test springboot microservice api using 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.

** Postgres Database **

PostgreSQL or Postgres is the most commonly used open-source relational database. It offers features like robustness, reliability, cost-free, etc. PostgreSQL serves as a data warehouse for multiple applications like web apps, mobile apps, etc. It enables us to store enormous and sophisticated data securely. PostgreSQL is a powerful, open-source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. PostgreSQL is used as the primary data store or data warehouse for many web, mobile, geospatial, and analytics applications. PostgreSQL is a traditional RDBMS (relational database management system) SQL database, like Oracle and MySQL.


** Springboot Microservice **

Springboot reduces lots of development time and increases productivity. It avoids writing lots of boilerplate Code, Annotations and XML Configuration. It is very easy to integrate Spring Boot Application with its Spring Ecosystem like Spring JDBC, Spring ORM, Spring Data, Spring Security etc. Microservices are independently manageable services. It can enable more and more services as the need arises. It minimizes the impact on existing service. The cost of scaling is comparatively less than the monolithic architecture. It is possible to change or upgrade each service individually rather than upgrading in the entire application. Microservices follows the single responsibility principle. Microservice has less dependency and easy to test. Microservice can scale dynamically as per load conditions and microservices has faster release cycle.


** Topics Covered **

1.????Introduction to AWS Cloud EC2 Server Setup.

2.????Explained EC2 and Postgres Database Architecture ?

3.????Creating AWS linux EC2 server from AWS management console.

4.????Adding firewall rule in security setting to open postgres db & microservice port.

5.????Connect to AWS EC2 server from local terminal using secret key pair.

6.????Download postgres database in EC2 instance.

7.????Install postgres database in EC2 instance.

8.????Update postgres db configuration to accept connection from remote machines.

9.????Connect postgres database in AWS EC2 instance from local machine

10. Create schema and table in postgres database in AWS EC2 server.

11. Insert data in postgres table in AWS EC2 server.

12. Query data from postgres table in AWS EC2 server.

13. Create springboot microservice application.

14. Create S3 bucket.

15. Update microservice jar to S3 bucket.

16. Transfer microservice jar from S3 bucket to AWS cloud EC2 server.

17. Run Microservice in EC2 virtual machine.

18. Test springboot microservice api using postman tool.



** Chapter Timestamps **

0:00 Welcome to AWS EC2 sever setup with Microservice and Postgres DB

1:05 Agenda of this tutorial

2:12 AWS Cloud EC2 Architecture with Springboot Microservice and Postgres DB

3:51 Create and Configure AWS Cloud EC2 virtual machine.

9:39 Connect to AWS EC2 Instance from Local Putty tool

11:41 Download and Install Postgres DB in AWS EC2 Server

19:13 Connect Postgres DB in AWS EC2 from local PgAdmin Tool

21:58 Create Schema and Table in Postgres DB in AWS EC2 Instance

23:11 Insert Data in Postgres DB in AWS EC2 Server

23:40 Query Data from Postgres DB in AWS EC2 Server

24:31 Springboot Microservice Project Setup

28:05 Create S3 Bucket in AWS cloud

29:39 Upload Microservice JAR to AWS S3 Bucket

31:08 Transfer JAR from S3 bucket to AWS EC2 instance

31:32 Java Installation in AWS EC2 server

32:31 Run springboot microservice in AWS EC2 Server

33:41 Testing springboot microservice api using postman tool

36:17 Summary of this Tutorial

?

#awscloud #springboot #postgres ?


** CHECK OUT OUR OTHER VIDEOS **

Create AWS EC2 Instance and Running Springboot Microservice in EC2: https://youtu.be/TLuuf4UsiXA

Create AWS EC2 Instance and Install MongoDB AWS EC2 Server:

https://youtu.be/Gz_7WMjv6sE

Create AWS EC2 Install and Install MongoDB and Run Microservice in AWS EC2 Server:

https://youtu.be/FI2M61Cotpw

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:

https://www.youtube.com/channel/UC9V0QYsWKz_OD2uooCtEtRg

Don’t forget to subscribe!


** OUR WEBSITE **

https://codeonedigest.wordpress.com/


** 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

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.dhirubhai.net/in/codeone-digest-10b418255/

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/

要查看或添加评论,请登录

社区洞察

其他会员也浏览了