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.

Error message not good enough in case only region is not defined

See original GitHub issue

Repro:

  1. Clean up ~/.aws/config, ~/.aws/credentials and any environment variables.
  2. Run aws configure, supply access key and secret, but leave “region” to None.

Then, try to run cdk delpoy. The error message is:

Stack hello-cdk does not define an environment, and AWS credentails could not be obtained from standard locations.

Also, there’s a typo “credentails” 😉

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

4reactions
rclarkcommented, Jun 22, 2018

Can you try to set AWS_REGION=us-east-1 and see if this helps?

Yes, this worked. Thanks!

0reactions
eladbcommented, Jul 9, 2018

#175 resolves this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Success Criterion 3.3.1: Error Identification | WAI
the user fails to enter the proper abbreviation in to state, province, region, etc. field;; the user enters a state abbreviation that is...
Read more >
Error handling in Step Functions - AWS Documentation
Step Functions identifies errors in the Amazon States Language using case-sensitive strings, known as error names. The Amazon States Language defines a set...
Read more >
Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >
How to correct a #VALUE! error - Microsoft Support
Excel shows the #VALUE! error when your formula includes cells that have different data types (text and numeric values). The #VALUE! error is...
Read more >
VBA Error Handling - A Complete Guide - Excel Macro Mastery
Some runtime errors are not considered errors by VBA but only by the user. ... This behaviour is fine when you are writing...
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