Skip to content

Instantly share code, notes, and snippets.

@marianobrc
Last active March 28, 2022 15:38
Show Gist options
  • Save marianobrc/dfdd2868d7447c402177526eff1e2ffe to your computer and use it in GitHub Desktop.
Save marianobrc/dfdd2868d7447c402177526eff1e2ffe to your computer and use it in GitHub Desktop.
The entrypoint of a CDK project using pipelines
#!/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