test again

This commit is contained in:
neil 2022-11-19 14:08:09 +08:00
parent bb74a4c913
commit f1a132b1c8

View file

@ -10,6 +10,7 @@ import {
CfnOutput } from "aws-cdk-lib"; CfnOutput } from "aws-cdk-lib";
import { Construct } from "constructs"; import { Construct } from "constructs";
import fs from "fs"; import fs from "fs";
import path from "path";
/** /**
* The CloudFormation stack holding all our resources * The CloudFormation stack holding all our resources
@ -26,7 +27,7 @@ export default class TeaXYZ extends Stack {
removalPolicy: RemovalPolicy.DESTROY, removalPolicy: RemovalPolicy.DESTROY,
}); });
console.log("BUCKET NAME:", bucket.bucketName) 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'); console.log('bucket name shared');
}) })