Profile based credentials don't work with credential_process
See original GitHub issue-
I’m submitting a …
- 🪲 bug report
- 🚀 feature request
- 📚 construct library gap
- ☎️ security issue or vulnerability => Please see policy
- ❓ support request => Please see note at the top of this template.
-
What is the current behavior? If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
When using --profile
(see also #3007), the CLI doesn’t respect credential_process
. The profile has to have hardcoded credentials.
- What is the expected behavior (or behavior of feature suggested)?
credentials_process
is respected and invoked the same way other AWS CLI tools do.
- What is the motivation / use case for changing the behavior or adding this feature?
Parity with AWS CLI.
-
Please tell us about your environment:
- CDK CLI Version: 0.35.0
- Module Version: 0.35.0
- OS: macOS Mojave
- Language: TypeScript
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Using the AWS credentials file and credential Profiles
If no credentials or profiles were explicitly provided to the SDK and no credentials were defined in environment variables, but a credentials file...
Read more >Never put AWS temporary credentials in the ... - Ben Kehoe
So I built a credential process (docs, code) using an SDK that did (boto3), where it reads a profile's AWS SSO configuration, gets...
Read more >Bash with AWS CLI - unable to locate credentials
The unable to locate credentials error usually occurs when working with different aws profiles and the current terminal ...
Read more >Resolve "Unable to locate credentials" error in Amazon S3
An "Unable to locate credentials" error indicates that Amazon S3 can't find the credentials to authenticate AWS API calls. To resolve this issue, ......
Read more >Grant Access to Authentication Settings for Legacy Named ...
For a profile in the original profile user interface, click Edit in the Enabled Named Credential Access section. Add the named credentials that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/aws/aws-cdk/blob/986e2814e072f0334d8470a2d60ea73dcceadfe4/packages/aws-cdk/lib/api/aws-auth/awscli-compatible.ts#L42-L45
I can hack my way to making this work by adding a line here, though there may be other consequences…
marking as
p1
to prioritize a fix