Advertisement
PandaAcademy

Jenkinsfile_terraform

May 28th, 2022 (edited)
1,542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.58 KB | None | 0 0
  1.         stage('Run terraform') {
  2.             steps {
  3.                 dir('Terraform') {                
  4.                     git branch: 'main', url: 'https://github.com/Panda-Academy-Core-2-0/Terraform'
  5.                     withAWS(credentials:'AWS', region: 'us-east-1') {
  6.                             sh 'terraform init -backend-config=bucket=panda-academy-panda-devops-core-n'
  7.                             sh 'terraform apply -auto-approve -var bucket_name=panda-academy-panda-devops-core-n'
  8.                            
  9.                     }
  10.                 }
  11.             }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement