I have 3 terraspace project, that have several stacks in them. We separate them because it’s easier in terms of reading, maintenance and concept. But we have some links that need to be updated between each.
a first terraspace (called tools) create some AWS ECR repositories.
a second terraspace (called foundation) need to know the arn of the repositories.
So I was thinking writing in some local file in the first terraspace and then reading this file in the second one. So I was thinking using
resource "local_file" but I think it will cause two issue
- it will make the “apply plan” confuse with each time some change that are useless
- I think it will be written in the .terraspace-cache that can be potentially erased at any moment.
So do you see any better solution (except merging all terraspace in one big project)? Perhaps adding some ruby code?