I am seeking some advice / best practices regarding the organisation of our terraform configurations.
Currently we split the configuration in each environment in two parts.
Part number on is the basic setup, where we create buckets, ECR repos and networking configuration.
In part number two, we deploy several other applications on top of this basic setup. The benefit here is that we can destroy these applications anytime, while destroying the basic setup is not possible anymore, once you have put data into the buckets and ECR repos.
Here are my questions:
First, what is your opinion regarding this strategy?
Second, if you agree that this can make sense, is there a way to share the output variables of the basic setup with the terraform configuration for the other applications? I think I can do that with a data object, and a script fetching the terraform outputs of the basic config, I just want to know if this is a good idea or not.
Thanks for your help!
I am seeking advice regarding the terraform physical design, this is not about an error or problem.
Aucun commentaire:
Enregistrer un commentaire