AWS CodeDeploy Fail: The deployment failed because a specified file already exists at this location

前端 未结 5 1859
鱼传尺愫
鱼传尺愫 2021-01-04 01:59

I am trying to set AWS Code deploy with Github to automate my deloyment. the problem i am having is the ec2 instance is already active and has the web app code. the problem

5条回答
  •  抹茶落季
    2021-01-04 02:36

    If you just want the error to go away, you can use one of the earlier Lifecycle Hook scripts (BeforeInstall maybe) to delete that folder before the source gets re-added in a later Hook. If the source doesn't get re-added in a later Hook, add it yourself.

    I was getting this error even on new instances, so CodeDeploy must be caching that folder somehow, then getting upset that it did so.

提交回复
热议问题