From 65cc3162ca23976fcb40440481da7982b3885bb0 Mon Sep 17 00:00:00 2001 From: Ashley Kleynhans Date: Mon, 9 Sep 2024 14:39:32 +0200 Subject: [PATCH] fix(aws): Fix userData getting lost when cloning an AWS server group that uses launch templates (#6771) --- .../serverGroup/configure/serverGroupCommandBuilder.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts b/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts index 8e8bf575af3..2e348d5d101 100644 --- a/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts +++ b/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts @@ -405,6 +405,9 @@ angular spotMaxPrice = launchTemplateData.instanceMarketOptions?.spotOptions?.maxPrice; command.instanceType = launchTemplateData.instanceType; command.viewState.useSimpleInstanceTypeSelector = true; + if (launchTemplateData.userData) { + command.base64UserData = launchTemplateData.userData; + } } if (serverGroup.mixedInstancesPolicy) {