使用 Ansible playbook 在 AWS (Amazon) ec2 中部署 Play Framework 应用程序 [英] To deploy Play Framework apps in AWS (Amazon) ec2 using Ansible playbook

查看:41
本文介绍了使用 Ansible playbook 在 AWS (Amazon) ec2 中部署 Play Framework 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 AWS ec2 平台非常陌生.我想在 ec2 中部署我的 play 2.* 应用程序.此外,我需要在未来的更新中通过 git 部署它.我对它做了一个不错的研究,发现 Ansible playbook 可能是一个更好的解决方案.但我正在使用 Windows 并使用腻子将其配置为 ec2.现在我对命令行编程和AnsibleAnsible playbook 知之甚少.我需要一些帮助才能找到直接在 ec2 中通过 git 运行的解决方案.我正在互联网上分享一些有趣的阅读.

I am very new to AWS ec2 platform. I wanted to deploy my play 2.* app in the ec2. Also I need to deploy it through git in future update. I have done a decent research on it and found Ansible playbook could be a better solution to this. But I am using windows and configured it with ec2 using putty. Now I know very less about command line programming and Ansible and Ansible playbook. I need some help to find the solution for play to run in ec2 throug git directly. I am sharing some interesting read on Internet.

1 > 阅读以了解 Ansible 在 aws 中的部署

2 > Ansible + play + aws ec2

如果您在某个领域有任何知识或经验,请提供帮助.如果除此之外还有其他任何简单的方法可以在 ec2 中部署 play,您的帖子也会有所帮助.谢谢!

Please help if you have any knowledge or experience in certain field. If there is any easy way to deploy play in ec2 other than this, your post will also be helpful. Thanks!

推荐答案

Boxfuse 提供了一个我们认为非常有用的替代解决方案更容易.

Boxfuse offer an alternative solution which we believe is much easier.

借助 Boxfuse 的原生 Play 2 支持,您现在可以简单地执行

With Boxfuse's native Play 2 support you can now simply execute

boxfuse 运行 my-play-app-1.0.zip -env=prod

这将自动:

  • 为您的 Play 2 应用量身打造一个最小的 AMI
  • 创建弹性IP
  • 创建具有正确权限的安全组
  • 启动应用实例

所有未来的更新都以零停机时间的蓝/绿部署方式执行.

All future updates are performed as blue/green deployments with zero downtime.

这也适用于弹性负载均衡器和 Auto-Scaling 组,并且 Boxfuse 免费套餐旨在适应 AWS 免费套餐.

This also works with Elastic Load Balancers and Auto-Scaling Groups and the Boxfuse free tier is designed to fit the AWS free tier.

您可以在此处阅读更多相关信息:https://boxfuse.com/blog/playframework-aws

You can read more about it here: https://boxfuse.com/blog/playframework-aws

免责声明:我是 Boxfuse 的创始人兼 CEO

这篇关于使用 Ansible playbook 在 AWS (Amazon) ec2 中部署 Play Framework 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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