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

Setup fails if environment is not set #43

Closed
tillkahlbrock opened this issue Feb 11, 2021 · 1 comment
Closed

Setup fails if environment is not set #43

tillkahlbrock opened this issue Feb 11, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@tillkahlbrock
Copy link
Member

The setup produces an error, if I do not explicitly set an environment I want to deploy to.
I guess this is totally fine, but it's described in the documentation.

Reproduction Steps

Follow the setup instructions in the readme to the npx cdk deploy step.

What did you expect to happen?

The docs should tell me about the need to set the environment.

What actually happened?

npx cdk deploy

Cannot retrieve value from context provider hosted-zone since account/region are not specified at the stack level. Either configure "env" with explicit account and region when you define your stack, or use the environment variables "CDK_DEFAULT_ACCOUNT" and "CDK_DEFAULT_REGION" to inherit environment information from the CLI (not recommended for production stacks)

Environment

  • CDK CLI Version: 1.89.0 (build df7253c)
  • Version: 0.1.7
  • Node.js Version: v14.10.1
  • OS : Mac OS
  • Language (Version): TypeScript (4.1.5)

This is 🐛 Bug Report

@tillkahlbrock tillkahlbrock added the bug Something isn't working label Feb 11, 2021
@tillkahlbrock tillkahlbrock changed the title Setup fails without environment set Setup fails if environment is not set Feb 11, 2021
@tillkahlbrock
Copy link
Member Author

This seems to be a bigger issue with how cdk cli handles credentials and profiles (details aws/aws-cdk#1656).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant