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

Use temporary credentials doesn't work as expected #4

Closed
nwalke opened this issue Jan 25, 2015 · 11 comments
Closed

Use temporary credentials doesn't work as expected #4

nwalke opened this issue Jan 25, 2015 · 11 comments
Labels

Comments

@nwalke
Copy link

nwalke commented Jan 25, 2015

When I add CodeDeploy as a post build task and click temporary credentials, it does not spit out an AWS account ID. It does give me an external ID.

@amuniz
Copy link

amuniz commented Feb 4, 2015

Issue confirmed using:

  • Jenkins 1.580.2
  • Debian 7
  • CodeDeploy 1.3

@Jmcfar
Copy link
Contributor

Jmcfar commented Feb 20, 2015

Thank you for bringing this to our attention. We've identified the issue and are working on a fix for it. We will post an update once the fix is rolled out.

@Jmcfar
Copy link
Contributor

Jmcfar commented Feb 25, 2015

We have pushed updated source to resolve a related issue into the repository but it is not yet available from the Jenkins repository.

If you see external ID but not an AWS Account ID using CodeDeploy 1.3 it likely means your instance does not have AWS credentials configured. The temporary credentials option still needs AWS Credentials to call AssumeRole to get the temporary credentials with reduced permissions.

Once you configure the Jenkins server with default AWS credentials, you should see the account id show up.

@nwalke
Copy link
Author

nwalke commented Feb 25, 2015

What if the Jenkins server is not an EC2 instance, but an on-premise machine? Will temporary credentials not work then?

@Jmcfar
Copy link
Contributor

Jmcfar commented Feb 25, 2015

Any of the default provider chain methods listed on http://docs.aws.amazon.com/AWSSdkDocsJava/latest/DeveloperGuide/credentials.html should work (although if you are not using EC2, you won't be able to use "Instance profile credentials")

@nwalke
Copy link
Author

nwalke commented Mar 4, 2015

@Jmcfar Any updates on when we can expect this update through the Jenkins repository?

@Jmcfar
Copy link
Contributor

Jmcfar commented Mar 4, 2015

We just finished pushing the new plugin to the Jenkins update repository. The current plugin list is only updated every 6 hours, so it may not show up immediately, but should be there by tomorrow.

The latest release version for the CodeDeploy plugin is 1.5, so once you pull that in you should be up to date.

@nwalke
Copy link
Author

nwalke commented Mar 4, 2015

Awesome! Very excited to not have to use my own bash scripts to interface with the CLI.

@BStokes-GoDaddy
Copy link

Getting an error when trying the temp permissions when following the steps provided.

Connection test failed with error: The request signature we calculated does not match the signature you provided. Check your key and signing method. (Service: Amazon S3; Status Code: 403; Error Code: SignatureDoesNotMatch;

The error would imply a time differentail between AWS and the Jenkins server, and have verified that the times are synced. Any suggestions on how I might troubleshoot/correct this error?

@Jmcfar Jmcfar added the bug label Jun 18, 2015
@suryanarayanan
Copy link
Contributor

@bstokes: Did you specify a valid S3 bucket name?

@BStokes-GoDaddy
Copy link

Issue has been resolved for some time now. Thx for the follow up.

suryanarayanan added a commit that referenced this issue Dec 2, 2015
Merging pull requests from the parent repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants