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

process_credentials support with CDK #1

Closed
pahud opened this issue Oct 21, 2020 · 4 comments · Fixed by #3
Closed

process_credentials support with CDK #1

pahud opened this issue Oct 21, 2020 · 4 comments · Fixed by #3

Comments

@pahud
Copy link
Owner

pahud commented Oct 21, 2020

process_credentials is working with JS SDK (v2.775.0) now

圖片

But still not supported in AWS CDK

圖片

A workaround is using aws-export-credentials to export credentials in the env vars, but might be a concern for paranoid people as it exposes the credentials in env vars.

A workaround is to generate ~/.aws/credentials with refresh_credentials.sh .

I am leaving this issue open for discussion and tracking.

@benkehoe
Copy link

See workaround for CDK here: aws/aws-cdk#5455 (comment)

@pahud
Copy link
Owner Author

pahud commented Oct 21, 2020

See workaround for CDK here: aws/aws-cdk#5455 (comment)

I noticed the workaround is eventually to expose the credentials in env var from its sso() function, which I believe some people might avoid doing this for some security concern. Sometimes programs tend to dump all env vars for debug mode logging and this might be a security concern.

@hoegertn
Copy link
Contributor

Should be done!?

@pahud
Copy link
Owner Author

pahud commented Nov 19, 2020

Should be done!?

Yes. And I personally prefer aws-sso-credential-process in Bash so I wrote one here

https://github.com/pahud/vscode/blob/main/.devcontainer/bin/aws-sso-credential-process

And the setup experience would be like

https://www.youtube.com/watch?v=lKWPvBalInY&t=759s

I will add the shell script into this template repo and update the README accordingly.

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

Successfully merging a pull request may close this issue.

3 participants