forked from jjno91/terraform-kubernetes-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Initialize", | ||
"command": "terraform init test", | ||
"type": "shell", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Validate", | ||
"command": "terraform validate test", | ||
"type": "shell", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Format", | ||
"command": "terraform fmt -recursive", | ||
"type": "shell", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Apply", | ||
"command": "terraform apply -auto-approve test", | ||
"type": "shell", | ||
"problemMatcher": [], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "Apply Idempotency Check", | ||
"command": "terraform plan -detailed-exitcode test", | ||
"type": "shell", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Destroy", | ||
"command": "terraform destroy -auto-approve test", | ||
"type": "shell", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Destroy Idempotency Check", | ||
"command": "terraform plan -detailed-exitcode -destroy test", | ||
"type": "shell" | ||
} | ||
] | ||
} |