AWS code deploy fails in download bundle or install event reason is long path issue in window server.
run this command on u r powershell
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
and then restart u r code deploy agent on u r server
powershell.exe -Command Restart-Service -Name codedeployagent
now retry the deployment...
this is the official aws docs for this :
https://docs.aws.amazon.com/codedeploy/latest/userguide/troubleshooting-deployments.html#troubleshooting-long-file-paths