From 2c19072bf9b86b9a3d0d7dbae7b688f5cf9eac33 Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Sun, 29 Oct 2023 19:56:23 -0700 Subject: [PATCH] Temp hack to run ES-7.10.2 Signed-off-by: Rishabh Singh --- lib/infra/infra-stack.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/infra/infra-stack.ts b/lib/infra/infra-stack.ts index 5cb6489e30f..38e6e11a1de 100644 --- a/lib/infra/infra-stack.ts +++ b/lib/infra/infra-stack.ts @@ -139,6 +139,7 @@ export class InfraStack extends Stack { initOptions: { ignoreFailures: false, }, + requireImdsv2: true, }); Tags.of(singleNodeInstance).add('role', 'client'); @@ -191,6 +192,7 @@ export class InfraStack extends Stack { ignoreFailures: false, }, signals: Signals.waitForAll(), + requireImdsv2: true, }); Tags.of(managerNodeAsg).add('role', 'manager'); @@ -224,6 +226,7 @@ export class InfraStack extends Stack { ignoreFailures: false, }, signals: Signals.waitForAll(), + requireImdsv2: true, }); Tags.of(seedNodeAsg).add('role', 'manager'); @@ -251,6 +254,7 @@ export class InfraStack extends Stack { ignoreFailures: false, }, signals: Signals.waitForAll(), + requireImdsv2: true, }); Tags.of(dataNodeAsg).add('role', 'data'); @@ -281,6 +285,7 @@ export class InfraStack extends Stack { ignoreFailures: false, }, signals: Signals.waitForAll(), + requireImdsv2: true, }); Tags.of(clientNodeAsg).add('cluster', scope.stackName); } @@ -312,6 +317,7 @@ export class InfraStack extends Stack { ignoreFailures: false, }, signals: Signals.waitForAll(), + requireImdsv2: true, }); Tags.of(mlNodeAsg).add('role', 'ml-node'); @@ -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 &', { cwd: '/home/ec2-user', ignoreErrors: false,