mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-03 20:50:59 -05:00
* Remove .vscode/ from version control * Add section about debugging automated tests * Update existing debugging advice to reference example file, deduplicate text about automated tests * Add details about launching TF ni debug mode from within VS Code * Respond to review feedback, other small edits like full-stops
27 lines
No EOL
1.1 KiB
JSON
27 lines
No EOL
1.1 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
// Runs Terraform using the Terraform configuration specified via the chdir argument
|
|
"name": "Run Terraform in debug mode",
|
|
"request": "launch",
|
|
"type": "go",
|
|
"args": [
|
|
"-chdir=<absolute path to a Terraform configuration>",
|
|
// Change this array to perform different terraform commands with different arguments.
|
|
"plan",
|
|
"-var='name=value'"
|
|
],
|
|
// "cwd": "<absolute path to a Terraform configuration>", // An alternative to using the -chdir global flag above.
|
|
// Environment variables can be set from a file or as key-value pairs in the configuration.
|
|
// "env": {
|
|
// "MY_ENV": "my-value",
|
|
// },
|
|
// "envFile": "./vscode/private.env",
|
|
"mode": "debug",
|
|
"program": "${workspaceFolder}",
|
|
"console": "integratedTerminal", // allows responding to y/n in terminal, e.g. in apply command.
|
|
"showLog": false // dlv's logs
|
|
}
|
|
]
|
|
} |