Closed sunmingtao closed 4 years ago
Noticing the environment's platform is node js Node.js 12 running on 64bit Amazon Linux 2/5.0.0
, I suspect I can't simply have an index.html
file there. It may need to have package.json
file, etc. So without re-running the pipeline, I just upload 'Upload and deploy` an index.html file and get the same error.
The fix is committing all the files from the code/beanstalk/nodejs-v2-blue and restarting the deploy.
Follow the tutorial on https://www.udemy.com/course/aws-certified-developer-associate-dva-c01/learn/lecture/11851328#overview Instead of committing all the files, I only commit index.html Create pipeline, choose git repo, branch, choose beanstalk, the dev env, which previously deployed a sample app.
Get error:
Deployment completed, but with errors: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. Failed to deploy application. Unsuccessful command execution on instance id(s) 'i-0fd55833eaca4b93e'. Aborting the operation. [Instance: i-0fd55833eaca4b93e] Command failed on instance. An unexpected error has occurred [ErrorCode: 0000000001].