Created
September 30, 2021 13:35
-
-
Save MattJColes/fadaf2a24af9bec3537b83ad1be031d2 to your computer and use it in GitHub Desktop.
CDK imports 01
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 | |
from aws_cdk import core as cdk | |
# For consistency with TypeScript code, `cdk` is the preferred import name for | |
# the CDK's core module. The following line also imports it as `core` for use | |
# with examples from the CDK Developer's Guide, which are in the process of | |
# being updated to use `cdk`. You may delete this import if you don't need it. | |
from aws_cdk import core | |
from cdk_fun.cdk_fun_stack import CdkFunStack | |
existing_environment = core.Environment( | |
# can use env imports if using Dev / UAT / Prod | |
account = "", # Your AWS Account | |
region = "ap-southeast-2" # Your AWS Region | |
) | |
app = core.App() | |
CdkFunStack( | |
app, | |
"CdkFunStack", | |
env = existing_environment | |
) | |
app.synth() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment