Executing a lambda upon stage creation

I was wondering if anyone is kicking off a lambda function upon stage deploy? I thought there might be a plugin that allows this, but I haven’t found the functionality yet … I’d like to configure a bunch of default DynamoDb entries automatically instead of manually. I suppose I could use an AWS CLI call to invoke it, so all I would need is a way to execute a batch script upon serverless stage deploy?

Thanks in advance!

For what it’s worth… I’m using npm to handle building and deployment (i.e. lint, compile, test deploy, etc). It would be pretty easy to add an extra step to invoke a lambda post deployment.

Yeah, that’s a good point … I’m not a webpack expert, but I was thinking about exploring whether to do this there. You’ve now reminded me of a viable alternative, thanks @buggy!