class Idlc::Deploy::Config

def configure_tfstatev10(bucket, sub_bucket, working_directory)

def configure_tfstatev10(bucket, sub_bucket, working_directory)
  args = []
  args << "-backend-config=\"bucket=#{bucket}\""
  args << "-backend-config=\"key=#{sub_bucket}/terraform.tfstate\""
  args << "-backend-config=\"region=#{@region}\""
  args << "-force-copy"
  Terraform::Binary::Command.run("-chdir=\"#{working_directory}\" init #{args.join(' ')}")
end