Until now all sst constructs, I believe, have been...
# random
a
Until now all sst constructs, I believe, have been created by the sst team themselves. How would I go about creating a plugin or a construct that others could use. Could an sst project be somehow loaded and used as a plugin of sorts. My idea was to create another Auth construct, a more generic variant that isn’t bound to AWS IAM or Cognito but simply just takes in some config and spins up a fully featured authentication service. How would I go about building something like this?
t
I was just thinking about this as I want to bundle some common stuff for my own use. I don't think you need to do anything special - just create a package that depends on sst (and cdk probably) and export a construct where the scope is expected to be a sst.App/sst.Stack
I should maybe make a sample
a
oh, it’d be great if you could make a sample. Thank you.