What is the difference between AWSCLI and AWSEBCLI?

旧时模样 提交于 2020-01-04 05:17:20

问题


What is the difference between "AWS Command Line Interface" and "AWS Elastic Beanstalk Command Line Interface"?

Do I need both to deploy a Django project through AWS Elastic Beanstalk?

Thank you!


回答1:


You should start with the EBCLI and then involve the AWSCLI where the EBCLI falls short.

The AWSCLI (aws) allows you to run commands from a bunch of different services, whereas, the EBCLI (eb) is specific to Elastic Beanstalk. The EBCLI makes a lot of tedious tasks easier because it is less hands on than the AWS CLI. I have observed, for most of my tasks, the EBCLI is sufficient; I use the AWS CLI and the AWS SDKs otherwise.

Consider deploying your Django app.

  1. You could start off by performing eb init, which would take you through an interactive set of menus, from which you would choose your region, and solution stack (Python).

  2. Next, you would perform eb create, which creates an application version and subsequently an Elastic Beanstalk environment for you.

The above two EBCLI steps translate to half a dozen or more AWSCLI steps. Furthermore, a lot of the processes that the EBCLI hides from you involve multiple AWS services, which can make the task of replicating the EBCLI through the AWS CLI all the more tedious and error-prone.




回答2:


In the old days, every AWS service had its own command line.

The came the AWS "Unified" Command-Line Interface (CLI) that put everything under one command.

These days, it is recommended to use the aws command rather than the individual commands.




回答3:


You only need eb to deploy and control Elastic Beanstalk. You can use aws to control any other resource in AWS. You can also use aws for lower-level control of Elastic Beanstalk.



来源:https://stackoverflow.com/questions/47106848/what-is-the-difference-between-awscli-and-awsebcli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!