LoginSignup
4
3

More than 5 years have passed since last update.

awsebcliのexit codeが正しくない件

Last updated at Posted at 2016-07-27

問題

awsebcli v3.7.7だと実行が失敗してもエラーコードが0になってしまう。

$ eb --version
EB CLI 3.7.7 (Python 2.7.1)

$ eb deploy app-staging
WARNING: You have uncommitted changes.
Creating application version archive "app-5b75-260729_205520".
Uploading app-api/app-5b75-260729_205520.zip to S3. This may take a while.
Upload Complete.
ERROR: The configuration file .ebextensions/001.base.config in application version app-5b75-260729_205520 contains invalid YAML or JSON. YAML exception: mapping values are not allowed here
 in "<reader>", line 4, column 19:
        RootVolumeSize: '10'
                      ^
, JSON exception: Unexpected character (#) at position 0.. Update the configuration file.

$ echo $?
0

なんてこった。

回避

いろいろ試したところ、v3.7.4からの起こってるようなのでv3.7.3 を使う。

$ eb --version
EB CLI 3.7.3 (Python 2.7.1)

$ eb deploy app-staging
WARNING: You have uncommitted changes.
Creating application version archive "app-5b75-160727_215320".
Uploading app-api/app-5b75-160727_215320.zip to S3. This may take a while.
Upload Complete.
ERROR: The configuration file .ebextensions/001.base.config in application version app-5b75-160727_215320 contains invalid YAML or JSON. YAML exception: mapping values are not allowed here
 in "<reader>", line 4, column 19:
        RootVolumeSize: '10'
                      ^
, JSON exception: Unexpected character (#) at position 0.. Update the configuration file.

$ echo $?
4

ふう。

これはどこにフィードバックすれば良いんだろう。
aws forumに追記した

コードはgithubに公開して欲しいなぁ

4
3
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
4
3