From f1a132b1c841de362aed9517d0786a362ab20610 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 19 Nov 2022 14:08:09 +0800 Subject: [PATCH] test again --- .cdk/lib/tea.xyz.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cdk/lib/tea.xyz.ts b/.cdk/lib/tea.xyz.ts index 649c601..de5f660 100644 --- a/.cdk/lib/tea.xyz.ts +++ b/.cdk/lib/tea.xyz.ts @@ -10,6 +10,7 @@ import { CfnOutput } from "aws-cdk-lib"; import { Construct } from "constructs"; import fs from "fs"; +import path from "path"; /** * The CloudFormation stack holding all our resources @@ -26,7 +27,7 @@ export default class TeaXYZ extends Stack { removalPolicy: RemovalPolicy.DESTROY, }); console.log("BUCKET NAME:", bucket.bucketName) - fs.writeFile('../bucket.txt', bucket.bucketName, () => { + fs.writeFile(path.join(process.cwd(), "bucket.txt"), bucket.bucketName, () => { console.log('bucket name shared'); })