There could probably be an automated tool for this that wouldn't be too complex.
[1] https://registry.terraform.io/providers/hashicorp/aws/latest...