https://pulumi.com logo
l

limited-rainbow-51650

07/18/2019, 9:49 PM
I guess more of a Typescript question than a Pulumi question, but how can I spread a large set of resources over multiple
.ts
files, all called from
index.ts
?
w

white-balloon-205

07/18/2019, 9:50 PM
Just import all the other files into
index.ts
- right?
l

limited-rainbow-51650

07/18/2019, 9:51 PM
Guess so, but my attempt doesn’t seem to work.
w

white-balloon-205

07/18/2019, 9:51 PM
If you want to import from another file but not actually reference any outputs, TypeScript has an unfortunate rule that you have to use the
import "./foo"
form.
l

limited-rainbow-51650

07/18/2019, 9:55 PM
Indeed, bitten by that TS issue.
Tnx.
3 Views