简体   繁体   English

使用 AWS ECS 服务部署微服务

[英]Microservice deployment using AWS ECS service

I am trying to creating a microservice using spring boot and trying to deploy using AWS ECS cloud service.我正在尝试使用 Spring Boot 创建微服务并尝试使用 AWS ECS 云服务进行部署。 I Have doubts in deployment using ECS.我对使用 ECS 进行部署有疑问。 In ECS there is a facility of EC2 launch type.在 ECS 中有一个 EC2 启动类型的设施。

Here my doubt is that, when I am using ECS EC2 launch type, can I choose my own Ubuntu machine instances?这里我的疑问是,当我使用 ECS EC2 启动类型时,我可以选择我自己的 Ubuntu 机器实例吗? I need to know whether the ECS provide provision to launch with my own Ubuntu machine?我需要知道 ECS 是否提供使用我自己的 Ubuntu 机器启动的配置?

Yes, you can use your own Ubuntu AMI, but it requires a little bit of work.是的,您可以使用自己的 Ubuntu AMI,但这需要一些工作。 Here are the requirements :以下是要求

A modern Linux distribution running at least version 3.10 of the Linux kernel.运行至少 3.10 版 Linux 内核的现代 Linux 发行版。

The Amazon ECS container agent (preferably the latest version). Amazon ECS 容器代理(最好是最新版本)。 For more information, see Amazon ECS Container Agent.有关更多信息,请参阅 Amazon ECS 容器代理。

A Docker daemon running at least version 1.5.0, and any Docker runtime dependencies.运行至少 1.5.0 版本的 Docker 守护程序,以及任何 Docker 运行时依赖项。 For more information, see Check runtime dependencies in the Docker documentation.有关更多信息,请参阅 Docker 文档中的检查运行时依赖项。

So, apart from installing Docker, you need o install and configure the ECS Agent.因此,除了安装 Docker,您还需要安装和配置 ECS 代理。 You will find the instructions here .您将在此处找到说明。 See section 'To install the Amazon ECS container agent on a non-Amazon Linux EC2 instance'请参阅“在非 Amazon Linux EC2 实例上安装 Amazon ECS 容器代理”部分

Once you have your AMI built, you just create your cluster and then launch the instances into it.构建 AMI 后,您只需创建集群,然后将实例启动到其中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM