https://pulumi.com logo
#golang
Title
# golang
n

nice-airline-86891

04/28/2022, 4:51 AM
are there any examples for alternatives to a huge main func? for creating a bunch of resources? vpc + eks type things?
b

billowy-army-68599

04/28/2022, 4:54 AM
n

nice-airline-86891

04/28/2022, 5:01 AM
thx much, i'll digest 🙂
tho.. just scanning over it... how much should i reference other stacks? for best practices?
b

billowy-army-68599

04/28/2022, 5:06 AM
Inside your components, never. Make the inputs for your component configurable and then do the stack reference in your main program
👍 1
❤️ 1
n

nice-airline-86891

04/28/2022, 5:06 AM
ie, i lean towards creating a "core" stack, with VPC + EKS + few supporting things... logging buckets, cloud trail etc... and applications reference that stack... but would compartmentalizing it further be better? Logging/sec/compliance things be best in their own stack, referencing a vpc stack?
12 Views