Most of the AWS infrastructure of the company I work for is described and managed using Terraform.
We have several different services including containerized back-ends and CDN'ed front-ends.
From Route53 domains and namespaces to ELBs, ECS and CloudFront, there is a lot going on.
One of the issues that is happening right now is that, mostly because of the Route53 DNS, checking, refreshing and validating a terraform state takes a long time.
And this is the problem we're trying to solve:
How to drastically reduce the time it takes for tf state to be refreshed/checked?
Moving it into a separate repository apparently is not a good idea because that would make all the Route53 related variables inaccessible or, possibly, outdated.
TF_LOG=DEBUG
and analyse the logs of terraform maybe there is a delay you can't see with the INFO logs. – Eduardo