Skip to content

Instantly share code, notes, and snippets.

@MattJColes
Created September 30, 2021 13:35
Show Gist options
  • Save MattJColes/fadaf2a24af9bec3537b83ad1be031d2 to your computer and use it in GitHub Desktop.
Save MattJColes/fadaf2a24af9bec3537b83ad1be031d2 to your computer and use it in GitHub Desktop.
CDK imports 01
#!/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