I am trying to deploy my code using AWS CodeDeploy. My first deployment failed because of some typo in the appspec file. After correcting the appspec file i tried to deploy it but this time it gave me the follwing error.
The deployment failed because a specified file already exists at this location.
Why is it happening? Possible workaround except for beforeInstall script.