Updates the parameter parser so it returns an exception if no .tf files can be found in the artifact's root directory.
This will prevent unexpected noop results when the artifact file is compressed/archived with all the files in a top-level directory, rather than the root-module files at the root of the archive.
A second PR will be published to raise an exception when a provision or update operation is attempted on a an artifact with no .tf files in the root directory.
Testing
Ran go test on the parser code
Invoked from the lambda console
Valid artifact with 2 variables
Valid artifact with no variables
Invalid artifact: No .tf files in the root directory returns exception
Tested with Service Catalog console and describe-provisioning-parameters CLI:
Valid artifact with 2 variables
Valid artifact with no variables
Invalid artifact: No .tf files in the root directory returns exception
Description
Updates the parameter parser so it returns an exception if no .tf files can be found in the artifact's root directory.
This will prevent unexpected noop results when the artifact file is compressed/archived with all the files in a top-level directory, rather than the root-module files at the root of the archive.
A second PR will be published to raise an exception when a provision or update operation is attempted on a an artifact with no .tf files in the root directory.
Testing