fun main()

in infrastructure/src/main/kotlin/com/myorg/InfrastructureApp.kt [9:33]


fun main() {
    val app = App()
    val infrastructureStack = InfrastructureStack(
        app, "ServerlessKotlinDemo", StackProps.builder()
            .env(
                Environment.builder()
                    .account(System.getenv("CDK_DEFAULT_ACCOUNT"))
                    .region(System.getenv("CDK_DEFAULT_REGION"))
                    .build()
            )
            .build()
    )
    DashboardStack(
        app, "KotlinDashboard", StackProps.builder()
            .env(
                Environment.builder()
                    .account(System.getenv("CDK_DEFAULT_ACCOUNT"))
                    .region(System.getenv("CDK_DEFAULT_REGION"))
                    .build()
            )
            .build(),
        infrastructureStack.functions
    )
    app.synth()
}