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

fix: CodeBuild runners not getting AWS role #114

Merged
merged 1 commit into from Oct 8, 2022

Conversation

kichik
Copy link
Member

@kichik kichik commented Oct 8, 2022

Trying to use AWS API with CodeBuild runners resulted in:

Unable to locate credentials. You can configure credentials by running "aws configure".

We were using sudo which doesn't preserve the required environment variables for AWS SDKs to locate its credentials. Specifically AWS_CONTAINER_CREDENTIALS_RELATIVE_URI was missing.

Resolves #113

Trying to use AWS API with CodeBuild runners resulted in:

Unable to locate credentials. You can configure credentials by running "aws configure".

We were using sudo which doesn't preserve the required environment variables for AWS SDKs to locate its credentials. Specifically AWS_CONTAINER_CREDENTIALS_RELATIVE_URI was missing.

Resolves #113
@mergify mergify bot merged commit f7e48f2 into main Oct 8, 2022
@mergify mergify bot deleted the fix-codebuild-role-passing branch October 8, 2022 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Question] How do I utilize the role that a codebuild runner is using?
1 participant