https://developer.hashicorp.com/terraform/language/functions/matchkeys
matchkeys - Functions - Configuration Language | Terraform | HashiCorp Developer
The matchkeys function takes a subset of elements from one list by matching corresponding indexes in another list.
configuration languagefunctionsterraformhashicorpdeveloper