Has anyone set up user groups in a cognito user pool in serverless framework? I understand that I can create both a user pool and a user group in the resources section of the .yml file, but the problem I'm facing is that the user group requires the user pool Id (which I don't get back until the user pool is created). I could always deploy without the user groups and then do a second deployment with the user groups after I have the user pool Id, but I'm curious if anyone has had any experience or ideas on how to do this in one single deployment. I'm sure many of you have come across this, but for reference I've added serverless's docs on resources as well as AWS docs on adding user pool and user group resources below. Thanks for the help everyone!!
Serverless docs: https://serverless.com/framework/docs/providers/aws/guide/resources/
User Pool Docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html
User Group Docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpoolgroup.html