AWS: ERROR: Pre-processing of application version xxx has failed and Some application versions failed to process. Unable to continue deployment

AWS: ERROR: Pre-processing of application version xxx has failed and Some application versions failed to process. Unable to continue deployment

您好,我正在尝试将节点应用程序从云 9 部署到 ELB,但我一直收到以下错误。

Starting environment deployment via CodeCommit --- Waiting for Application Versions to be pre-processed --- ERROR: Pre-processing of application version app-491a-200623_151654 has failed. ERROR: Some application versions failed to process. Unable to continue deployment.

我附上了一张我拥有的 IAM 角色的图片。有什么解决办法吗?

转到您的控制台并打开您的 Elastic Beanstalk 控制台。转到应用程序和环境并将它们删除。然后在你的终端点击

eb init #Follow instructions

eb create --single ##Follow instructions. 

它将修复由于某些应用程序状态失败而导致的错误。如果你想检查那些

aws elasticbeanstalk describe-application-versions