question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set environment variables for credHelper

See original GitHub issue

I want to use the “ecr-login” credHelper for both from and to, but I need to use different environment variables (AWS_PROFILE in my case), because the IAM is different in each case. If it is possible somehow, I would like to know, and if not, I would like to request this feature (just like e.g. environment can be set for dockerClient).

As a workaround, I will now try to run the credHelper manually and pass in username/password values via system properties (-Djib.to.auth.username=...)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
elefeintcommented, Apr 1, 2022
1reaction
tobiadecommented, Feb 8, 2022

Hey @chanseokoh I’m happy to pick this up. Will get a PR out soon!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use AWS ECR Credential Helper with Multiple AWS Accounts
Two ways to pass AWS credentials. Put credentials in ~/.aws/credentials; Use AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. The user of the ...
Read more >
Environment variables to configure the AWS CLI
How to set environment variables. The following examples show how you can configure environment variables for the default user.
Read more >
gitcredentials Documentation - Git
If the GIT_ASKPASS environment variable is set, the program specified by the variable is invoked. A suitable prompt is provided to the program...
Read more >
Run your CI/CD jobs in Docker containers - GitLab Docs
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
Read more >
Credentials set as environment variables - IBM
Environment variables override configuration and credential files and can be useful for scripting or setting a named profile temporarily as the default. Note: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found