I have two CloudFormation templates: the first template has with my Lambda functions and, the second, an SQS queue.
In the first template, I export the Lambda ARN and, in the second, I export the SQS queue URL and ARN.
Also, in the first template, I import the SQS queue URL and ARN to pass the value to the Lambda code and give permission to Lambda to send a message to SQS, respectively. In the second template, I import the Lambda ARN to give permission to Lambda to send a message to that SQS queue.
My concern is about the circular dependency between import/export values that was created with this configuration. At the moment of the deploy, there were no errors, but I'm wondering if this is a bad configuration or not.