Which of the following is not valid source path for specifying a module?
Which of the following is not valid source path for specifying a module?
The option 'source = "./modulelversion=v1.0.0"' is not a valid source path for specifying a module. Valid local paths should not include version information directly in the path. Local paths should simply reference the directory, such as './module'. For remote modules, versioning information can be included, but this is done using a different syntax, such as appending a '?ref=v1.0.0' for GitHub repositories.
You don't use pipe "|" in the path
A tricky question but ./ means its a local path and there are no versions in local modules so must be A I guess.
A. source = "./modulelversion=v1.0.0" is not a valid source path for specifying a module. When specifying a module, a valid source path must include the module name and the provider, if specified. In this case, "./modulelversion=v1.0.0" is not a valid source path because it's missing the module name and "l" is an invalid character for a version.
Valid usage for a local path: module "example" { source = "./module" # Versioning for local paths is not applicable. You would control versioning with version control systems. }
Answer is A. All other choices are the correct way to input the path. Reference: