I have the following folder structure
├── main.tf
├── modules
│ ├── web-app
│ │ ├── lambda.tf
│ │ ├── outputs.tf
│ │ ├── s3.tf
│ │ ├── sns.tf
│ │ ├── sqs.tf
│ │ └── variables.tf
│ ├── microservice1
│ │ ├── sns.tf
│ │ ├── sqs.tf
│ │ └── variables.tf
...
Inside the web-app I create a SNS topic. Inside the microservice I want to subscribe the queue I create there to the topic I created inside the web-app.
My problem is that I cannot figure out how to pass the arn of the topic from web-app to the microservice1.
How could I achieve that?