To resolve a Terraform module from an Artifactory repository, add the following information to your HCL file (main.tf
):
Note
Make sure to replace the placeholders with your token, JFrog Platform domain, namespace, module name, and provider name.
module "module-name" { source = "<YOUR_JFROG_DOMAIN>__<NAMESPACE>/<MODULE_NAME>/<PROVIDER_NAME>" }
For example:
module "vpc" { source = "tflocal.com/terraform-remote-chlwfrvoj9__terraform-aws-modules/vpc/aws" }