Skip to content

Commit

Permalink
fix(typescript): Replaced all instances of 'app.run()' with 'app.synt…
Browse files Browse the repository at this point in the history
…h()' (aws-samples#49)

To comply with new standard nomenclature
  • Loading branch information
Noah Litov committed Jun 13, 2019
1 parent 9681dd0 commit c20c226
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion typescript/api-cors-lambda-crud-dynamodb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ export function addCorsOptions(apiResource: apigateway.IResource) {

const app = new cdk.App();
new ApiLambdaCrudDynamoDBStack(app, 'ApiLambdaCrudDynamoDBExample');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/application-load-balancer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ class LoadBalancerStack extends cdk.Stack {

const app = new cdk.App();
new LoadBalancerStack(app, 'LoadBalancerStack');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/appsync-graphql-dynamodb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ export class AppSyncCdkStack extends cdk.Stack {

const app = new cdk.App();
new AppSyncCdkStack(app, 'AppSyncGraphQLDynamoDBExample');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/classic-load-balancer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ class LoadBalancerStack extends cdk.Stack {

const app = new cdk.App();
new LoadBalancerStack(app, 'LoadBalancerStack');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/custom-resource/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ class MyStack extends cdk.Stack {

const app = new cdk.App();
new MyStack(app, 'CustomResourceDemoStack');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/ecs/cluster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ const app = new cdk.App();

new ECSCluster(app, 'MyFirstEcsCluster');

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/ecs/ecs-load-balanced-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ const app = new cdk.App();

new BonjourECS(app, 'Bonjour');

app.run();
app.synth();
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ listener.addTargets('ECS', {

new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: lb.loadBalancerDnsName, });

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/ecs/ecs-service-with-logging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ const app = new cdk.App();

new WillkommenECS(app, 'Willkommen');

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/ecs/ecs-service-with-task-networking/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ new ecs.Ec2Service(stack, 'awsvpc-ecs-demo-service', {
securityGroup,
});

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/ecs/ecs-service-with-task-placement/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion typescript/ecs/fargate-load-balanced-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ const app = new cdk.App();

new BonjourFargate(app, 'Bonjour');

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/ecs/fargate-service-with-auto-scaling/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ const app = new cdk.App();

new AutoScalingFargateService(app, 'aws-fargate-application-autoscaling');

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/ecs/fargate-service-with-local-image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ new ecs_patterns.LoadBalancedFargateService(stack, "FargateService", {
})
});

app.run();
app.synth();
Original file line number Diff line number Diff line change
Expand Up @@ -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)

2 changes: 1 addition & 1 deletion typescript/ecs/fargate-service-with-logging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ const app = new cdk.App();

new WillkommenFargate(app, 'Willkommen');

app.run();
app.synth();
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ const app = new cdk.App();

new CdkStack(app, 'ElasticBeanstalkBG');

app.run();
app.synth();
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ const app = new cdk.App();

new CdkStack(app, 'ElasticBeanstalk');

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/lambda-cron/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export class LambdaCronStack extends cdk.Stack {

const app = new cdk.App();
new LambdaCronStack(app, 'LambdaCronExample');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/my-widget-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export class MyWidgetServiceStack extends cdk.Stack {

const app = new cdk.App();
new MyWidgetServiceStack(app, 'MyWidgetServiceStack');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/resource-overrides/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ class ResourceOverridesExample extends cdk.Stack {

const app = new cdk.App();
new ResourceOverridesExample(app, 'resource-overrides');
app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/static-site/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ const app = new cdk.App();

new MyStaticSiteStack(app, 'MyStaticSite', { env: { region: 'us-east-1' } });

app.run();
app.synth();
2 changes: 1 addition & 1 deletion typescript/stepfunctions-job-poller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ class JobPollerStack extends cdk.Stack {

const app = new cdk.App();
new JobPollerStack(app, 'aws-stepfunctions-integ');
app.run();
app.synth();

0 comments on commit c20c226

Please sign in to comment.