few-yacht-11623
05/15/2022, 2:19 PMindex.ts
file and I’m trying to refactor this into multiple files/directories. However, I’m getting inconsistent import behavior once I split these files into different directories. pulumi preview
will sometime show 0 changes, sometimes it will try to delete my EB environment that’s a few layers of imports deep. I put log statements in my files and it looks like sometimes it doesn’t import the file it’s defined in.
1. Are there any articles/docs on refactoring pulumi programs I can read?
2. Do files need to have an export to be processed for pulumi state? My EB env is just declared as a const
variable without exporting anything, and I’m wondering if that might be part of my issue.
3. Does pulumi cache my input program in any way?export * from './subtree'
and I swapped those to import './subtree'
and now it is working consistentlysparse-park-68967
05/16/2022, 1:29 PMfew-yacht-11623
05/16/2022, 6:24 PM.ts
file per stacksparse-park-68967
05/16/2022, 6:38 PM