Jenkinsfile backend s3 Hello, iam tring to do automation TF, i have an error in jenkinsfile read the right command froom the bac

pipeline {

// Jenkins AWS Access & Secret key
environment {
AWS_ACCESS_KEY_ID = credentials(‘AWS_ACCESS_KEY_ID’)
AWS_SECRET_ACCESS_KEY = credentials(‘AWS_SECRET_ACCESS_KEY’)
}

options {
// Only keep the 5 most recent builds
buildDiscarder(logRotator(numToKeepStr:‘5’))
}

agent any
tools {
terraform ‘terraform’
}

stages {
   // Check out from GIT, Snippet Generato from pipeline Syntax --> Checkout: Check out from version control 
    stage ("Check from GIT") {
        steps {
           git branch: 'master', credentialsId: 'Jenkins_terraform_ssh_repo', url: 'git@github.com:mickleissa/kobai.git'
              }
       }
    stage ("terraform init") {
        steps {
           // sh 'terraform -chdir="./v.14/test_env" init -upgrade'
           // this is working   sh 'terraform -chdir="./v.14/test_env" init -reconfigure'
         i think the problem here     **sh 'terraform -chdir="./v.14/test_env" init -migrate-state'**
             
                    
        }
    }
    stage ("Terraform fmt") {
        steps {
            sh 'terraform fmt'
        }
    }
    stage ("Terraform validate") {
        steps {
            sh 'terraform validate'
        }
    }
    // stage ("Terraform plan") {
      //  steps {
      //     // sh 'terraform -chdir="./v.14/test_env" plan -var-file="stage.tfvars"'
      //         sh 'terraform -chdir="./v.14/test_env" plan'
      //   }
   // }
   
    // stage ("Terraform plan") {
      //  steps {
           // sh 'terraform -chdir="./v.14/test_env" plan -var-file="stage.tfvars"'
            //   sh 'terraform -chdir="./v.14/test_env" plan'
       //    sh """
      //terraform plan -backend=S3 -backend-config="bucket=kobai-s3-backend-terraform-state/stage-test-env" -backend-config="key=terraform.tfstate" -backend-config="region=us-east-2"
      
    //"""
    //     }
   // }
                  
    stage ("Terraform apply") {
        steps {
            // sh 'terraform -chdir="./v.14/test_env" apply -var-file="stage.tfvars" --auto-approve'
            //    sh 'terraform -chdir="./v.14/test_env" apply --auto-approve'
             i think the problem here    **sh 'terraform apply -auto-approve '**
        }
    }
   // approvel stage 
   stage ("DEV approval Destroy") {
        steps {
           echo "Taking approval from DEV Manager for QA Deployment"
           timeout(time: 7, unit: 'DAYS') {
           input message: 'Do you want to Destroy the Infra', submitter: 'admin'
           }
        }
    }
   // Destroy stage
      stage ("Terraform Destroy") {
         steps {
            // sh 'terraform -chdir="./v.14/test_env" destroy -var-file="stage.tfvars" --auto-approve'
            sh 'terraform -chdir="./v.14/test_env" destroy --auto-approve'
        }
     }
}
post {
    always {
        echo 'This will always run'
    }
    success {
        echo 'This will run only if successful'
    }
    failure {
        echo 'This will run only if failed'
    }
    unstable {
        echo 'This will run only if the run was marked as unstable'
    }
    changed {
        echo 'This will run only if the state of the Pipeline has changed'
        echo 'For example, if the Pipeline was previously failing but is now successful'
    }
      }

}

Hello, iam tring to do automation TF, i have an error in jenkinsfile read the right command froom the backend s3.
i have this error

  • terraform apply -auto-approve
    e[31m╷e[0me[0m
    e[31m│e[0m e[0me[1me[31mError: e[0me[0me[1mNo configuration filese[0m
    e[31m│e[0m e[0m
    e[31m│e[0m e[0me[0mApply requires configuration to be present. Applying without a
    e[31m│e[0m e[0mconfiguration would mark everything for destruction, which is normally not
    e[31m│e[0m e[0mwhat is desired. If you would like to destroy everything, run ‘terraform
    e[31m│e[0m e[0mdestroy’ instead.
    e[31m╵e[0me[0m