Skip to content

Installation

This software contains a CDK Pipeline which deploys all components and updates itself. It is the only part which needs to be deployed manually and only once!

Architecture

TODO: Detailed explanation
TODO: Architecture Image

Deploy

To deploy the CDK Pipeline check out the code from GIT and run the following command with the appropriate permissions.

WARNING: Be sure to git commit and git push before deploying the Pipeline stack using cdk deploy!

cd infrastructure
pip3 install -r requirements.txt
cdk deploy WaReviewToolCdkPipelineStack

Add new stage

To add a new stage, e.g. dev, open the cdk_pipeline_stack.py and add the adjusted code. Note that you have to bootstrap all environments before the code below will work, see CDK Environment Boostrapping.

    pipeline.add_stage(
        WaReviewApplication(self, "Dev",
            env=core.Environment(
            account=os.environ["CDK_DEFAULT_ACCOUNT"],
            region=os.environ.get("CDK_DEPLOY_REGION", "eu-central-1")
            )
        )
    )

https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.pipelines/README.html
https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.pipelines/README.html#cdk-environment-bootstrapping