The following contains instruction for loading the module from other sources than the Terraform Registry, which is especially useful during development for testing unpublished changes.
To load the module from GitHub, use:
module "my_cluster" {
source = "github.com/weibeld/terraform-aws-kubeadm?ref=<ref>
# ...
}
<ref>
is the desired branch or tag name of the repository.
To force re-downloading the module (e.g. after pushing additional commits to a branch), you can use:
terraform init --upgrade
To load the module from the local file system, use:
module "my_cluster" {
source = "<path>/terraform-aws-kubeadm"
# ...
}
`<path>` is the absolute or relative path to the root directory of this repository.
> Note: if using a relative path, the module code is referenced from its original location rather than being copied into the current directory. This has the advantage that changes to the module code are immediately picked up, without the need to run `terraform init` again.