Pushing to an existing AWS Elastic Beanstalk application from the command line

前端 未结 3 879
孤街浪徒
孤街浪徒 2021-01-12 03:57

I\'ve used the web dashboard of Elastic Beanstalk to make an application and an environment. I know I can update that using the dashboard and uploading a zip file of my appl

3条回答
  •  天命终不由人
    2021-01-12 04:30

    To begin using git aws.push for your application you will have to initialize your git repository with AWS Beanstalk metadata. I'm assuming you are using git for version control (if you are not, you will have to initialize your project with git init first).

    $ cd angrywhopper
    $ git init #optional
    $ eb init
    ...
    $ git aws.push
    

    Walk through wizard steps, commit your code and push the app.

    Elastic Beanstalk container can be further customized by either rerunning eb init or with configuration file inside .ebextensions directory.

    If eb does not support something you would like to use, have a look at AWS Elastic Beanstalk API Command Line Interface, which is more feature-rich.

    More details on the configuration can be found in the following guides:

    • Customizing and Configuring AWS Elastic Beanstalk Environments
    • Customizing and Configuring a Python Container

    Make sure that service region in eb wizard is the same as region you pick in dashboard dropdown.

    NB: I would suggest to use temporary name in the beginning to make sure your app works as expected with the new workflow and then rename it to the original by rerunning eb init. Don't forget to terminate the temporary environment as soon as you done with the migration to avoid any unnecessary fees.

提交回复
热议问题