-
Notifications
You must be signed in to change notification settings - Fork 0
/
Clips.json
80 lines (80 loc) · 3.86 KB
/
Clips.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"clips": [{
"name": "Variables",
"children": [{
"name": "Default Variable",
"scope": "editor",
"syntax": "terraform",
"trigger": "variable",
"content": "variable \"${:name}\" {\n\ttype = ${:type} \n\tdescription = \"${:description}\"\n\tdefault = \"${:default}\"\n}"
},
{
"name": "Validated Variable",
"scope": "editor",
"syntax": "terraform",
"trigger": "variable.validation",
"content": "variable \"${:Name}\" { \n\ttype = ${:Type} \n\tdescription = \"${:Description}\" \n\tdefault = \"${:Default}\" \n\n\n\tvalidation { \n\t\tcondition = \"${:Condition}\" \n\t\terror_message = \"${:Error Message}\" \n\t\t} \n\t}"
}
]
},
{
"name": "Backends",
"children": [
{
"name": "Local Backend",
"scope": "editor",
"syntax": "terraform",
"trigger": "backend.local",
"content": "terraform { \n\t backend \"local\" { \n\t\t path = \"${:Path}\" \n\t } \n }"
},
{
"name": "Remote Backend",
"scope": "editor",
"syntax": "terraform",
"trigger": "backend.remote",
"content": "terraform { \n\t backend \"remote\" { \n\t\t hostname = \"${:Hostname}\" \n\t\t organization = \"${:Organization}\" \n\n\t workspaces { \n\t\t name = \"${:Workspace Name}\" \n\t\t } \n\t } \n }"
},
{
"name": "Azure Backend",
"scope": "editor",
"syntax": "terraform",
"trigger": "backend.azure",
"content": "terraform { \n\t backend \"azurerm\" { \n\t\t resource_group_name = \"${:Resource Group}\" \n\t\t storage_account_name = \"${:Storage Account}\" \n\t\t container_name = \"${:Container Name}\" \n\t\t key = \"${:Key}\" \n\t } \n }"
},
{
"name": "GCS Backend (GCP)",
"scope": "editor",
"syntax": "terraform",
"trigger": "backend.gcs",
"content": "terraform { \n\t backend \"gcs\" { \n\t\t bucket = \"${:Bucket}\" \n\t\t prefix = \"${:Prefix}\" \n\t } \n }"
},
{
"name": "S3 Backend (AWS)",
"scope": "editor",
"syntax": "terraform",
"trigger": "backend.s3",
"content": "terraform { \n\t backend \"s3\" { \n\t\t bucket = \"${:Bucket}\" \n\t\t key = \"${:Key}\" \n\t\t region = \"${:Region}\" \n\t } \n }"
}
]
},
{
"name": "General",
"children": [
{
"name": "Full Provider Requirements",
"scope": "editor",
"syntax": "terraform",
"trigger": "general.full-provider-requirements",
"content": "terraform { \n\t required_providers { \n\t\t ${:Provider} = { \n\t\t\t source = \"${:Provider Source}\" \n\t\t\t version = \"${:Version Constraint}\" \n\t\t } \n\t } \n }"
},
{
"name": "Provider Requirement",
"scope": "editor",
"syntax": "terraform",
"trigger": "general.provider-requirement",
"content": "\n\t\t ${:Provider} = { \n\t\t\t source = \"${:Provider Source}\" \n\t\t\t version = \"${:Version Constraint}\" \n\t\t }"
}
]
}
]
}