Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 error on PollHostCommand #15

Closed
jdrago999 opened this issue Jun 29, 2015 · 2 comments
Closed

400 error on PollHostCommand #15

jdrago999 opened this issue Jun 29, 2015 · 2 comments

Comments

@jdrago999
Copy link
Contributor

Hi -

I'm using the deb version of the plugin on ubuntu trusty 64 in us-east-1. A new deploymentgroup I setup on Friday late afternoon was failing, so I looked at it this morning. Every time it tries to make a request to the codedeploycommands service it receives a 400 error response.

HTTP log below:

Request:

Note: host is https://codedeploy-commands.us-east-1.amazonaws.com/

POST / HTTP/1.1
Content-Type: application/x-amz-json-1.1
Accept-Encoding: 
User-Agent: aws-sdk-ruby2/2.0.42 ruby/2.0.0 x86_64-linux-gnu
X-Amz-Target: CodeDeployCommandService_v20141006.PollHostCommand
X-Amz-Date: 20150629T180026Z
Host: codedeploy-commands.us-east-1.amazonaws.com
X-Amz-Content-Sha256: f0e32927247ca0d80e05a755a56484220f21826393f82d675353e70e92336251
Authorization: AWS4-HMAC-SHA256 Credential=AKIAID7KXXXXXXXXXXXX/20150629/us-east-1/codedeploy-commands/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-target, Signature=35d962fdd26919d00e10863c915dfb49dc8eac01f4bb8c5fb6d076325b02d25e
Content-Length: 75
Accept: */*

Response:

HTTP/1.1 400 Bad Request
x-amzn-RequestId: b8902d1e-1e88-11e5-bd9d-458065df3e1e
Content-Type: application/x-amz-json-1.1
Content-Length: 34

{"__type":"AccessDeniedException"}
@jdrago999
Copy link
Contributor Author

Hi -

It turns out that sometime last week a new version of the AWS Codedeploy agent was released which has a bug that causes it to fail when the AWS credentials are exposed as environment variables.

See this thread: https://forums.aws.amazon.com/thread.jspa?threadID=190104&tstart=0

@suryanarayanan
Copy link
Contributor

This issue has been fixed in the latest release of the agent. Resolving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants