File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
aws-instance-first-script Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 16
16
{
17
17
git branch : ' tf-jenkins' , url : ' https://github.com/easyawslearn/Terraform-Tutorial.git'
18
18
sh ' cd EC2withJenkins '
19
- sh ' ./ terraform init -upgrade=true -get=true -input=false -force-copy'
20
- sh ' ./ terraform workspace new "terraform-demo"'
19
+ sh ' terraform init -upgrade=true -get=true -input=false -force-copy'
20
+ sh ' terraform workspace new "terraform-demo"'
21
21
sh ' echo "INFO: New terraform-demo workspace added."'
22
- sh ' ./ terraform workspace select terraform-demo'
22
+ sh ' terraform workspace select terraform-demo'
23
23
sh ' echo "INFO: Terraform -> Planning..."'
24
- sh ' ./ terraform plan -out plan_terraform -lock=true'
24
+ sh ' terraform plan -out plan_terraform -lock=true'
25
25
sh ' echo "INFO: Terraform -> Executing..."'
26
- sh ' ./ terraform apply plan_plan_terraform'
26
+ sh ' terraform apply plan_plan_terraform'
27
27
}
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments