My Elastic Beanstalk container uses container_commands to run a script to patch the database on every deployment.
I run the deployments with a home-brewed script that calls the UpdateEnvironment on the Elastic Beanstalk API.
The problem is, I have no visibility on the output of my container_commands
, which is pretty scary during deployment. The only way I can tell if something went wrong is when a command returns a non-zero value: in that case DescribeEvents will report a problem. But still, I have no way to get the actual output of the command.
How can I get my container_commands
output after the deployment has finished?
Ideally, with the Elastic Beanstalk API, but any other programmatic way will be fine!
Not a console view, but it is (now) visible in the logs.
.ebextensions/10-log.config
/var/log/cfn-init.log after deployment
Reply from the AWS support:
So unfortunately there is no way to do that (yet).