From b4d3f789cf80f7ddb8e06b95957e9db71aee8c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arwid=20Thornstro=CC=88m?= Date: Wed, 19 Jan 2022 11:02:04 +0100 Subject: [PATCH] fixed create function --- src/commands/deployment/testservers/create/create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/deployment/testservers/create/create.ts b/src/commands/deployment/testservers/create/create.ts index 41b600d..3566d25 100644 --- a/src/commands/deployment/testservers/create/create.ts +++ b/src/commands/deployment/testservers/create/create.ts @@ -231,7 +231,7 @@ module.exports = { const dockerImage = `${awsAccountId}.dkr.ecr.${awsRegion}.amazonaws.com/${stackName}`; let composerAuthToken = await system.run(`aws ssm get-parameter --with-decryption --name /github/COMPOSER_TOKEN --output text --query Parameter.Value`); composerAuthToken = composerAuthToken.replace('\n', ''); - const composerAuth = `'{\"github-oauth\":{\"github.com\":\"${composerAuthToken}\"}}'`; + const composerAuth = `'{\\\"github-oauth\\\":{\\\"github.com\\\":\\\"${composerAuthToken}\\\"}}'`; const createCommand = getCreateStackCommand(stackName, branchName, 'file://ecs-service.yaml', dockerImage, githubToken, composerAuth); print.fancy(await system.run(createCommand, {cwd: '/tmp/', trim: true}));