Setting a Principal in an access policy will effectively grant users, accounts, or services with access to each SNS Queue. For more information on how to properly assign a Principal within the SNS policy, see the AWS documentation.
References:
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-basic-examples-of-sqs-policies.html
In AWS Console -
In Terraform -
References:
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-add-permissions.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue