Closed SomayaB closed 3 years ago
Hi @Blyseur, did you provide the environment (account and region) you want to deploy to? This can be done 3 ways.
Directly in the command cdk bootstrap aws://ACCOUNT-NUMBER/REGION
.
Storing it in your aws profile and then using the basic cdk bootstrap
command.
Using environment variables and then again using the basic cdk bootstrap
command.
You can read more about bootstrapping here. Key section:
If you do not specify at least one environment in the cdk bootstrap command, the AWS CDK Toolkit synthesizes the AWS CDK app in the current directory and bootstraps all the environments referenced in the app. If a stack is environment-agnostic (that is, it does not have an env property), the CDK's environment (for example, the one specified using --profile, or the default AWS environment otherwise) is applied to make the stack environment-specific, and that environment is then bootstrapped.
Hi @SomayaB yes, I did and I tried it with the same configuration on Linux, it worked correctly.
This isn't an issue with the workshop, if you're still having trouble with this please open an issue on the main repo
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
:question: Guidance Question
In the CDK WorkShop, when we add our first lambda function, we have to import @aws-cdk/aws-lambda. Once, we write the code and we want to deploy, we have an error occured because of the bootstrapping
Reproduction Steps
On Windows, init a cdk project, follow the steps until arrived to the lambda function step. https://cdkworkshop.com/20-typescript/30-hello-cdk/200-lambda.html
What did you expect to happen?
Deploy correctly CdkWorkshopStack
What actually happened?
We obtain an error, where it is sayed we must deployed the toolkit stack.
So, at this moment, we run cdk bootstrap and an other error occured :
Environment
Other information