'NoneType' object is not a mapping when deploying cdk stack

I am trying to deploy a CDK stack with Localstack but i keep running into this error
it seems to happen when creating an IAM policy
I would appreciate any help

Hi, welcome to the LocalStack discuss forum!

Unfortunately that error is not enough information to diagnose the problem. Can you run LocalStack with DEBUG=1 to show more information. Ideally, can you share a minimal representative example that fails to deploy, as well as the LocalStack logs.

If you are a pro customer, please can you reach out to the pro support on slack and we can take it further.