From c20c22614d7bc7bd448109c840c68378cd72bde2 Mon Sep 17 00:00:00 2001 From: Noah Litov Date: Wed, 12 Jun 2019 17:20:26 -0700 Subject: [PATCH] fix(typescript): Replaced all instances of 'app.run()' with 'app.synth()' (#49) To comply with new standard nomenclature --- typescript/api-cors-lambda-crud-dynamodb/index.ts | 2 +- typescript/application-load-balancer/index.ts | 2 +- typescript/appsync-graphql-dynamodb/index.ts | 2 +- typescript/classic-load-balancer/index.ts | 2 +- typescript/custom-resource/index.ts | 2 +- typescript/ecs/cluster/index.ts | 2 +- typescript/ecs/ecs-load-balanced-service/index.ts | 2 +- typescript/ecs/ecs-service-with-advanced-alb-config/index.ts | 2 +- typescript/ecs/ecs-service-with-logging/index.ts | 2 +- typescript/ecs/ecs-service-with-task-networking/index.ts | 2 +- typescript/ecs/ecs-service-with-task-placement/index.ts | 2 +- typescript/ecs/fargate-load-balanced-service/index.ts | 2 +- typescript/ecs/fargate-service-with-auto-scaling/index.ts | 2 +- typescript/ecs/fargate-service-with-local-image/index.ts | 2 +- .../ecs/fargate-service-with-local-image/local-image/app.py | 2 +- typescript/ecs/fargate-service-with-logging/index.ts | 2 +- .../elasticbeanstalk/elasticbeanstalk-bg-pipeline/index.ts | 2 +- .../elasticbeanstalk/elasticbeanstalk-environment/index.ts | 2 +- typescript/lambda-cron/index.ts | 2 +- typescript/my-widget-service/index.ts | 2 +- typescript/resource-overrides/index.ts | 2 +- typescript/static-site/index.ts | 2 +- typescript/stepfunctions-job-poller/index.ts | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/typescript/api-cors-lambda-crud-dynamodb/index.ts b/typescript/api-cors-lambda-crud-dynamodb/index.ts index fa83c563b2..701ab60b2d 100644 --- a/typescript/api-cors-lambda-crud-dynamodb/index.ts +++ b/typescript/api-cors-lambda-crud-dynamodb/index.ts @@ -127,4 +127,4 @@ export function addCorsOptions(apiResource: apigateway.IResource) { const app = new cdk.App(); new ApiLambdaCrudDynamoDBStack(app, 'ApiLambdaCrudDynamoDBExample'); -app.run(); +app.synth(); diff --git a/typescript/application-load-balancer/index.ts b/typescript/application-load-balancer/index.ts index 2f2910bf48..50a92d943f 100644 --- a/typescript/application-load-balancer/index.ts +++ b/typescript/application-load-balancer/index.ts @@ -40,4 +40,4 @@ class LoadBalancerStack extends cdk.Stack { const app = new cdk.App(); new LoadBalancerStack(app, 'LoadBalancerStack'); -app.run(); +app.synth(); diff --git a/typescript/appsync-graphql-dynamodb/index.ts b/typescript/appsync-graphql-dynamodb/index.ts index 42586f179d..6520b6f48f 100644 --- a/typescript/appsync-graphql-dynamodb/index.ts +++ b/typescript/appsync-graphql-dynamodb/index.ts @@ -142,4 +142,4 @@ export class AppSyncCdkStack extends cdk.Stack { const app = new cdk.App(); new AppSyncCdkStack(app, 'AppSyncGraphQLDynamoDBExample'); -app.run(); +app.synth(); diff --git a/typescript/classic-load-balancer/index.ts b/typescript/classic-load-balancer/index.ts index ea6a90eca2..4fa66f6b0e 100644 --- a/typescript/classic-load-balancer/index.ts +++ b/typescript/classic-load-balancer/index.ts @@ -33,4 +33,4 @@ class LoadBalancerStack extends cdk.Stack { const app = new cdk.App(); new LoadBalancerStack(app, 'LoadBalancerStack'); -app.run(); +app.synth(); diff --git a/typescript/custom-resource/index.ts b/typescript/custom-resource/index.ts index 4ebb85c55f..8e75704f42 100644 --- a/typescript/custom-resource/index.ts +++ b/typescript/custom-resource/index.ts @@ -22,4 +22,4 @@ class MyStack extends cdk.Stack { const app = new cdk.App(); new MyStack(app, 'CustomResourceDemoStack'); -app.run(); +app.synth(); diff --git a/typescript/ecs/cluster/index.ts b/typescript/ecs/cluster/index.ts index 5152d21447..124914cae4 100644 --- a/typescript/ecs/cluster/index.ts +++ b/typescript/ecs/cluster/index.ts @@ -32,4 +32,4 @@ const app = new cdk.App(); new ECSCluster(app, 'MyFirstEcsCluster'); -app.run(); +app.synth(); diff --git a/typescript/ecs/ecs-load-balanced-service/index.ts b/typescript/ecs/ecs-load-balanced-service/index.ts index 97ba672c10..71c34e1069 100644 --- a/typescript/ecs/ecs-load-balanced-service/index.ts +++ b/typescript/ecs/ecs-load-balanced-service/index.ts @@ -33,4 +33,4 @@ const app = new cdk.App(); new BonjourECS(app, 'Bonjour'); -app.run(); +app.synth(); diff --git a/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts b/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts index c4c1635040..eb36933fd6 100644 --- a/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts +++ b/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts @@ -54,4 +54,4 @@ listener.addTargets('ECS', { new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: lb.loadBalancerDnsName, }); -app.run(); +app.synth(); diff --git a/typescript/ecs/ecs-service-with-logging/index.ts b/typescript/ecs/ecs-service-with-logging/index.ts index eb247c8ccf..d096cf127e 100644 --- a/typescript/ecs/ecs-service-with-logging/index.ts +++ b/typescript/ecs/ecs-service-with-logging/index.ts @@ -36,4 +36,4 @@ const app = new cdk.App(); new WillkommenECS(app, 'Willkommen'); -app.run(); +app.synth(); diff --git a/typescript/ecs/ecs-service-with-task-networking/index.ts b/typescript/ecs/ecs-service-with-task-networking/index.ts index a690bf8b34..3960001291 100644 --- a/typescript/ecs/ecs-service-with-task-networking/index.ts +++ b/typescript/ecs/ecs-service-with-task-networking/index.ts @@ -47,4 +47,4 @@ new ecs.Ec2Service(stack, 'awsvpc-ecs-demo-service', { securityGroup, }); -app.run(); +app.synth(); diff --git a/typescript/ecs/ecs-service-with-task-placement/index.ts b/typescript/ecs/ecs-service-with-task-placement/index.ts index cdc09ffc50..82ada5d1f3 100644 --- a/typescript/ecs/ecs-service-with-task-placement/index.ts +++ b/typescript/ecs/ecs-service-with-task-placement/index.ts @@ -40,4 +40,4 @@ const service = new ecs.Ec2Service(stack, "Service", { service.placePackedBy(ecs.BinPackResource.Memory); service.placeSpreadAcross(ecs.BuiltInAttributes.AvailabilityZone); -app.run(); +app.synth(); diff --git a/typescript/ecs/fargate-load-balanced-service/index.ts b/typescript/ecs/fargate-load-balanced-service/index.ts index 2ee9bd17fa..aa060b1264 100644 --- a/typescript/ecs/fargate-load-balanced-service/index.ts +++ b/typescript/ecs/fargate-load-balanced-service/index.ts @@ -27,4 +27,4 @@ const app = new cdk.App(); new BonjourFargate(app, 'Bonjour'); -app.run(); +app.synth(); diff --git a/typescript/ecs/fargate-service-with-auto-scaling/index.ts b/typescript/ecs/fargate-service-with-auto-scaling/index.ts index 150cd2bd51..abd23ff26b 100644 --- a/typescript/ecs/fargate-service-with-auto-scaling/index.ts +++ b/typescript/ecs/fargate-service-with-auto-scaling/index.ts @@ -33,4 +33,4 @@ const app = new cdk.App(); new AutoScalingFargateService(app, 'aws-fargate-application-autoscaling'); -app.run(); +app.synth(); diff --git a/typescript/ecs/fargate-service-with-local-image/index.ts b/typescript/ecs/fargate-service-with-local-image/index.ts index 1f0ae6a460..6a332e16be 100644 --- a/typescript/ecs/fargate-service-with-local-image/index.ts +++ b/typescript/ecs/fargate-service-with-local-image/index.ts @@ -23,4 +23,4 @@ new ecs_patterns.LoadBalancedFargateService(stack, "FargateService", { }) }); -app.run(); +app.synth(); diff --git a/typescript/ecs/fargate-service-with-local-image/local-image/app.py b/typescript/ecs/fargate-service-with-local-image/local-image/app.py index 5364902b90..aca4c819ed 100644 --- a/typescript/ecs/fargate-service-with-local-image/local-image/app.py +++ b/typescript/ecs/fargate-service-with-local-image/local-image/app.py @@ -11,5 +11,5 @@ def hello(): return html.format(name=os.getenv("NAME", "world"), hostname=socket.gethostname()) if __name__ == "__main__": - app.run(host='0.0.0.0', port=80) + app.synth()(host='0.0.0.0', port=80) diff --git a/typescript/ecs/fargate-service-with-logging/index.ts b/typescript/ecs/fargate-service-with-logging/index.ts index b49212d19f..f2df6ffe9b 100644 --- a/typescript/ecs/fargate-service-with-logging/index.ts +++ b/typescript/ecs/fargate-service-with-logging/index.ts @@ -35,4 +35,4 @@ const app = new cdk.App(); new WillkommenFargate(app, 'Willkommen'); -app.run(); +app.synth(); diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/index.ts b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/index.ts index 951436c0c8..d23095fbf8 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/index.ts +++ b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/index.ts @@ -76,4 +76,4 @@ const app = new cdk.App(); new CdkStack(app, 'ElasticBeanstalkBG'); -app.run(); +app.synth(); diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts b/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts index 53cedfb6d7..e621d97924 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts +++ b/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts @@ -29,4 +29,4 @@ const app = new cdk.App(); new CdkStack(app, 'ElasticBeanstalk'); -app.run(); \ No newline at end of file +app.synth(); \ No newline at end of file diff --git a/typescript/lambda-cron/index.ts b/typescript/lambda-cron/index.ts index 62339e5f84..ba042bf5a7 100644 --- a/typescript/lambda-cron/index.ts +++ b/typescript/lambda-cron/index.ts @@ -28,4 +28,4 @@ export class LambdaCronStack extends cdk.Stack { const app = new cdk.App(); new LambdaCronStack(app, 'LambdaCronExample'); -app.run(); +app.synth(); diff --git a/typescript/my-widget-service/index.ts b/typescript/my-widget-service/index.ts index 410b4e5bc1..42320daf3e 100644 --- a/typescript/my-widget-service/index.ts +++ b/typescript/my-widget-service/index.ts @@ -12,4 +12,4 @@ export class MyWidgetServiceStack extends cdk.Stack { const app = new cdk.App(); new MyWidgetServiceStack(app, 'MyWidgetServiceStack'); -app.run(); +app.synth(); diff --git a/typescript/resource-overrides/index.ts b/typescript/resource-overrides/index.ts index 9701bc715f..76da4b5cab 100644 --- a/typescript/resource-overrides/index.ts +++ b/typescript/resource-overrides/index.ts @@ -106,4 +106,4 @@ class ResourceOverridesExample extends cdk.Stack { const app = new cdk.App(); new ResourceOverridesExample(app, 'resource-overrides'); -app.run(); +app.synth(); diff --git a/typescript/static-site/index.ts b/typescript/static-site/index.ts index ee8cc1e19b..8cbdc20858 100644 --- a/typescript/static-site/index.ts +++ b/typescript/static-site/index.ts @@ -28,4 +28,4 @@ const app = new cdk.App(); new MyStaticSiteStack(app, 'MyStaticSite', { env: { region: 'us-east-1' } }); -app.run(); +app.synth(); diff --git a/typescript/stepfunctions-job-poller/index.ts b/typescript/stepfunctions-job-poller/index.ts index c7fc525465..3ba47a54d8 100644 --- a/typescript/stepfunctions-job-poller/index.ts +++ b/typescript/stepfunctions-job-poller/index.ts @@ -47,4 +47,4 @@ class JobPollerStack extends cdk.Stack { const app = new cdk.App(); new JobPollerStack(app, 'aws-stepfunctions-integ'); -app.run(); +app.synth();