Hey guys! Complete newbie here. Using Digital Ocea...
# getting-started
c
Hey guys! Complete newbie here. Using Digital Ocean & Pulumi - loving it so far. I have a very noobie question to ask... All my IAC is sitting inside the index.ts file and I can't find any examples where people have split the configuration out into multiple files. EG:
Copy code
config ->
    dns.ts
    postgres.ts
    ...*.ts

index.ts
Where index.ts imports from the files within the config folder. Is this possible, or even a good idea? 😅
s
Definitely possible. You’d just split the code into separate files, and import them into
index.ts
. Here’s one example: https://github.com/pulumi/examples/blob/master/aws-apigateway-ts-routes/index.ts
c
Thank you so much! 🙏
s
Happy to help!