Last active
March 28, 2022 15:38
-
-
Save marianobrc/dfdd2868d7447c402177526eff1e2ffe to your computer and use it in GitHub Desktop.
The entrypoint of a CDK project using pipelines
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
#!/usr/bin/env python3 | |
import os | |
import aws_cdk as cdk | |
from aws_cdk import ( | |
Environment, | |
) | |
from my_django_app.pipeline_stack import MyDjangoAppPipelineStack | |
app = cdk.App() | |
pipeline = MyDjangoAppPipelineStack( | |
app, | |
"MyDjangoAppPipeline", | |
repository="marianobrc/scalable-django-apps", | |
branch="master", | |
ssm_gh_connection_param="/Github/Connection", | |
env=Environment( | |
account=os.getenv('CDK_DEFAULT_ACCOUNT'), | |
region=os.getenv('CDK_DEFAULT_REGION') | |
), | |
) | |
app.synth() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment