Example #1
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app, "thum-cdk")

app.synth()
Example #2
0
#!/usr/bin/env python3
from aws_cdk import core

from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app, "CdkStack")

app.synth()
Example #3
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack
from cdk.vpc_stack import VpcStack
from cdk.iam_stack import IAMStack
from cdk.parameter_stack import ParametersStack
from cdk.cognito_stack import CognitoStack
from cdk.cloud9_stack import Cloud9Stack
from cdk.security_stack import SecurityStack
from cdk.cdn_stack import CdnStack
from cdk.db_stack import DBStack
from cdk.snssqs_stack import SnssqsStack
from cdk.web_stack import WebStack

app = core.App()
CdkStack(app, "cdk")
VpcStack(app, "VpcStack")
IAMStack(app, "IAMStack")
ParametersStack(app, "ParametersStack")
CognitoStack(app, "CognitoStack")
SecurityStack(app, "SecurityStack")
Cloud9Stack(app, "Cloud9Stack")
CdnStack(app, "CdnStack")
DBStack(app, "DBStack")
SnssqsStack(app, "SnssqsStack")
WebStack(app, "WebStack")
app.synth()
Example #4
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack

import configparser

config = configparser.ConfigParser()
config.read('config.ini')

app_envs = {
    'env':core.Environment(
        account=config.get('MAIN','account_id'),
        region=config.get('MAIN','region')
    ),
    'region':config.get('MAIN','region'),
    'domain':config.get('MAIN','domain_name')
}


app = core.App()
CdkStack(app, config.get('MAIN','stack_name'),**app_envs)

app.synth()
Example #5
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app, "StreamlitWorkshop-cdk")

app.synth()
Example #6
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack


app = core.App()
CdkStack(scope=app, id="AwsS3ObjectCustomResourceDemo")

app.synth()
Example #7
0
#!/usr/bin/env python3

from aws_cdk.core import App
from cdk.cdk_stack import CdkStack

app = App()
CdkStack(app, "NodeJsWebAppCDK")

app.synth()
def get_template():
    app = core.App()
    CdkStack(app, "cdk")
    return json.dumps(app.synth().get_stack("cdk").template)
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack
from aws_cdk.core import App, Stack, Tags

app = core.App()
S3LoadTest_stack = CdkStack(app, "S3LoadTest")
Tags.of(S3LoadTest_stack).add("auto-delete", "no")
Tags.of(S3LoadTest_stack).add("project", "loadtest")

app.synth()
Example #10
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app, "SlackKibelaApp")

app.synth()
Example #11
0
from aws_cdk import core
from cdk.cdk_stack import CdkStack
from aws_cdk.core import App, Stack, Tags

app = core.App()
# app.build()
s3_to_elasticsearch_cloudtrail_stack = CdkStack(
    app, "s3-to-elasticsearch-cloudtrail")
# mystack = CdkStack(app, "cdk")

# Tag.add(s3_to_elasticsearch_cloudtrail_stack, "auto-delete", "no")
Tags.of(s3_to_elasticsearch_cloudtrail_stack).add("auto-delete", "no")

app.synth()
#!/usr/bin/env python3
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack

app = core.App()
env_EU = core.Environment(account="709985471261", region="eu-west-1")
CdkStack(app, "windowspipeline", env=env_EU)

app.synth()
from aws_cdk import core
from cdk.cdk_stack import CdkStack
from aws_cdk.core import App, Stack, Tags

app = core.App()
# app.build()
s3_to_elasticsearch_access_logs_stack = CdkStack(
    app, "s3-to-elasticsearch-access-logs")
# mystack = CdkStack(app, "cdk")

# Tag.add(s3_to_elasticsearch_access_logs_stack, "auto-delete", "no")
Tags.of(s3_to_elasticsearch_access_logs_stack).add("auto-delete", "no")

app.synth()
#!/usr/bin/env python3
Example #14
0
from aws_cdk import core
from cdk.cdk_stack import CdkStack
from aws_cdk.core import App, Stack, Tags

app = core.App()
# app.build()
s3workflowstack = CdkStack(app, "s3workflow")

Tags.of(s3workflowstack).add("auto-delete", "no")
Tags.of(s3workflowstack).add("project", "s3workflow")

app.synth()
#!/usr/bin/env python3
Example #15
0
# 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.cdk_stack import CdkStack


app = core.App()
CdkStack(app, "CdkStack",
    # If you don't specify 'env', this stack will be environment-agnostic.
    # Account/Region-dependent features and context lookups will not work,
    # but a single synthesized template can be deployed anywhere.

    # Uncomment the next line to specialize this stack for the AWS Account
    # and Region that are implied by the current CLI configuration.

    #env=core.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'), region=os.getenv('CDK_DEFAULT_REGION')),

    # Uncomment the next line if you know exactly what Account and Region you
    # want to deploy the stack to. */

    #env=core.Environment(account='123456789012', region='us-east-1'),

    # For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
    )

app.synth()
Example #16
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack


app = core.App()
CdkStack(app, "MyGGGCdkStack")

app.synth()
Example #17
0
#!/usr/bin/env python3

from aws_cdk import core
import os
from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app,
         "cdk",
         env={
             'account': os.environ['CDK_DEFAULT_ACCOUNT'],
             'region': os.environ['CDK_DEFAULT_REGION']
         })

app.synth()
Example #18
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app, "cdk", env={'region': 'us-west-2'})

app.synth()
Example #19
0
#!/usr/bin/env python3
from aws_cdk import core
from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app, "example")

app.synth()
Example #20
0
#!/usr/bin/env python3

from aws_cdk import core

from cdk.cdk_stack import CdkStack

app = core.App()
CdkStack(app, "MyIoTCdkStack")

app.synth()