Skip to content

Commit 3a0c913

Browse files
committed
Fix cluster bootstrap when using a separate client node asg
Currently an error is thrown that this tag must specify a value. Signed-off-by: Marc Handalian <[email protected]>
1 parent 65896f8 commit 3a0c913

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/infra/infra-stack.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export class InfraStack extends Stack {
469469

470470
let dashboardsListener: NetworkListener | ApplicationListener;
471471
if (this.dashboardsUrl !== 'undefined') {
472-
const useSSLDashboardsListener = !this.securityDisabled && !this.minDistribution
472+
const useSSLDashboardsListener = !this.securityDisabled && !this.minDistribution
473473
&& this.opensearchDashboardsPortMapping === 443 && certificateArn !== 'undefined';
474474
dashboardsListener = InfraStack.createListener(
475475
this.elb,
@@ -509,18 +509,18 @@ export class InfraStack extends Stack {
509509
// Disable target security for now, can be provided as an option in the future
510510
InfraStack.addTargetsToListener(
511511
opensearchListener,
512-
this.elbType,
513-
'single-node-target',
514-
9200,
512+
this.elbType,
513+
'single-node-target',
514+
9200,
515515
new InstanceTarget(singleNodeInstance),
516516
false);
517517

518518
if (this.dashboardsUrl !== 'undefined') {
519519
InfraStack.addTargetsToListener(
520520
dashboardsListener!,
521-
this.elbType,
522-
'single-node-osd-target',
523-
5601,
521+
this.elbType,
522+
'single-node-osd-target',
523+
5601,
524524
new InstanceTarget(singleNodeInstance),
525525
false);
526526
}
@@ -652,7 +652,7 @@ export class InfraStack extends Stack {
652652
requireImdsv2: true,
653653
signals: Signals.waitForAll(),
654654
});
655-
Tags.of(clientNodeAsg).add('cluster', scope.stackName);
655+
Tags.of(clientNodeAsg).add('cluster', this.stackName);
656656
}
657657

658658
Tags.of(clientNodeAsg).add('role', 'client');
@@ -690,18 +690,18 @@ export class InfraStack extends Stack {
690690
// Disable target security for now, can be provided as an option in the future
691691
InfraStack.addTargetsToListener(
692692
opensearchListener,
693-
this.elbType,
694-
'opensearchTarget',
695-
9200,
693+
this.elbType,
694+
'opensearchTarget',
695+
9200,
696696
clientNodeAsg,
697697
false);
698698

699699
if (this.dashboardsUrl !== 'undefined') {
700700
InfraStack.addTargetsToListener(
701701
dashboardsListener!,
702-
this.elbType,
703-
'dashboardsTarget',
704-
5601,
702+
this.elbType,
703+
'dashboardsTarget',
704+
5601,
705705
clientNodeAsg,
706706
false);
707707
}

0 commit comments

Comments
 (0)