Skip to content

Commit 1f431fe

Browse files
bg46zaws-scripting-guy
authored andcommitted
add nat-gateway snippet (#38)
add nat gateway snippet
1 parent 4c0ea4c commit 1f431fe

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

snippets/snippets.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@
377377
"description": "",
378378
"scope": "source.cloudformation"
379379
},
380+
"nat-gateway": {
381+
"prefix": "nat-gateway",
382+
"body": "\r\n\"${1:ngwName}\": {\r\n \"Type\" : \"AWS::EC2::NatGateway\",\r\n \"Properties\" : {\r\n \"AllocationId\" : ${1:eip-id},\r\n \"SubnetId\" : ${2:subnet-id},\r\n \"Tags\" : [${3:\"-\"}]\r\n }\r\n}\r\n",
383+
"description": "",
384+
"scope": "source.cloudformation"
385+
},
380386
"opsworks-app": {
381387
"prefix": "opsworks-app",
382388
"body": "\r\n\"${1:opsworksApp}\": {\r\n \"Type\": \"AWS::OpsWorks::App\",\r\n \"Properties\": {\r\n \t\"Name\": \"${2}\",\r\n \"StackId\": \"${3}\",\r\n \"Type\": \"${4}\",\r\n \"AppSource\": { ${5} },\r\n \"Attributes\": { ${6}:${7} },\r\n \"Description\": \"${8}\",\r\n \"Domains\": [ \"${9}\" ],\r\n \"EnableSsl\": \"${10:true | false}\",\r\n \"Shortname\": \"${11}\",\r\n \"SslConfiguration\": { ${12} }\r\n }\r\n}\r\n",

snippets/yaml-snippets.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,22 @@
607607
"description": "",
608608
"scope": "source.cloudformation"
609609
},
610+
"nat-gateway": {
611+
"prefix": "nat-gateway",
612+
"body": [
613+
"${1:ngwName}:",
614+
" Type: AWS::EC2::NatGateway",
615+
" Properties:",
616+
" AllocationId: ${2:eip-id}",
617+
" SubnetId: ${3:subnet-id}",
618+
" Tags:",
619+
" - Key: ${4:keyname}",
620+
" Value: ${5:value}"
621+
],
622+
"description": "",
623+
"scope": "source.cloudformation"
624+
625+
},
610626
"rds-dbinstance": {
611627
"prefix": "rds-dbinstance",
612628
"body": [

0 commit comments

Comments
 (0)