I have the infrastructure for AWS being created using Terraform. There is a SNS topic already present in another AWS account which I have to subscribe for an SQS that I have in my AWS account. How to add this subscription topic to the SQS during resource creation of SQS using Terraform?
As the SNS topic is already present in another account, I just need to refer this subscription to the SQS in my account.
Is there a way to provide subscription arn in the syntax of
resource "aws_sqs_queue" "sqs-resource"
{
}