How to set a dynamic RoleMappings key for a IndentityPoolRoleAttachment in CloudFormation
问题 I am building a stack to initialize a Cognito installation. As part of this I have setup user groups with associated roles. I need to set the Choose role from token option, allowing identities to use roles from the group(s) to which they are assigned. This is done through the RoleMappings object in the IndentityPoolRoleAttachment object. This mappings object is a string -> object map, where the string represents the identity provider. In my case, this is: cognito-idp.${some-region}.amazonaws