Search code examples
amazon-web-servicesbitbucketaws-code-deploy

AWS deployment "Unable to remove top level folder"


I have installed the Bitbucket addon to deploy with AWS CodeDeploy but for an unknown reason, I get this error "Unable to remove top level folder" when I try to deploy from the bitbucket view.

enter image description here

This is my appspec.yml

version: 0.0
os: linux
files:
   - source: /
   destination: /var/www/citytwig
hooks:
  AfterInstall:
    - location: scripts/configure.sh
    timeout: 300
    runas: root

I have already deployed other bitbucket repositories successfully, I'm wondering why this one doesn't work.


Solution

  • After a long searching, I realized that a file had Russian characters on his filename. It seems that the Bitbucket CodeDeploy Addon have issues with this kind of characters.