From 2f6b1a0eeab2e34e3de2023d1bccaad754a418e3 Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:01:20 -0400 Subject: [PATCH] DOP-4414 ssm putparam --- cdk-infra/lib/constructs/worker/worker-construct.ts | 2 +- src/commands/src/shared/next-gen-deploy.ts | 2 +- src/job/productionJobHandler.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdk-infra/lib/constructs/worker/worker-construct.ts b/cdk-infra/lib/constructs/worker/worker-construct.ts index 8c00607dc..63f550305 100644 --- a/cdk-infra/lib/constructs/worker/worker-construct.ts +++ b/cdk-infra/lib/constructs/worker/worker-construct.ts @@ -39,7 +39,7 @@ export class WorkerConstruct extends Construct { const taskRoleSsmPolicyStatement = new PolicyStatement({ effect: Effect.ALLOW, - actions: ['ssm:GetParameter'], + actions: ['ssm:GetParameter', 'ssm:PutParameter'], resources: ['*'], }); diff --git a/src/commands/src/shared/next-gen-deploy.ts b/src/commands/src/shared/next-gen-deploy.ts index 5d86baf73..d41cac516 100644 --- a/src/commands/src/shared/next-gen-deploy.ts +++ b/src/commands/src/shared/next-gen-deploy.ts @@ -48,7 +48,7 @@ export async function nextGenDeploy({ console.log( `COMMAND: yes | mut-publish public ${bucket} --prefix=${mutPrefix} --deploy --deployed-url-prefix=${url} --json --all-subdirectories --dry-run` ); - console.log(`${outputText}\n Hosted at ${url}/${mutPrefix}`); + console.log(`${outputText}\n Hosted at ${url}${mutPrefix}`); return { status: CommandExecutorResponseStatus.success, output: outputText, diff --git a/src/job/productionJobHandler.ts b/src/job/productionJobHandler.ts index a7ed1ac28..6190cc018 100644 --- a/src/job/productionJobHandler.ts +++ b/src/job/productionJobHandler.ts @@ -181,7 +181,7 @@ export class ProductionJobHandler extends JobHandler { await this.jobRepository.insertInvalidationRequestStatusUrl(this.currJob._id, 'Invalidation Failed'); } } catch (error) { - await this.logger.save(this.currJob._id, error); + await this.logger.save(this.currJob._id, error.message); } }