From 9c850c3f9d88afc5313c5c96bd911209aa62caaf Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:32:27 +0000 Subject: [PATCH] fix(aws): Fix userData getting lost when cloning an AWS server group that uses launch templates (#6771) (#10132) (#10137) (cherry picked from commit d5a8ea320dbb7cf4827a26a2af7197f07070a604) Co-authored-by: Ashley Kleynhans --- .../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) {