Skip to content

Commit 9473124

Browse files
Use endpoints properly. (#240)
1 parent 735a711 commit 9473124

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

aws-ts-airflow/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ let airflowWorkers = new awsx.ecs.EC2Service("airflowworkers", {
130130
},
131131
});
132132

133-
export let airflowEndpoint = airflowControllerListener.endpoint().hostname;
134-
export let flowerEndpoint = airflowerListener.endpoint().hostname;
133+
export let airflowEndpoint = airflowControllerListener.endpoint.hostname;
134+
export let flowerEndpoint = airflowerListener.endpoint.hostname;

aws-ts-url-shortener-cache-http/cache.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as config from "./config";
88
// A simple cache abstraction that wraps Redis.
99
export class Cache {
1010
private readonly redis: awsx.ecs.FargateService;
11-
private readonly endpoint: pulumi.Output<aws.apigateway.x.Endpoint>;
11+
private readonly endpoint: pulumi.Output<awsx.elasticloadbalancingv2.ListenerEndpoint>;
1212

1313
constructor(name: string, memory: number = 128) {
1414
let pw = config.redisPassword;
@@ -26,7 +26,7 @@ export class Cache {
2626
},
2727
});
2828

29-
this.endpoint = listener.endpoint();
29+
this.endpoint = listener.endpoint;
3030
}
3131

3232
public get(key: string): Promise<string> {

aws-ts-voting-app/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let redisCache = new awsx.ecs.FargateService("voting-app-cache", {
2424
},
2525
});
2626

27-
let redisEndpoint = redisListener.endpoint();
27+
let redisEndpoint = redisListener.endpoint;
2828

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

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

0 commit comments

Comments
 (0)