Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use endpoints properly. #240

Merged
merged 1 commit into from
Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use endpoints properly.
  • Loading branch information
CyrusNajmabadi committed Mar 6, 2019
commit fcfd2f3804733a281cb3289b7d48de1b97811f2f
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;