amazon-web-servicesamazon-elastic-beanstalkaws-cloud9

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


Hi I am trying to deploy a node application from cloud 9 to ELB but I keep getting the below error.

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.

I have attached an image of the IAM roles that I have. Any solutions?


Solution

  • Go to your console and open up your elastic beanstalk console. Go to both applications and environments and delete them. Then in your terminal hit

    eb init #Follow instructions
    
    eb create --single ##Follow instructions. 
    

    It would fix the error, which is due to some application states which are failed. If you want to check those do

    aws elasticbeanstalk describe-application-versions