awslabs / aws-codedeploy-plugin

Jenkins plugin for AWS CodeDeploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ETag mismatch in CodeDeploy

bgardella opened this issue · comments

CodeDeploy is not liking the application bundle created by this plugin. I'm getting the following error from CodeDeploy:

"The request signature we calculated does not match the signature you provided. Check your key and signing method."

I solved this mystery. I was putting a subdirectory in my S3 Bucket field. And since the combination of S3 Bucket + S3 Prefix produces a valid S3 path, the UI and the SDK implementation does not prevent the file from being uploaded to S3. But the checksum produced is completely horked.

I'm going to submit a PR that would forbid any slashes from being set in the S3 bucket field.

PR submitted for your review.

Closing in favor of #47