def delete(ctx, profile, stage):
# type: (click.Context, str, str) -> None
factory = ctx.obj['factory'] # type: CLIFactory
factory.profile = profile
config = factory.create_config_obj(chalice_stage_name=stage)
session = factory.create_botocore_session()
d = factory.create_default_deployer(session=session, ui=UI())
d.delete(config, chalice_stage_name=stage)
remove_stage_from_deployed_values(stage, os.path.join(
config.project_dir, '.chalice', 'deployed.json'))
评论列表
文章目录