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:
Lasse Haffke 2024-03-31 18:52:53 +02:00 committed by GitHub
parent 72227f5954
commit d2b29e88cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}\"",
"}"
]
}
}