From 996f5bd51ca9e902dbc74cf2d803f1cffa651ce4 Mon Sep 17 00:00:00 2001 From: Andy Wick Date: Wed, 27 Mar 2024 10:18:23 -0400 Subject: [PATCH] do not create HTTP listener --- cdk-lib/viewer-stacks/viewer-nodes-stack.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cdk-lib/viewer-stacks/viewer-nodes-stack.ts b/cdk-lib/viewer-stacks/viewer-nodes-stack.ts index 0b02c51..cc6a429 100644 --- a/cdk-lib/viewer-stacks/viewer-nodes-stack.ts +++ b/cdk-lib/viewer-stacks/viewer-nodes-stack.ts @@ -125,12 +125,6 @@ export class ViewerNodesStack extends cdk.Stack { lb.addSecurityGroup(sg); } - const listener = lb.addListener('Listener', { - protocol: elbv2.ApplicationProtocol.HTTP, - port: 80, - open: true - }); - // Our Arkime Capture container const container = taskDefinition.addContainer('ViewerContainer', { image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', '..', 'docker-viewer-node')), @@ -153,6 +147,13 @@ export class ViewerNodesStack extends cdk.Stack { hostPort: viewerPort }); + /* + const listener = lb.addListener('Listener', { + protocol: elbv2.ApplicationProtocol.HTTP, + port: 80, + open: true + }); + listener.addTargets('TargetGroup', { protocol: elbv2.ApplicationProtocol.HTTP, port: viewerPort, @@ -168,6 +169,7 @@ export class ViewerNodesStack extends cdk.Stack { interval: cdk.Duration.seconds(30), }, }); + */ const certificate = acm.Certificate.fromCertificateArn(this, 'ViewerCert', props.arnViewerCert); const httpsListener = lb.addListener('HttpsListener', {