Skip to content

Instantly share code, notes, and snippets.

@chewmanfoo
Last active January 15, 2020 19:27
Show Gist options
  • Save chewmanfoo/56ae9fc432ab800d0f74d196bdc0b89b to your computer and use it in GitHub Desktop.
Save chewmanfoo/56ae9fc432ab800d0f74d196bdc0b89b to your computer and use it in GitHub Desktop.
cdk problem
env = core.Environment(account=os.environ['CDK_DEFAULT_ACCOUNT'], region=os.environ['CDK_DEFAULT_REGION'])
these envars are set in my environment. I triple checked them.
jsii.errors.JSIIError: Cannot retrieve value from context provider vpc-provider 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)
Subprocess exited with error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment