I created infrastructure for different environment (testing / prod) with terraform using workspaces, locals and -backend-config so there is only two differents files, others files are common for both environment.
Unfortunately, I don't find a way to destroy specific environment the same way (without creating lots of specific files for each environment).
Am I missing something ? Is there a way do that ?
Any help would be appreciated.
Thanks in advance !
Regards,
Florent
EDIT : Thanks for answers, I managed to do what I wanted to do using workspaces, locals and backend-config !