The Terraform Maven Plugin was designed to source dependencies from a Maven repo and piggyback off of Maven's native functionality to bring dependency management to Terraform. But Terraform configurations made available via a git URL also have a problem with dependency management; dependencies and their versions are still hardcoded in the Terraform source. Let's fix that!
Initial thoughts:
The Terraform Maven plugin could support a custom type called "git", which would signal to Terraform Maven that the dependency is a git repo. The artifactId could be repo name, the version could be the tag and the groupId could correspond to the base url + group/project.
The Terraform Maven Plugin was designed to source dependencies from a Maven repo and piggyback off of Maven's native functionality to bring dependency management to Terraform. But Terraform configurations made available via a git URL also have a problem with dependency management; dependencies and their versions are still hardcoded in the Terraform source. Let's fix that!
Initial thoughts:
The Terraform Maven plugin could support a custom type called "git", which would signal to Terraform Maven that the dependency is a git repo. The artifactId could be repo name, the version could be the tag and the groupId could correspond to the base url + group/project.