Terraform state locking


Using Alibaba Cloud Terraform provider along with OTS state locking solution as implemented in this module: https://github.com/terraform-alicloud-modules/terraform-alicloud-remote-backend.

I’m trying to understand if it’s possible to handle multiple state locks (multiple state files) within single table.

If Terraform contains multiple modules where each module handles different part of the infrastructure, For example one handles ECS instances, other handles VPC resources, and those are maintained by different Terraform maintainers, can I use a single OTS table for locking multiple states for independent modules in a single OTS table?

Appreciate your help.