class Idlc::Deploy::Config

def configure_state(bucket, sub_bucket, working_directory)

def configure_state(bucket, sub_bucket, working_directory)
  validate_environment
  tf_version = Terraform::Binary::config.version.split('.')
  configure_tfstatev8(bucket, sub_bucket, working_directory) if tf_version[0].to_i == 0 && tf_version[1].to_i <= 8
  configure_tfstatev9(bucket, sub_bucket, working_directory) if tf_version[0].to_i == 0 && tf_version[1].to_i > 8
  configure_tfstatev10(bucket, sub_bucket, working_directory) if tf_version[0].to_i > 0
end