Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

English / 日本語

Examples

qwik-app folder contains the Qwik app used in the samples.

Common configurations

Setting AWS_PROFILE

You need a credential configured with sufficient previleges to deploy an AWS Cloud Development Kit (CDK) stack. Here is an example to set my named profile (AWS_PROFILE):

export AWS_PROFILE=codemonger-jp

Setting the toolkit stack name

You can use the default toolkit stack, though, I prefer to create a toolkit stack dedicated to each project, because it makes cleanup easier after delete the project. If you want to create a toolkit stack other than the default, you should also set the synthesizer qualifier. Here is an example:

TOOLKIT_STACK_NAME=qwik-bundle-examples-toolkit

Setting the synthesizer qualifier

Without a unique qualifier, conflicts between different toolkit stacks may occur. Here is an example:

TOOLKIT_STACK_QUALIFIER=qwikbndlex

Provisioning the toolkit stack

npx cdk bootstrap --toolkit-stack-name $TOOLKIT_STACK_NAME --qualifier $TOOLKIT_STACK_QUALIFIER

You have to run this command in one of the example folders. Since the toolkit stack is shared by all the examples, you need to do this only once.