{"id":15674956,"url":"https://github.com/rafalwilinski/serverless-vscode-snippets","last_synced_at":"2025-05-06T23:32:39.025Z","repository":{"id":41239861,"uuid":"109234121","full_name":"RafalWilinski/serverless-vscode-snippets","owner":"RafalWilinski","description":"Serverless Framework snippets for VS Code","archived":false,"fork":false,"pushed_at":"2020-05-26T17:59:03.000Z","size":15756,"stargazers_count":14,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T04:13:26.777Z","etag":null,"topics":["serverless","serverless-framework","snippets","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://dynobase.dev","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RafalWilinski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-02T07:52:51.000Z","updated_at":"2022-09-03T04:44:42.000Z","dependencies_parsed_at":"2022-08-31T10:21:42.032Z","dependency_job_id":null,"html_url":"https://github.com/RafalWilinski/serverless-vscode-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fserverless-vscode-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fserverless-vscode-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fserverless-vscode-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafalWilinski%2Fserverless-vscode-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RafalWilinski","download_url":"https://codeload.github.com/RafalWilinski/serverless-vscode-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252787531,"owners_count":21804278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["serverless","serverless-framework","snippets","vscode","vscode-extension"],"created_at":"2024-10-03T15:53:43.821Z","updated_at":"2025-05-06T23:32:38.981Z","avatar_url":"https://github.com/RafalWilinski.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Serverless Framework snippets for VS Code\n\n[![Version](https://vsmarketplacebadge.apphb.com/version/rafwilinski.serverless-vscode-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=rafwilinski.serverless-vscode-snippets)\n[![Installs](https://vsmarketplacebadge.apphb.com/installs/rafwilinski.serverless-vscode-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=rafwilinski.serverless-vscode-snippets)\n[![Ratings](https://vsmarketplacebadge.apphb.com/rating/rafwilinski.serverless-vscode-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=rafwilinski.serverless-vscode-snippets)\n\nThis extension contains code snippets for YAML syntax for Vs Code editor.\n\n![Demo](images/demo.gif \"Demo\")\n\n## Installation\n\nIn order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions.\nThere you have either the option to show the already installed snippets or install new ones. Search for *Serverless Framework Snippets* and install it.\n\n## Snippets\n\nBelow is a list of all available snippets and the triggers of each one. To use them simply press `Shift + ^` key and type trigger word.\n\n`|` indicates a list of possible choices.\n\n`slscore` - Serverless Framework project core\n```yaml\nservice: my-sls-project\n\nprovider:\n  name: aws|azure|google|webtasks|spotinst|kubeless\n  runtime: nodejs6.10|python2.6|python3.6|java|swift|php\n  memory: 128|256|512|1024\n\nfunctions:\n  \n```\n\n`slsfun` - Serverless Framework project core\n```yaml\nhandler:\n  handler: handler.handle\n  name: handler\n  description: Example function\n  memorySize: 128|256|512|1024\n  runtime: nodejs6.10|python2.6|python3.6|java|swift|php\n  timeout: 10\n  environment:\n    - FOO: BAR\n  events:\n    \n```\n\n`iam` - IAM Role Statements\n```yaml\niamRoleStatements:\n  - Effect: 'Allow'\n    Action:\n      - \n    Resource:\n      \n```\n    \n`fnjoin` - CloudFormation's Fn::Join function\n```yaml\nFn::Join:\n  - ''\n  - - ''\n    - \n```\n\n`vpc` - VPC Setup\n```yaml\nvpc:\n  securityGroupIds:\n    - \n  subnetIds:\n    - \n```\n\n`pkg` - Project packaging setup\n```yaml\npackage:\n  include:\n    - .git/**\n  exclude:\n    - .git/**\n  excludeDevDependencies: true\n```\n\n`ehttp` - HTTP Event Trigger\n```yaml\n- http:\n    path: users/create\n    method: get|post\n    cors: true|false\n    private: true|false\n```\n\n`es3` - S3 Event Trigger\n```yaml\n- s3:\n    bucket: photos\n    event: s3:ObjectCreated:*\n    rules:\n      - prefix: uploads/\n      - suffix: .jpg\n```\n\n`cron` - Scheduled CloudWatch Expresion\n```yaml\n- schedule:\n    rate: rate(10 seconds|minutes|hours|days)\n    enabled: true|false\n    input:\n      : \n```\n\n[MIT License](https://opensource.org/licenses/MIT) © [Dynobase](https://dynobase.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalwilinski%2Fserverless-vscode-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafalwilinski%2Fserverless-vscode-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalwilinski%2Fserverless-vscode-snippets/lists"}