docstr: Print the available terraform targets
  
  Args:
      config (CLIConfig): Loaded StreamAlert config
  
  Returns:
      bool: False if errors occurred, True otherwise
docstr_tok: ["Print","the","available","terraform","targets","Args",":","config","(","CLIConfig",")",":","Loaded","StreamAlert","config","Returns",":","bool",":","False","if","errors","occurred",",","True","otherwise"]
code: def handler(cls, options, config):
      """Print the available terraform targets
  
      Args:
          config (CLIConfig): Loaded StreamAlert config
  
      Returns:
          bool: False if errors occurred, True otherwise
      """
      modules = get_tf_modules(config, True)
      if not modules:
          return False
  
      max_resource_len = (
          max(
              len(value)
              for values in modules.values()
              for value in values
          )
          + 8
      )
  
      row_format_str = "{prefix:<{pad}}{value}"
  
      header = row_format_str.format(
          prefix="Target", pad=max_resource_len, value="Type"
      )
      print(header)
      print("-" * (len(header) + 4))
      for value_type in sorted(modules):
          for item in sorted(modules[value_type]):
              print(
                  row_format_str.format(
                      prefix=item,
                      pad=max_resource_len,
                      value=value_type,
                  )
              )
  
      return True
  
imports: from fnmatch import fnmatch
  import json
  import os
  from streamalert.shared.config import firehose_alerts_bucket
  from streamalert.shared.logger import get_logger
  from streamalert.shared.utils import get_data_file_format
  from streamalert_cli.athena.handler import create_table, create_log_tables
  from streamalert_cli.helpers import check_credentials, continue_prompt, run_command
  from streamalert_cli.manage_lambda.deploy import deploy
  from streamalert_cli.terraform.generate import terraform_generate_handler
  from streamalert_cli.terraform.helpers import terraform_check, terraform_runner
  from streamalert_cli.utils import add_clusters_arg, CLICommand, set_parser_epilog, UniqueSortedListAction
label_desc: Use image node_id 2 for calling the TerraformListTargetsCommand obj's underlying member method code with example usage: obj.handler(cls, options, config) and returns: True, False