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

Cdklocal explodes if no AWS profile is set #81

Closed
dlutsch opened this issue Feb 28, 2023 · 3 comments
Closed

Cdklocal explodes if no AWS profile is set #81

dlutsch opened this issue Feb 28, 2023 · 3 comments

Comments

@dlutsch
Copy link

dlutsch commented Feb 28, 2023

If running cdklocal and there is no default profile in the credentials file + no AWS_PROFILE env var set the app creates pages of output with no clear error message before eventually exiting 1. Having no profile set should be caught by error handling and provide a useful error message to the user.

@dlutsch
Copy link
Author

dlutsch commented Feb 28, 2023

This is also an issue if AWS_PROFILE is set to a profile that doesn't exist in the aws credentials file

@whummer
Copy link
Member

whummer commented Mar 18, 2023

Thanks for reporting @dlutsch - just gave this a try, but haven't been able to replicate the issue.

Can you please share some more details about your environment setup, and ideally a small reproducible example. Does this happen with every CDK stack (even simple "hello world" examples)? Are you seeing any requests arriving at the LocalStack container (with DEBUG=1 enabled), or is this purely a client-side error happening in the cdklocal process itself only?

If you could share a couple of lines of the error logs you're seeing, that would be helpful. Please also share the version of CDK you're using.. Thanks!

@whummer
Copy link
Member

whummer commented Aug 25, 2023

Closing due to inactivity. Please let us know if the problem persists (along with a minimal reproducible example) - in that case we can re-open the issue and investigate further. 👍 Thanks for your help!

@whummer whummer closed this as completed Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants