The repo for Answer Digital shared Terraform modules.
You can use these modules in your own terraform projects as follows:
module "ec2_setup" {
source = "github.com/answerdigital/terraform-modules//modules/aws/ec2?ref=v2"
}
Notice the double //
between the repository URL and the path to the module.
For further information please see the terraform documentation.
Versions are shared across all modules. You can choose a specific tag (e.g. ?ref=v2.0.0
) or to get the latest changes within a major version, use ?ref=v2
which will get the latest v2.x.x release.
Further documentation can be found in the wiki.