Skip to content

Commit

Permalink
Use endpoints properly. (pulumi#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Mar 7, 2019
1 parent 49366fd commit 101fd06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions aws-ts-airflow/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ let airflowWorkers = new awsx.ecs.EC2Service("airflowworkers", {
},
});

export let airflowEndpoint = airflowControllerListener.endpoint().hostname;
export let flowerEndpoint = airflowerListener.endpoint().hostname;
export let airflowEndpoint = airflowControllerListener.endpoint.hostname;
export let flowerEndpoint = airflowerListener.endpoint.hostname;
4 changes: 2 additions & 2 deletions aws-ts-url-shortener-cache-http/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as config from "./config";
// A simple cache abstraction that wraps Redis.
export class Cache {
private readonly redis: awsx.ecs.FargateService;
private readonly endpoint: pulumi.Output<aws.apigateway.x.Endpoint>;
private readonly endpoint: pulumi.Output<awsx.elasticloadbalancingv2.ListenerEndpoint>;

constructor(name: string, memory: number = 128) {
let pw = config.redisPassword;
Expand All @@ -26,7 +26,7 @@ export class Cache {
},
});

this.endpoint = listener.endpoint();
this.endpoint = listener.endpoint;
}

public get(key: string): Promise<string> {
Expand Down
4 changes: 2 additions & 2 deletions aws-ts-voting-app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let redisCache = new awsx.ecs.FargateService("voting-app-cache", {
},
});

let redisEndpoint = redisListener.endpoint();
let redisEndpoint = redisListener.endpoint;

// A custom container for the frontend, which is a Python Flask app
// Use the 'build' property to specify a folder that contains a Dockerfile.
Expand All @@ -48,4 +48,4 @@ let frontend = new awsx.ecs.FargateService("voting-app-frontend", {
});

// Export a variable that will be displayed during 'pulumi up'
export let frontendURL = frontendListener.endpoint();
export let frontendURL = frontendListener.endpoint;

0 comments on commit 101fd06

Please sign in to comment.