From 172eba55081520cc42ae18f0774a7d61098cc56d Mon Sep 17 00:00:00 2001 From: David Pepper <36296660+david-pepper@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:31:39 +0100 Subject: [PATCH] format --- cdk/lib/zuora-salesforce-link-remover.ts | 4 +--- .../src/getBillingAccounts.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cdk/lib/zuora-salesforce-link-remover.ts b/cdk/lib/zuora-salesforce-link-remover.ts index 0430f08728..0a21baba62 100644 --- a/cdk/lib/zuora-salesforce-link-remover.ts +++ b/cdk/lib/zuora-salesforce-link-remover.ts @@ -20,9 +20,7 @@ export class ZuoraSalesforceLinkRemover extends GuStack { architecture: Architecture.ARM_64, initialPolicy: [ new PolicyStatement({ - actions: [ - 'secretsmanager:GetSecretValue', - ], + actions: ['secretsmanager:GetSecretValue'], resources: [ `arn:aws:secretsmanager:${this.region}:${this.account}:secret:DEV/Salesforce/ConnectedApp/AwsConnectorSandbox-oO8Phf`, ], diff --git a/handlers/zuora-salesforce-link-remover/src/getBillingAccounts.ts b/handlers/zuora-salesforce-link-remover/src/getBillingAccounts.ts index 7ed36dd1da..6dcc6bf67e 100644 --- a/handlers/zuora-salesforce-link-remover/src/getBillingAccounts.ts +++ b/handlers/zuora-salesforce-link-remover/src/getBillingAccounts.ts @@ -1,15 +1,17 @@ -import { GetSecretValueCommand, SecretsManagerClient } from "@aws-sdk/client-secrets-manager"; +import { + GetSecretValueCommand, + SecretsManagerClient, +} from '@aws-sdk/client-secrets-manager'; export function handler() { console.log('getting secret...'); - const secretName = "DEV/Salesforce/ConnectedApp/AwsConnectorSandbox" + const secretName = 'DEV/Salesforce/ConnectedApp/AwsConnectorSandbox'; - const secret = getSecretValue({secretName}); + const secret = getSecretValue({ secretName }); console.log('secret = ', secret); return 'abcdef'; } - export const getSecretValue = async ({ secretName, }: { @@ -38,7 +40,7 @@ export const getSecretValue = async ({ return secretValue; } catch (error) { - console.error('error:',error); + console.error('error:', error); throw error; } };