This repository was archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathdevcontainer.json
53 lines (48 loc) · 1.82 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "Azure Terraform (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {
"TERRAFORM_VERSION": "0.14.5",
"TFLINT_VERSION": "0.24.1",
"TERRAGRUNT_VERSION": "0.28.1",
"INSTALL_AZURE_CLI": "true",
"INSTALL_DOCKER": "true",
"NODE_VERSION": "lts/*"
}
},
"mounts": [ "source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind" ],
"overrideCommand": false,
"runArgs": ["--init", "--env-file",".devcontainer/devcontainer.env"],
"remoteEnv": {
// Sets environment variables required for terrafom remote backend
"TF_BACKEND_RESOURCE_GROUP" : "${containerEnv:TF_BACKEND_RESOURCE_GROUP}",
"TF_BACKEND_LOCATION": "${containerEnv:TF_BACKEND_LOCATION}",
"TF_BACKEND_STORAGE_ACCOUNT" : "${containerEnv:TF_BACKEND_STORAGE_ACCOUNT}",
"TF_BACKEND_CONTAINER" : "${containerEnv:TF_BACKEND_CONTAINER}",
"TF_BACKEND_KEY" : "${containerEnv:TF_BACKEND_KEY}"
// Use 'TF_VAR' prefix to set input variables for terraform templates
// "TF_VAR_rg_name": "${containerEnv:TF_VAR_RG_NAME}"
},
// Set *default* container specific settings.json values on container create.
"settings": {
"terraform.languageServer": {
"enabled": true,
"args": []
},
"azureTerraform.terminal": "integrated"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"hashicorp.terraform",
"ms-vscode.azurecli",
"ms-azuretools.vscode-azureterraform",
"ms-azuretools.vscode-docker"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "terraform --version",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}