Question… My stacks has lot of dependencies on SSM...
# sst
a
Question… My stacks has lot of dependencies on SSM, due I’m storing some VPC IDs and references to other systems… etc… So I was thinking that maybe I can add an script or check at the beginning of my
index
which can check if all my SSM vars are defined in the current account/environment. I need this due I have currently 3 totally different AWS accounts (dev, stage, prod), so I need to manually configure each SSM instance by hand. Thoughts?
t
I do something like this
I throw errors when specific config values are missing (all my config vals are loaded from ssm)
a
Interesting.
Did you created a helper class or something?
I was thinking to add an stack with those pre-conditions.
To not add boilerplate checks on every stack.
Shit, I can’t do this from index, due SSM requires an Stack.
I would need to check the params on each stack 🤦‍♂️ .
f
Hey @Adrián Mouly, I remember you had a shared stack that you use to import the VPC. Does it make sense to check it in there?
I think having a shared stack to house common resources (ie. VPC, SSM) makes a lot of sense.