few-yacht-1162305/15/2022, 2:19 PM
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.
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
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?
and I swapped those to
export * from './subtree'
and now it is working consistently
sparse-park-6896705/16/2022, 1:29 PM
few-yacht-1162305/16/2022, 6:24 PM
file per stack
sparse-park-6896705/16/2022, 6:38 PM