简体   繁体   English

AWS CodeDeploy?

[英]AWS CodeDeploy?

My app is created using elastic-beanstalk aws service, do I need to use the AWS CodeDeploy service to deploy my app? 我的应用程序是使用elastic-beanstalk aws服务创建的,是否需要使用AWS CodeDeploy服务来部署我的应用程序?

Currently I just do: 目前我只做:

eb deploy myApp

Then, a new application version is deployed without using AWS CodeDeploy. 然后,不使用AWS CodeDeploy部署新的应用程序版本。 So, AM I doing something wrong? 所以,我做错什么了吗?

Elastic beanstalk do it on your behalf. 弹性beantalk代表您执行此操作。 During deployment process you define some polices and roles, which defines elastic beanstalk will call these services on your behalf. 在部署过程中,您将定义一些策略和角色,这些策略和角色将定义弹性beantalk来代表您调用这些服务。 Codedeploy is one of that services. Codedeploy是其中一项服务。 Elasticbeanstalk does automation of your process only and setup thet whole deployment environment for you (php,nginx/apache in case of web), if you look /opt/elasticbeanstalk/, you can see codedeploy folder there, which means that you do not need to do it manually. Elasticbeanstalk仅执行流程自动化,并为您设置整个部署环境(如果是Web,则为php,nginx / apache),如果您查看/ opt / elasticbeanstalk /,则可以在此处看到codedeploy文件夹,这意味着您不需要手动进行。

AWS code deploy is different workaround and provides more controlling. AWS代码部署是另一种解决方法,可提供更多控制。 How you want your changes to be pushed, is it to be pushed on all instances an once or one by one, minimum number of healthy instances. 您希望如何推送您的更改,是在所有实例上一次或一次地推送最小数量的正常实例。

Check here- 在这里检查

http://cloudacademy.com/blog/how-to-deploy-application-code-from-s3-using-aws-codedeploy/ http://cloudacademy.com/blog/how-to-deploy-application-code-from-s3-using-aws-codedeploy/

http://blog.powerupcloud.com/2016/03/24/deployment-automation-using-aws-code-depoly/ http://blog.powerupcloud.com/2016/03/24/deployment-automation-using-aws-code-depoly/

https://blogs.aws.amazon.com/application-management/post/Tx33XKAKURCCW83/Automatically-Deploy-from-GitHub-Using-AWS-CodeDeploy https://blogs.aws.amazon.com/application-management/post/Tx33XKAKURCCW83/Automatically-Deploy-from-GitHub-Using-AWS-CodeDeploy

You can update the your application with new version. 您可以使用新版本更新您的应用程序。 CLI as follows $eb deploy --version CLI如下$ eb deploy --version

You are not doing anything wrong. 您没有做错任何事。 EB Deploy will enable you to deploy your apps being served from Elastic Beanstalk. EB Deploy使您能够部署从Elastic Beanstalk提供服务的应用程序。 AWS Code Deploy on the other hand is more flexible & gives you more control, you can for example, deploy apps you are serving from EC2 thats not being managed by Elastic Beanstalk. 另一方面,AWS Code Deploy更加灵活并为您提供了更多控制权,例如,您可以部署从EC2提供服务的应用程序,这些应用程序不受Elastic Beanstalk管理。

With AWS you can for example deploy to multiple environments ie development, staging, production. 例如,借助AWS,您可以部署到多个环境,即开发,登台,生产。

Elastic Beanstalk and CodeDeploy are totally different AWS services and independent of each other and follow different deployment approaches. Elastic Beanstalk和CodeDeploy是完全不同的AWS服务,彼此独立,并遵循不同的部署方法。

What you're doing is totally correct to deploy a new version of your code. 您所做的工作完全正确,因此可以部署新版本的代码。

AWS Elastic-bean-stalk本身具有良好的功能,可以很好地部署应用程序。您无需再次使用AWS代码部署,这将是多余的。您可以使用beantalk工具本身来部署代码。

AWS CodeDeploy is a building block service focused on helping developers deploy and update software on any instance, including Amazon EC2 instances and instances running on-premises. AWS CodeDeploy是一个构建块服务,旨在帮助开发人员在任何实例(包括Amazon EC2实例和本地运行的实例)上部署和更新软件。 AWS Elastic Beanstalk (as well as AWS OpsWorks btw) are end-to-end application management solutions. AWS Elastic Beanstalk(以及AWS OpsWorks btw)是端到端的应用程序管理解决方案。 When it comes to deploying new software release on Beanstalk, you better use the own deployment process provided to you by Beanstalk. 在Beanstalk上部署新软件版本时,最好使用Beanstalk提供给您的自己的部署过程。

eb deploy myApp

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

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