Deploying in Cloud (AWS)

This chapter will explore manually deploying microservices in AWS EC2 instances and using CloudFormation scripts. You will learn here how to run a Docker-enabled Spring Boot microservice application on the Amazon Elastic Compute Cloud (EC2) instances.

In previous chapters, we have discussed different aspects of the microservices architecture and its benefits, such as it is highly scalable, fault-tolerant, and so on. However, there are many challenges with the microservices architecture, such as managing the deployment of microservices and infrastructure dependencies for distributed applications. Containerization comes with a solution for these problems. Docker provides a containerization approach to develop and deploy microservices without infrastructure dependencies. We have already discussed Docker in Chapter 12, Containerizing Microservice. We can easily deploy Docker containers to Amazon Web Services (AWS), Azure, Pivotal Cloud Foundry, and so on.

This chapter will cover the following topics:

  • Spinning up an AWS EC2 instance
  • Microservices architecture on AWS
  • Publishing microservices to the Docker Hub
  • Installing Docker on AWS EC2
  • Running microservices on AWS EC2

At the end of this chapter, you will have a better understanding of how to manually deploy microservices and Docker containers to AWS EC2 instances and use CloudFormation scripts.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.163.197