https://pulumi.com logo
#general
Title
# general
a

average-dream-51210

05/23/2019, 11:59 PM
Hm, i'm using the JS sdk, what's a good way of organizing code? I currently have 3 Cognito user pools in 3 seperate files, require'd into the index.js . - Is this a good pattern? I'm planning to have the index.js be kind of like a 'Table of Contents' and put resources in their own folders to be require'd into the index.js.
w

white-balloon-205

05/24/2019, 3:57 AM
Yes - that’s generally a good way to organize. Splitting components or groups of related resources into serrated files/folders - and then using index.js in the root (or even in subfolders) to aggregate things together into the final application you want.
a

average-dream-51210

05/24/2019, 4:52 AM
awesome thanks!