How would you implement a function that generates sample data in a development stack for a developer to work with? This is something that should never run in production.
Pablo Fernandez
02/12/2022, 12:28 PM
I'm thinking of having a stack with an API endpoint that when called clears the database and creates the new data and this stack is only deployed the stage !== "prod".
r
Ross Coundon
02/12/2022, 12:47 PM
Exactly that, only run it for a non-prod stage. You could probably do something with the script construct