LoginSignup
5
6

More than 5 years have passed since last update.

Beanstalk AWS CLI

Last updated at Posted at 2014-05-30

自分用メモ。とりあえず情報見る系のやつ。
更新系のやつはまだ使ったことない。

ドキュメント

使い方

$ aws elasticbeanstalk <サブコマンド>

サブコマンド一覧

o check-dns-availability

o create-application
o create-application-version
o create-configuration-template
o create-environment
o create-storage-location

o delete-application
o delete-application-version
o delete-configuration-template
o delete-environment-configuration

o describe-application-versions
o describe-applications
o describe-configuration-options
o describe-configuration-settings
o describe-environment-resources
o describe-environments
o describe-events

o help

o list-available-solution-stacks

o rebuild-environment
o request-environment-info
o restart-app-server
o retrieve-environment-info
o swap-environment-cnames
o terminate-environment

o update-application
o update-application-version
o update-configuration-template
o update-environment

o validate-configuration-settings

アプリケーションの一覧 ( describe-applications )

コマンド

$ aws elasticbeanstalk describe-applications

出力

{
    "Applications": [
        {
            "ApplicationName": "アプリ名",
            "Description": "アプリ説明",
            "Versions": [
                "git-xxxxxxxxxxxxxxxxx-xxxxx",
                "git-xxxxxxxxxxxxxxxxx-xxxxx"
            ],
            "DateCreated": "2014-05-10T01:42:16.934Z",
            "ConfigurationTemplates": [
                "テンプレート1",
                "テンプレート2"
            ],
            "DateUpdated": "2014-05-19T01:42:16.934Z"
        }
    ]
}

ENVIRONMENT の一覧 ( describe-environments )

コマンド

$ aws elasticbeanstalk describe-environments

出力

{
    "Environments": [
        {
            "ApplicationName": "アプリ名",
            "EnvironmentName": "環境名",
            "VersionLabel": "git-xxxxxxxxxxxxxxx-yyyyyyyy",
            "Status": "Ready",
            "EnvironmentId": "e-xxxxxxx",
            "EndpointURL": "internal-awseb-xxxx.ap-northeast-1.elb.amazonaws.com",
            "SolutionStackName": "64bit Amazon Linux 2014.03 v1.0.2 running PHP 5.5",
            "CNAME": "xxxxxxxx.elasticbeanstalk.com",
            "Health": "Green",
            "Tier": {
                "Version": "1.0",
                "Type": "Standard",
                "Name": "WebServer"
            },
            "DateUpdated": "2014-05-29T10:10:37.226Z",
            "DateCreated": "2014-05-28T02:46:55.154Z"
        }
    ]
}

リソースの一覧 ( describe-environment-resources )

コマンド

$ aws elasticbeanstalk describe-environment-resources --environment-name=<環境名>

出力

{
    "EnvironmentResources": {
        "EnvironmentName": "xxxxxxx",
        "AutoScalingGroups": [
            {
                "Name": "xxxxxxxx"
            }
        ],
        "Triggers": [],
        "LoadBalancers": [
            {
                "Name": "xxxxxxxx"
            }
        ],
        "Queues": [],
        "Instances": [
            {
                "Id": "i-xxxxxx"
            },
            {
                "Id": "i-xxxxxx"
            }
        ],
        "LaunchConfigurations": [
            {
                "Name": "awseb-xxxxxxxxxxxxxxxx"
            }
        ]
    }
}

設定一覧 ( describe-configuration-settings )

コマンド

$ aws elasticbeanstalk describe-configuration-settings \
  --application-name=<アプリ名> \
  --environment-name=<環境名>
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6