方便通过cdk部署圣杯的实用工具
cdk-chalice-lite的Python项目详细描述
cdk水晶石
像cdk-chalice
,但不同。在
使用
fromaws_cdkimportcorefromcdk_chalice_liteimportChaliceclassMyStack(core.Stack):def__init__(self,scope,id,chalice_app_id,directory,**kwargs):super().__init__(scope,id,**kwargs)# note, the directory parameter can be either the root directory# of your chalice app i.e. where app.py is# or it can be the directory of the output of `chalice package`# if you choose the former, you can override the values in# .chalice/config.json via the stage_config and lambdas_config# parameters to the Chalice constructorself.chalice=Chalice(self,chalice_app_id,directory)app=core.App()my_stack=MyStack(app,'my-stack')app.synth()
- 项目
标签: