From 364bc4d64e87cc2494839632a0ddcfd98ae89da1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 6 Jul 2022 16:29:54 -0700 Subject: [PATCH] fix(aws): Fix Create Server Group button (backport #9865) (#9866) Co-authored-by: Sergio Quintero Co-authored-by: Cameron Motevasselani --- .../configure/serverGroupCommandBuilder.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts b/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts index 0513d7100b4..8e8bf575af3 100644 --- a/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts +++ b/packages/amazon/src/serverGroup/configure/serverGroupCommandBuilder.service.ts @@ -65,8 +65,10 @@ angular ) { function buildNewServerGroupCommand( application: Application, - defaults: { account?: string; region?: string; subnet?: string; mode?: string } = {}, + defaults: { account?: string; region?: string; subnet?: string; mode?: string }, ) { + defaults = defaults || {}; + const credentialsLoader = AccountService.getCredentialsKeyedByAccount('aws'); const defaultCredentials =