Where to look in AWS when deploy (not push) fails?


So, after pushing then running the deploy-status command for about 2 minutes, I got the dreaded {:deploy-status "FAILED", :code-deploy-status "FAILED"}.

Where can I go from there? I’d look in Cloudwatch logs, but there are more than 30 log groups created by the stack, so it’s a bit of a needle in a haystack.

I went to see in CodeDeploy, and all I found there was

The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems

as well as the event:

Error code: ScriptFailed

Script name: scripts/deploy-validate

Message: Script at specified location: scripts/deploy-validate run as user datomic failed with exit code 1 


[stdout]Received 503
[stdout]Received 503
// [... a few dozens of the same elided]
[stdout]Received 503
[stdout]WARN: validation did not succeed after two minutes

This does not seem to be related to the application code, as deploying a revision that previously worked fails similarly.

Generally speaking, a checklist for troubleshooting Ions deployment (or more detailed error messages) would be appreciated.



Hi Val,

You should look at the specific log group for your Datomic system. It is named datomic-<your-system-name>

The details of the code failure in your ion deployment should appear in that group.

We intend to improve the clarity of naming of the other (internal) log groups going forward.