Skip to main content

Package that enables deployment of AWS CDK stacks in parallel.

Project description

B.AwsCdkParallel

A python based package that enables AWS CDK parallel stack deployments.

Description

One of the biggest downsides of AWS CDK IaC tool is the sequential deployments. If you have many stacks within your project - it can take hours and hours till everything gets deployed. Wouldn't it be cool to parallelize them? According to AWS CDK tool maintainers - they are not even thinking right now to include such functionality. Hence, this project was built. This project allows you to run traditional cdk deploy * and cdk destroy * -f. But the main trick is that it can do it in parallel - massively increasing the speed of your deployments.

Remarks

Biomapas aims to modernise life-science industry by sharing its IT knowledge with other companies and the community. This is an open source library intended to be used by anyone. Improvements and pull requests are welcome.

Some techniques and inspirations were taken from this blog post:
https://taimos.de/blog/deploying-your-cdk-app-to-different-stages-and-environments

General issue is being discussed on github:
https://github.com/aws/aws-cdk/issues/1973

Related technology

  • Python 3
  • AWS CDK
  • AWS CloudFormation

Assumptions

The project assumes the following:

  • You have basic-good knowledge in python programming.
  • You have basic-good knowledge in AWS.
  • You have very good knowledge in AWS CDK.

Useful sources

Install

The project is built and uploaded to PyPi. Install it by using pip.

pip install b_aws_cdk_parallel

Or directly install it through source.

pip install .

Usage & Examples

from parallel.deployment_executor import DeploymentExecutor
from parallel.deployment_type import DeploymentType

if __name__ == '__main__':
    executor = DeploymentExecutor(type=DeploymentType.DEPLOY)
    executor.run()

Testing

This project currently has no tests.

Contribution

Found a bug? Want to add or suggest a new feature?
Contributions of any kind are gladly welcome. You may contact us directly, create a pull-request or an issue in github platform. Lets modernize the world together.

Release history

2.0.0

  • Major bug fixes for resolving stack dependencies. The algorithm for parallel stack destruction has fundamentally changed.
  • Added integration tests to test against an actual AWS environment.
  • More improvements will come for 2.1.0.

1.3.0

  • Do not rebuild assets on destroy.

1.2.0

  • Do not rebuild assets on deployment.

1.1.0

  • Add ability to control maximum parallel deployments.

1.0.0

  • Complete rework of the project. Build a dependency tree to determine what to deploy.

0.4.1

  • Raise exception in case of a failed deployment.

0.4.0

  • Cdk list command should also receive path and environment.

0.3.0

  • Add ability to specify CDK path and environment variables for processes.

0.2.0

  • Add ability to retry main deployment too.

0.1.0

  • Refactor project to make it more debug-friendly.

0.0.2

  • Upgrade dependencies.

0.0.1

  • Initial build.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

b_aws_cdk_parallel-2.0.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

b_aws_cdk_parallel-2.0.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file b_aws_cdk_parallel-2.0.0.tar.gz.

File metadata

  • Download URL: b_aws_cdk_parallel-2.0.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for b_aws_cdk_parallel-2.0.0.tar.gz
Algorithm Hash digest
SHA256 86f48846400795edd2a7e9c7d3b081ff11360e313643b8e5f901968011273e9b
MD5 6436c96c67aa6f8273d2bb95215f6c10
BLAKE2b-256 46cc576d8094e0f598c70d5a038073914677f7efa26b768a7129891134775969

See more details on using hashes here.

File details

Details for the file b_aws_cdk_parallel-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: b_aws_cdk_parallel-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for b_aws_cdk_parallel-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c389314ee0b79fb2c7a677d956e471944ebb82775e2fefb854b0d3de42532e0b
MD5 056ea385e746df2ceaacd67517452683
BLAKE2b-256 862ef2bda1f7fc4f40206e2e7b666709af0668a11b5251040a702c5803f2abe8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page