mirror of
https://github.com/rafamadriz/friendly-snippets
synced 2024-09-16 22:14:02 +02:00
feat: add snippets for most basic terraform blocks (#426)
* feat: add basic terraform snippets * fix: remove periods in placeholder text
This commit is contained in:
parent
72227f5954
commit
d2b29e88cb
1 changed files with 40 additions and 0 deletions
|
@ -6944,5 +6944,45 @@
|
|||
" }",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"data_source": {
|
||||
"prefix": "data",
|
||||
"description": "Define a data source",
|
||||
"body": [
|
||||
"data \"${data_source_type}\" \"${data_source_name}\" {",
|
||||
" ${value} = \"${identifier}\"",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"input_variable": {
|
||||
"prefix": "input",
|
||||
"description": "Define an input variable",
|
||||
"body": [
|
||||
"variable \"${name}\" {",
|
||||
" type = \"${type}\"",
|
||||
" description = \"${description}\"",
|
||||
" default = \"${default_value}\"",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"output_variable": {
|
||||
"prefix": "output",
|
||||
"description": "Define an output value",
|
||||
"body": [
|
||||
"output \"${output_name}\" {",
|
||||
" value = ${resource_name_attribute}",
|
||||
" description = ${description}",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"resource": {
|
||||
"prefix": [ "resource", "res" ],
|
||||
"description": "basic resource definition",
|
||||
"body": [
|
||||
"resource \"${resource_type}\" \"${resource_name}\" {",
|
||||
" ${field} = \"${value}\"",
|
||||
"}"
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue