Setting a Principal in an access policy will effectively grant users, accounts, or services with access to each repository. For more information on how to properly assign a Principal within the KMS policy, see the AWS documentation.
References:
https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html
In AWS Console -
In Terraform -
References:
https://docs.aws.amazon.com/kms/latest/developerguide/security-iam.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key