Skip to content

Commit 7bb700c

Browse files
author
cguertuerk
committed
Enable SNI only for HTTPS health checks.
1 parent 466375a commit 7bb700c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getCloudformation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ const generateCloudformationByParameters = (stackName,flags) => {
7070
const healthCheckCount = 199 * healthCheckPercentage / 100;
7171

7272
const healthCheckConfig = {
73-
EnableSNI: true,
7473
RequestInterval: 10
7574
};
7675

@@ -86,6 +85,7 @@ const generateCloudformationByParameters = (stackName,flags) => {
8685
stackBody.Parameters.T = {Type: 'String'};
8786
stackParameters.T = 'HTTPS';
8887
healthCheckConfig.Type = {Ref: 'T'};
88+
healthCheckConfig.EnableSNI = true;
8989
break;
9090
default:
9191
throw new Error('Invalid protocol. Only HTTP(S) domains are supported.');

0 commit comments

Comments
 (0)