
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
b-aws-cdk-parallel
Advanced tools
A python based package that enables AWS CDK parallel stack deployments.
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.
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
The project assumes the following:
Read more AWS CDK:
https://github.com/aws/aws-cdk
Read more about parallel AWS CDK deployments:
https://taimos.de/blog/deploying-your-cdk-app-to-different-stages-and-environments
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 .
The quickest and easiest example:
from b_aws_cdk_parallel.deployment_executor import DeploymentExecutor
from b_aws_cdk_parallel.deployment_type import DeploymentType
executor = DeploymentExecutor(type=DeploymentType.DEPLOY)
executor.run()
executor = DeploymentExecutor(type=DeploymentType.DESTROY)
executor.run()
The more advanced example to deploy/destroy:
from b_aws_cdk_parallel.deployment_executor import DeploymentExecutor
from b_aws_cdk_parallel.deployment_type import DeploymentType
from b_aws_cdk_parallel.cdk_arguments import CdkArguments
executor = DeploymentExecutor(
type=DeploymentType.DEPLOY, # Or DESTROY
# You can specify a full path to your CDK app.
path='/optional/path/to/cdk/app',
# You can specify OS-level global parameters.
env={
'optional': 'os-level environment variables'
},
# You can specify AWS-CDK-specific arguments.
cdk_arguments=CdkArguments(
aws_cdk_app_stacks_to_deploy=['MyCoolStack'],
aws_cdk_app_parameters=['Test1=Test1'],
aws_cdk_app_context=['Context1=Context1']
)
)
executor.run()
The library generates beautiful stack dependency outputs for easier debugging:
----- Stack dependency graph: -----
» Stack1: []
× Stack2: [Stack1]
× Stack3: [Stack1]
× Stack4: [Stack1, Stack2, Stack3]
× Stack5: [Stack1, Stack4]
» Stack8: []
× Stack7: [Stack1, Stack2, Stack3, Stack4, Stack5]
× Stack6: [Stack1, Stack7]
× Stack10: [Stack1, Stack6, Stack7]
× Stack9: [Stack1, Stack8]
» B-Aws-Cdk-Parallel-MainStack-3: []
[Stack2] Doing stuff...
[Stack2] Doing stuff...
[Stack4] Doing stuff...
[Stack3] Doing stuff...
The library also exposes CLI access.
To get usage help, simply run:
acdk -h
To deploy infrastructure, run:
acdk deploy --path /project/app/
To destroy infrastructure, run:
acdk destroy --path /project/app/
This project has integration tests based on pytest. To run tests, simply run:
pytest b_aws_cdk_parallel_test/integration/tests
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.
--max-parallel-deployments CLI flag to allow control of number the of stack deployments
that run at the same time. For larger projects this can significantly reduce the amount of
memory used when deploying a highly parallel stack.aws-cdk.core dependency as it is probably not needed (if the project is developed
with AWS CDK anyways it will have core module installed). By removing this dependency both
V1 and V2 versions of AWS CDK should work.--exclusively flag.acdk to enable deployment/destruction through CLI.FAQs
Package that enables deployment of AWS CDK stacks in parallel.
We found that b-aws-cdk-parallel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.