Giter Club home page Giter Club logo

serverless-vscode-snippets's Introduction

Serverless Framework snippets for VS Code

Version Installs Ratings

This extension contains code snippets for YAML syntax for Vs Code editor.

Demo

Installation

In order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions. There you have either the option to show the already installed snippets or install new ones. Search for Serverless Framework Snippets and install it.

Snippets

Below is a list of all available snippets and the triggers of each one. To use them simply press Shift + ^ key and type trigger word.

| indicates a list of possible choices.

slscore - Serverless Framework project core

service: my-sls-project

provider:
  name: aws|azure|google|webtasks|spotinst|kubeless
  runtime: nodejs6.10|python2.6|python3.6|java|swift|php
  memory: 128|256|512|1024

functions:
  

slsfun - Serverless Framework project core

handler:
  handler: handler.handle
  name: handler
  description: Example function
  memorySize: 128|256|512|1024
  runtime: nodejs6.10|python2.6|python3.6|java|swift|php
  timeout: 10
  environment:
    - FOO: BAR
  events:
    

iam - IAM Role Statements

iamRoleStatements:
  - Effect: 'Allow'
    Action:
      - 
    Resource:
      

fnjoin - CloudFormation's Fn::Join function

Fn::Join:
  - ''
  - - ''
    - 

vpc - VPC Setup

vpc:
  securityGroupIds:
    - 
  subnetIds:
    - 

pkg - Project packaging setup

package:
  include:
    - .git/**
  exclude:
    - .git/**
  excludeDevDependencies: true

ehttp - HTTP Event Trigger

- http:
    path: users/create
    method: get|post
    cors: true|false
    private: true|false

es3 - S3 Event Trigger

- s3:
    bucket: photos
    event: s3:ObjectCreated:*
    rules:
      - prefix: uploads/
      - suffix: .jpg

cron - Scheduled CloudWatch Expresion

- schedule:
    rate: rate(10 seconds|minutes|hours|days)
    enabled: true|false
    input:
      : 

MIT License © Dynobase

serverless-vscode-snippets's People

Contributors

rafalwilinski avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.