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

support executing inside AWS CodeBuild #2

Closed
theburningmonk opened this issue Dec 24, 2017 · 1 comment
Closed

support executing inside AWS CodeBuild #2

theburningmonk opened this issue Dec 24, 2017 · 1 comment

Comments

@theburningmonk
Copy link
Contributor

When used inside a AWS CodeBuild build environment (which uses ECS under the hood) one needs to use the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variable and fetch the credentials from http://169.254.170.2${process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}, which returns a payload that looks like this:

{  
  "RoleArn": "...",
  "AccessKeyId": "...",
  "SecretAccessKey": "...",
  "Token": "...",
  "Expiration": "2017-12-24T03:14:03Z"
}

see here for a related question which pointed me to the above URL.

@mhart
Copy link
Owner

mhart commented Mar 14, 2018

Fixed by #3

@mhart mhart closed this as completed Mar 14, 2018
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