title: Code build error : Failed to upload artifacts: Invalid arn
body: <p>In the aws codebuild service, I'm trying to build PHP project. As it does not create any artifacts, I've created the zip in post_build of buildspec.yml file. I need the artifact to deploy using codedeploy and codedeploy has no Revision Type as codecommit. Image for Yaml file has input is attached.</p>
  
  <p>When the build is given on codebuild, UPLOAD_ARTIFACTS fails with error message as <em>"Failed to upload artifacts: Invalid arn"</em>. But according to logs, the artifact is found and gives <em>"UPLOAD_ARTIFACTS Success".</em></p>
  
  <p>Image is attached for the same. What is going wrong? Is it a bug or am I suppose to follow another procedure?</p>
  
  <p><a href="https://i.stack.imgur.com/RpaG4.jpg" rel="nofollow noreferrer">Click here to see Yaml file</a></p>
  
  <p><a href="https://i.stack.imgur.com/MQQA1.jpg" rel="nofollow noreferrer">Click here to see Console output</a></p>