sparse-intern-71089
09/01/2022, 11:53 PMminiature-musician-31262
09/02/2022, 12:01 AMindex.ts
, but ultimately I believe any stack outputs need to be expressed as exports in index.ts
. (Though I’d love to be wrong on this!)victorious-dusk-75271
09/02/2022, 12:03 AMminiature-musician-31262
09/02/2022, 12:03 AMindex.ts
is becoming verbose?victorious-dusk-75271
09/02/2022, 12:04 AMminiature-musician-31262
09/02/2022, 12:15 AM// my-module.ts
import * as aws from "@pulumi/aws";
const bucket = new aws.s3.Bucket("my-bucket");
export const bucketName = bucket.bucket;
and then
// index.ts
export * from "./my-module";
… which can help keep things a bit tidier.victorious-dusk-75271
09/02/2022, 7:13 AM