aws_cdk_helpers#

This module implements the automation to deploy CloudFormation stacks via CDK.

aws_ops_alpha.aws_helpers.aws_cdk_helpers.cdk_deploy(bsm_devops: BotoSesManager, bsm_workload: BotoSesManager, dir_cdk: Path, env_name: str, path_bsm_devops_snapshot: Path = PosixPath('/home/docs/.bsm-snapshot.json'), skip_prompt: bool = False)[source]#

Run cdk deploy ... terminal command.

Parameters:
  • bsm_devops – the devops AWS Account BotoSesManager object.

  • bsm_workload – the workload AWS Account boto session manager.

  • dir_cdk – the CDK directory, there should be an app.py and cdk.json file in it.

  • env_name – environment name you want to deploy CloudFormation to.

  • path_bsm_devops_snapshot – the path to a local json file, which contains the snapshot of the devops BotoSesManager object.

  • skip_prompt – if True, skip cdk prompt.

aws_ops_alpha.aws_helpers.aws_cdk_helpers.cdk_destroy(bsm_devops: BotoSesManager, bsm_workload: BotoSesManager, env_name: str, dir_cdk: Path, path_bsm_devops_snapshot: Path = PosixPath('/home/docs/.bsm-snapshot.json'), skip_prompt: bool = False)[source]#

Run cdk destroy ... terminal command.

Parameters:
  • bsm_devops – the devops AWS Account BotoSesManager object.

  • bsm_workload – the workload AWS Account BotoSesManager object.

  • dir_cdk – the CDK directory, there should be an app.py and cdk.json file in it.

  • env_name – environment name you want to deploy CloudFormation to.

  • path_bsm_devops_snapshot – the path to a local json file, which contains the snapshot of the devops BotoSesManager object.

  • skip_prompt – if True, skip cdk prompt.