Based on experience, best way to test IaC would be to test the final deployment to see if the desired behaviour is reached or not.
Possible solution could be to https://github.com/localstack/localstack to setup a local AWS and deploy resources; Then run assertions on that stack.