Complete the code to use a local module source.
module "example" { source = "[1]" }
The source attribute points to a local path when using a local module.
Complete the code to use a module from the Terraform Registry.
module "vpc" { source = "[1]" version = "3.0.0" }
https:// in the source.The Terraform Registry module source uses the format namespace/module/provider.
Fix the error in the git module source URL.
module "network" { source = "[1]" }
git:: prefix.git:: prefix.Git module sources must start with git:: followed by the HTTPS URL.
Fill both blanks to specify a git module with a branch.
module "app" { source = "[1]?ref=[2]" }
git::.?ref= query parameter.The source uses the git URL with git:: prefix, and ?ref= specifies the branch name.
Fill both blanks to define a module from the registry with a specific version.
module "db" { source = "[1]" version = "[2]" }
The source is the registry module, version specifies the module version.
