You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was just thinking about this and I'm thinking this might work:
Have a parent tf project which contains the provider config, this file doesn't need to change during the cloadgoat lifecycle so it can be edited by the user if needed. When a scenario is enabled we write a file out in the same project which includes the specific scenario as a module, when it's deleted that file is deleted. Terraform apply is then run in this parent directory but otherwise the same as before.
Terraform best practices dictate that a module shouldn't define its own provider configuration, unless it needs something specific.
An enhancement would be to not define the AWS provider in every scenario. It would also make it easier to perform refactorings like #101
The text was updated successfully, but these errors were encountered: