def test_sqs_queue_created():
    app = core.App()
    stack = AuroraServerlessIngestionStack(app, "aurora-serverless-ingestion")
    template = assertions.Template.from_stack(stack)

    template.has_resource_properties("AWS::SQS::Queue",
                                     {"VisibilityTimeout": 300})
示例#2
0
def test_sqs_queue_created():
    app = core.App()
    stack = CdkWorkshopStack(app, "cdk-workshop")
    template = assertions.Template.from_stack(stack)

    template.has_resource_properties("AWS::SQS::Queue",
                                     {"VisibilityTimeout": 300})
示例#3
0
def test_sqs_queue_created():
    app = core.App()
    stack = %name.PascalCased%Stack(app, "%name.StackName%")
    template = assertions.Template.from_stack(stack)

    template.has_resource_properties("AWS::SQS::Queue", {
        "VisibilityTimeout": 300
    })
def template():
    """
      Generate a mock stack that embeds the orchestrator construct for testing
      """
    script_dir = pathlib.Path(__file__).parent
    lambda_dir = str(script_dir.joinpath("..", "..", "lambda"))

    app = cdk.App()
    stack = S3SnsSqsLambdaChainStack(
      app,
      "s3-sns-sqs-lambda-stack",
      lambda_dir=lambda_dir
    )

    return cdk.assertions.Template.from_stack(stack)
示例#5
0
#!/usr/bin/env python3
import os

import aws_cdk as cdk

from sfn_athena_cdk_python.sfn_athena_cdk_python_stack import SfnAthenaCdkPythonStack


app = cdk.App()
SfnAthenaCdkPythonStack(app, "SfnAthenaCdkPythonStack",
    env=cdk.Environment(
    account=os.environ["CDK_DEFAULT_ACCOUNT"],
    region=os.environ["CDK_DEFAULT_REGION"])
    )

app.synth()
示例#6
0
def test_sqs_queue_created():
    app = core.App()
    stack = CdkAppStack(app, "cdk-app")
    template = assertions.Template.from_stack(stack)
def test_sns_topic_created():
    app = core.App()
    stack = AuroraServerlessIngestionStack(app, "aurora-serverless-ingestion")
    template = assertions.Template.from_stack(stack)

    template.resource_count_is("AWS::SNS::Topic", 1)
示例#8
0
def test_sqs_queue_created():
    app = core.App()
    stack = CodepipelineV2Stack(app, "codepipeline-v2")
    template = assertions.Template.from_stack(stack)
def test_sqs_queue_created():
    app = core.App()
    stack = EcsV2Stack(app, "ecs-v2")
    template = assertions.Template.from_stack(stack)
示例#10
0
def test_sqs_queue_created():
    app = core.App()
    stack = CloudfrontLambdaEdgeCdkPythonStack(
        app, "cloudfront-lambda-edge-cdk-python")
    template = assertions.Template.from_stack(stack)
def test_sqs_queue_created():
    app = core.App()
    stack = SfnAthenaCdkPythonStack(app, "sfn-athena-cdk-python")
    template = assertions.Template.from_stack(stack)
示例#12
0
def test_sns_topic_created():
    app = core.App()
    stack = %name.PascalCased%Stack(app, "%name.StackName%")
    template = assertions.Template.from_stack(stack)

    template.resource_count_is("AWS::SNS::Topic", 1)
示例#13
0
def test_sns_topic_created():
    app = core.App()
    stack = CdkWorkshopStack(app, "cdk-workshop")
    template = assertions.Template.from_stack(stack)

    template.resource_count_is("AWS::SNS::Topic", 1)
示例#14
0
def test_sqs_queue_created():
    app = core.App()
    stack = %name.PascalCased%Stack(app, "%name.StackName%")
    template = assertions.Template.from_stack(stack)
示例#15
0
def test_sqs_queue_created():
    app = core.App()
    stack = InfraStack(app, "infra")
    template = assertions.Template.from_stack(stack)
示例#16
0
def test_sqs_queue_created():
    app = core.App()
    stack = CdkTwilioSmsDiscordStack(app, "cdk-twilio-sms-discord")
    template = assertions.Template.from_stack(stack)