プラットフォーム: java8 (Tomcat ではありません。Spring-Boot を使用しているため、組み込みの Tomcat を使用します)
だから私は以下のコマンドで圧縮しました
zip -r app.zip app.jar .ebextensions
.ebextensions には test.config ファイルが含まれます。
files:
"/etc/nginx/conf.d/test.conf":
mode: "000644"
owner: root
group: root
content: |
client_max_body_size 10M;
各 ec2 インスタンスを確認しますが、/etc/nginx/conf.d/test.conf は作成せず、/var/log/eb-activity.log
を確認します
[2017-10-15T05:12:32.538Z] INFO [2995] - [Application deployment prod-map-api-c0c8a00b590c593700ba85405010a85bea21ecd2@26/StartupStage0/AppDeployPreHook] : Starting activity...
[2017-10-15T05:12:32.538Z] INFO [2995] - [Application deployment prod-map-api-c0c8a00b590c593700ba85405010a85bea21ecd2@26/StartupStage0/AppDeployPreHook/01_configure_application.sh] : Starting activity...
[2017-10-15T05:12:33.164Z] INFO [2995] - [Application deployment prod-map-api-c0c8a00b590c593700ba85405010a85bea21ecd2@26/StartupStage0/AppDeployPreHook/01_configure_application.sh] : Completed activity. Result:
Executing: /usr/bin/unzip -o -d /var/app/staging /opt/elasticbeanstalk/deploy/appsource/source_bundle
Archive: /opt/elasticbeanstalk/deploy/appsource/source_bundle
inflating: /var/app/staging/map.jar
inflating: /var/app/staging/Procfile
creating: /var/app/staging/.ebextensions/
inflating: /var/app/staging/.ebextensions/test.config
Executing: HOME=/tmp /opt/elasticbeanstalk/lib/ruby/bin/ruby /opt/elasticbeanstalk/lib/ruby/bin/foreman export supervisord --procfile /var/app/staging/Procfile --root /var/app/current --app application --log /var/log/ --user webapp --template /opt/elasticbeanstalk/private/config/foreman/supervisord --env /var/elasticbeanstalk/staging/elasticbeanstalk.env /var/elasticbeanstalk/staging/supervisor
[foreman export] writing: application.conf
Executing: /opt/elasticbeanstalk/bin/log-conf -n supervisor -l'/var/log/supervisord.log' -t bundlelogs
Executing: /opt/elasticbeanstalk/bin/log-conf -n containerlistener -l'/var/log/eb-container-listener.log' -t bundlelogs
失敗メッセージが見つかりません...