Skip to content

Commit

Permalink
feat: add snippets for most basic terraform blocks (#426)
Browse files Browse the repository at this point in the history
* feat: add basic terraform snippets

* fix: remove periods in placeholder text
  • Loading branch information
lasse16 authored Mar 31, 2024
1 parent 72227f5 commit d2b29e8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions snippets/terraform.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"",
"}"

]
}
}

0 comments on commit d2b29e8

Please sign in to comment.