Code Monkey home page Code Monkey logo

aws-cli-elasticbeanstalk's Introduction

AWS-CLI Elasticbeanstalk

Installation

# Install/upgrade
$ pip install awscli --upgrade --user

# Verify installation
$ aws --version

# Uninstall 
$ pip uninstall awscli
$

The --upgrade option tells pip to upgrade any requirements that are already installed. The --user option tells pip to install the program to a subdirectory of your user directory to avoid modifying libraries used by your operating system.

Commands

For the full list of available commands, you can refer the official documentation here.

Setup Application

To create an application, we need to configure certain parameters. There are two options to create the application:

  1. Specifying all the parameters in the json file
  2. Specifying it in the cli when running aws-cli

Let's take a look at the first option. To print out the sample template of parameters that needs to be configured:

$ aws elasticbeanstalk create-application --generate-cli-skeleton

Output:

{
    "ApplicationName": "",
    "Description": "",
    "ResourceLifecycleConfig": {
        "ServiceRole": "",
        "VersionLifecycleConfig": {
            "MaxCountRule": {
                "Enabled": true,
                "MaxCount": 0,
                "DeleteSourceFromS3": true
            },
            "MaxAgeRule": {
                "Enabled": true,
                "MaxAgeInDays": 0,
                "DeleteSourceFromS3": true
            }
        }
    }
}

Save the output as config.json, fill in the name and desciption, and run the following command:

$ aws elasticbeanstalk create-application --cli-input-json config.json

For the second option, you can just run the following:

$ aws elasticbeanstalk create-application --application-name "test-application" \
--description "This is a test application"

Output:

Update application

The only fields that can be updated is the application description:

$ aws elasticbeanstalk update-application --application-name test-application --description "this is an edited description"

Delete application

Note: You cannot delete an application that has a running environment.

To delete the previous application that we created:

$ aws elasticbeanstalk delete-application --application-name test-application

In order to force delete an application that contains running environments:

$ aws elasticbeanstalk delete-application --application-name test-application --terminate-env-by-force true

Setup environment

If you have a running environment and wish to see the configuration:

$ aws elasticbeanstalk describe-configuration-settings  --application test-application --environment-name test-application-development

aws-cli-elasticbeanstalk's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.