From 06c86925666f6874c2ed54c887a3b1f8395f4232 Mon Sep 17 00:00:00 2001 From: Geoff Lamperd Date: Mon, 23 Sep 2024 13:05:11 +1000 Subject: [PATCH] chore: adds debug messages in createBucket --- packages/backend/src/functions/storage.ts | 1 + packages/phase2cli/src/commands/setup.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/backend/src/functions/storage.ts b/packages/backend/src/functions/storage.ts index b124b8ef..f7748c88 100644 --- a/packages/backend/src/functions/storage.ts +++ b/packages/backend/src/functions/storage.ts @@ -146,6 +146,7 @@ export const createBucket = functions const S3 = await getS3Client() try { + printLog(`Creating AWS S3 bucket ${data.bucketName} ...`, LogLevel.LOG) // Try to get information about the bucket. await S3.send(new HeadBucketCommand({ Bucket: data.bucketName })) // If the command succeeded, the bucket exists, throw an error. diff --git a/packages/phase2cli/src/commands/setup.ts b/packages/phase2cli/src/commands/setup.ts index c3141991..0a63cbc0 100644 --- a/packages/phase2cli/src/commands/setup.ts +++ b/packages/phase2cli/src/commands/setup.ts @@ -417,6 +417,7 @@ export const handleCeremonyBucketCreation = async ( try { // Make the call to create the bucket. + spinner.info(`Creating bucket ${bucketName}`) await createS3Bucket(firebaseFunctions, bucketName) } catch (error: any) { const errorBody = JSON.parse(JSON.stringify(error))