September 5, 2018

Solved: CodeDeploy & S3 - `The specified key does not exist`

As part of CI CD Setup using AWS Developer Tools, have pulled the source code from CodeCommit, compiled & packaged using CodeBuild and artifacted to S3 in zip format (hello-world-zip).

Please note that the file gets stored in S3 only as hello-world (https://s3.amazonaws.com/<bucketname>/hello-world) without extension

Later, I had created CodeDeploy Application & Deployment Group with the following settings
  • Repository Type -> My application is stored in Amazon S3 
  • Revision Location -> s3://<bucketname>/hello-world.zip 
  • Supported file type was automatically selected as zip
  • Content Options -> Overwrite the content 
  • Rollback configuration overrides -> Roll back when a deployment fails


Running Deploy fails at DownloadBundle throwing `The specified key does not exist`



Again went to Deploy New Revision, changed the below settings and it has gone past DownloadBundle without any issue
  • Revision Location -> s3://<bucketname>/hello-world
  • Supported file type was _explicitly_ entered as zip (otherwise it will say unsupported)

No comments:

Post a Comment