Use endpoints properly.
MODIFY
aws-ts-airflow/index.ts
aws-ts-airflow/index.ts
@@ -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;

MODIFY
aws-ts-url-shortener-cache-http/cache.ts
aws-ts-url-shortener-cache-http/cache.ts
@@ -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;
@@ -26,7 +26,7 @@ export class Cache {
},
});
- this.endpoint = listener.endpoint();
+ this.endpoint = listener.endpoint;
}
public get(key: string): Promise<string> {

MODIFY
aws-ts-voting-app/index.ts
aws-ts-voting-app/index.ts
@@ -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.
@@ -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;

Use endpoints properly. (#240)