Reputation: 1
I configured appspec.yml as below: `
version: 0.0
os: linux
files:
- source: /war/stg/ROOT.war
destination: /opt/iplass01/tomcat/webapps/
file_exists_behavior: OVERWRITE
hooks:
ApplicationStop:
- location: scripts/stop_tomcat_server
timeout: 300
runas: root
AfterInstall:
- location: scripts/delete_root_resource
timeout: 300
runas: root
ApplicationStart:
- location: scripts/start_tomcat_server
timeout: 300
runas: root
` Scenario as below:
Do you have any idea to resolved that's problems?
Expectation: Step 2: when we update appspec.yml or scripts and run CodeDeploy again CodeDeploy will run successfully with up to date configuration(appspec.yml or scripts).
Upvotes: 0
Views: 647
Reputation: 1
Root cause:
Solution:
Reference document:https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-deployments-lifecycle-event-failures.
Upvotes: 0