Created
April 11, 2021 16:47
-
-
Save JelsB/7d3de0376d750bf16a86b8cf19b5ee4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from aws_cdk import core | |
from my_pipeline.configuration import RawConfig, AppConfig | |
from my_pipeline.pipeline_stack import PipelineStack | |
# Read config file | |
config_file = Path('config.json') | |
# Process raw config file | |
raw_config = RawConfig(config_file) | |
# Create application config instance | |
app_config = AppConfig.from_raw_config(raw_config.application) | |
# Create pipeline stack instance | |
app = core.App() | |
PipelineStack(app, f'{app_config.application_name}-{app_config.branch}', | |
env=app_config.build_environment, | |
raw_config=raw_config, | |
app_config=app_config) | |
app.synth() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment