Skip to content

Commit

Permalink
Temp hack to run ES-7.10.2
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Singh <[email protected]>
  • Loading branch information
rishabh6788 committed Oct 30, 2023
1 parent 62d9df5 commit 2c19072
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/infra/infra-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export class InfraStack extends Stack {
initOptions: {
ignoreFailures: false,
},
requireImdsv2: true,
});
Tags.of(singleNodeInstance).add('role', 'client');

Expand Down Expand Up @@ -191,6 +192,7 @@ export class InfraStack extends Stack {
ignoreFailures: false,
},
signals: Signals.waitForAll(),
requireImdsv2: true,
});
Tags.of(managerNodeAsg).add('role', 'manager');

Expand Down Expand Up @@ -224,6 +226,7 @@ export class InfraStack extends Stack {
ignoreFailures: false,
},
signals: Signals.waitForAll(),
requireImdsv2: true,
});
Tags.of(seedNodeAsg).add('role', 'manager');

Expand Down Expand Up @@ -251,6 +254,7 @@ export class InfraStack extends Stack {
ignoreFailures: false,
},
signals: Signals.waitForAll(),
requireImdsv2: true,
});
Tags.of(dataNodeAsg).add('role', 'data');

Expand Down Expand Up @@ -281,6 +285,7 @@ export class InfraStack extends Stack {
ignoreFailures: false,
},
signals: Signals.waitForAll(),
requireImdsv2: true,
});
Tags.of(clientNodeAsg).add('cluster', scope.stackName);
}
Expand Down Expand Up @@ -312,6 +317,7 @@ export class InfraStack extends Stack {
ignoreFailures: false,
},
signals: Signals.waitForAll(),
requireImdsv2: true,
});

Tags.of(mlNodeAsg).add('role', 'ml-node');
Expand Down Expand Up @@ -506,7 +512,7 @@ export class InfraStack extends Stack {

// final run command based on whether the distribution type is min or bundle
if (props.minDistribution) { // using (stackProps.minDistribution) condition is not working when false value is being sent
cfnInitConfig.push(InitCommand.shellCommand('set -ex;cd opensearch; sudo -u ec2-user nohup ./bin/opensearch >> install.log 2>&1 &',
cfnInitConfig.push(InitCommand.shellCommand('set -ex;cd opensearch; sudo -u ec2-user cp config/opensearch.yml config/elasticsearch.yml; sudo -u ec2-user nohup ./bin/opensearch >> install.log 2>&1 &',

Check failure on line 515 in lib/infra/infra-stack.ts

View workflow job for this annotation

GitHub Actions / build

This line has a length of 205. Maximum allowed is 160
{
cwd: '/home/ec2-user',
ignoreErrors: false,
Expand Down

0 comments on commit 2c19072

Please sign in to comment.