Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#typescript
Title
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
See something like
https://github.com/pulumi/examples/blob/master/azure-ts-aks-mean/index.ts
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.
See
https://github.com/Microsoft/TypeScript/issues/9191
.
l
limited-rainbow-51650
07/18/2019, 9:55 PM
Indeed, bitten by that TS issue.
Tnx.
3 Views
Post