From 6683248006b2a2b57aa169f3c944c4f722a33e9c Mon Sep 17 00:00:00 2001 From: Ashley Kleynhans Date: Tue, 10 Sep 2024 20:08:02 +0200 Subject: [PATCH] fix(aws): Fix userData getting lost when cloning an AWS server group that uses launch templates (#6771) (#10132) (cherry picked from commit d5a8ea320dbb7cf4827a26a2af7197f07070a604) --- .../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..a035349ffd4 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) {