code: def generate_sample_tf_module(env_root, module_dir=None):
      
      if module_dir is None:
          module_dir = os.path.join(env_root, 'sampleapp.tf')
      generate_sample_module(module_dir)
      for i in ['backend-us-east-1.tfvars', 'dev-us-east-1.tfvars', 'main.tf']:
          shutil.copyfile(
              os.path.join(ROOT,
                           'templates',
                           'terraform',
                           i),
              os.path.join(module_dir, i),
          )
      tf_ver_template = os.path.join(ROOT,
                                     'templates',
                                     'terraform',
                                     '.terraform-version')
      if os.path.isfile(tf_ver_template):
          shutil.copyfile(
              tf_ver_template,
              os.path.join(module_dir, '.terraform-version'),
          )
      else:  # running directly from git
          latest_tf_ver = get_latest_tf_version()
          with open(os.path.join(module_dir,
                                 '.terraform-version'), 'w') as stream:
              stream.write(latest_tf_ver)
  
      LOGGER.info("Sample Terraform app created at %s",
                  module_dir)
docs: Generate skeleton Terraform sample module.