在EC2上使用无业游民 [英] Using vagrant on EC2

查看:85
本文介绍了在EC2上使用无业游民的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在EC2上设置Web服务器和数据库服务器。
之后应该很容易迁移到另一个服务提供商。

I need to setup a web server and a database server on EC2. It should be easy to migrate to another service provider later.

当前,我有一个Web服务器和一个数据库服务器,它们分别在单独的EC2微型实例上运行,并且远程安装了软件。

Currently, I have a web server and a database server, each running on separate EC2 micro instances with software installed there remotely.

我们可以在这些微型实例上使用预先安装和预配置的软件(例如LAMP stack)运行一个无用的盒子吗?因此,我将以2个无用信息框结束,一个用于Web服务器,另一个用于数据库服务器。

Can we run a vagrant box on these micro instances with pre-installed and pre-configured softwares like LAMP stack and use that instead. So I will end with 2 vagrant boxes , one for web server another for database server.

Amazon已经提供了复制实例的方法,但仅将其复制到另一个EC2实例可能..如果需要转移到其他提供程序,则重新安装全部程序的过程相同。因此,我一直在研究在亚马逊的虚拟盒子上安装一个自己的虚拟盒子。

Amazon provides already means to copy an instance but it is copied to another EC2 instance only probably .. If there is need to move to some other provider, it will be same process of re-installing all. So, an own virtual box installed on Amazon's virtual box is what i was looking into..

我不知道它的好坏。这也会影响性能。请分享您的看法。目标是让环境在本地进行准备,并具有灵活性,可以轻松地将其部署到任何服务提供商上。

I don't know how good or bad it is.. I doubt if this will affect performance as well. Please share your views. Target is to have env prepared locally and have flexibility to deploy it on any service provider easily.

推荐答案

在您的AWS盒子内运行无业游民可能不是正确的解决方案。您是否调查过无所事事的AWS提供程序

Running vagrant inside your AWS box is probably not the right solution. Have you looked into the Vagrant AWS provider?

允许您使用Vagrant和Puppet或Chef设置和配置您的AWS盒子...如果您使用Puppet或Chef来配置服务器,则将为您的服务器准备一个非常便于移植的脚本安装,可以轻松地将其移动到其他服务器提供商…

That will allow you to setup and provision your AWS boxes with Vagrant and Puppet or Chef... if you are using Puppet or Chef to provision your servers then you will have a very portable "scripted" install for your servers that can easily be moved to another provider at a later date...

这篇关于在EC2上使用无业游民的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆