'Spring Boot App on AWS Continious Deployment with GitHub
I'm learning how work with AWS, and now I'm trying to do a codepipeline connecting AWS and GitHub (a spring boot jar applicacion). I have connected with GitHub and compile the sources but the deployment fails.
This is the error showed in the pipeline:
I have gone to the log that specify the error and find this other description:
2022/05/09 20:38:31.199534 [INFO] Job for web.service failed because the control process exited with error code. See "systemctl status web.service" and "journalctl -xe" for details.
2022/05/09 20:38:31.199559 [ERROR] An error occurred during execution of command [app-deploy] - [FlipApplication]. Stop running the command. Error: Register application failed because the registration of proc web failed:
startProcess Failure: starting process "web" failed: Command /bin/sh -c systemctl start web.service failed with error exit status 1. Stderr:Job for web.service failed because the control process exited with error code. See "systemctl status web.service" and "journalctl -xe" for details.
But I don't understand. I looking in the web and try but it still not work. I have change the version from pom.xm already. This is the buildspec.yml that I use:
version: 0.2
phases:
install:
runtime-versions:
java: corretto11
commands:
- echo install
pre_build:
commands:
- echo pre_build
build:
commands:
- mvn package
- echo build
post_build:
commands:
- echo post_build
artifacts:
files:
- '**/*'
- target/02-todo-rest-api-h2-0.0.2-SNAPSHOT.jar
I add the codepipeline configuration's summary:
Thanks in advance for your help.
amazon-web-services">
amazon-web-servicesgithub">
githubamazon-elastic-beanstalk">
amazon-elastic-beanstalkcontinuous-deploymentaws-codepipeline
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|






