Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template that uses the Serverless framework for deployment #20

Open
jankoenig opened this issue Oct 20, 2018 · 5 comments
Open

Add template that uses the Serverless framework for deployment #20

jankoenig opened this issue Oct 20, 2018 · 5 comments

Comments

@jankoenig
Copy link
Member

Including creating the right permissions, lambda, and DynamoDB for e.g. AWS

https://serverless.com/

@shouxian92
Copy link

Hi @jankoenig i'm interested to pick up this issue

@jankoenig
Copy link
Member Author

Cool! Let me know if you need more info.
I started playing with it a few months ago. Here's part of the serverless.yml (I commented out some things and am not sure if everything works):

service: jovo-project-name  # Update

custom:
  defaultStage: dev
  currentStage: ${opt:stage, self:custom.defaultStage}

provider:
  name: aws
  runtime: nodejs8.10
  stage: ${self:custom.currentStage}
  # iamRoleStatements:
  #   - Effect: "Allow"
  #     Action:
  #     - dynamodb: GetItem
  #     - dynamodb: PutItem
  #     - dynamodb: CreateTable
  #     Resource: "arn:aws:dynamodb:*:*:table/*"

# Define service wide environment variables here
# environment:
#   STAGE: ${self:custom.currentStage}

package:
 include:
   - index.js
   - app/**
 exclude:
   - platforms/**
   - models/**

functions:
  app:
    handler: index.handler
    events:
      # - alexaSkill: ${file(./app.json):stages.${self:custom.currentStage}.alexaSkill.skillId}
      
      # API Gateway
      # - http:
      #     method: post

    # Define function environment variables here
    environment:
      STAGE: ${self:custom.currentStage}

@shouxian92
Copy link

Thanks @jankoenig i was looking at how to setup the example projects in my free time within the past few days. It seems like the setup is not as straightforward as i thought, i might need some time to get some template files working with my own AWS account (need to get some free time to do so). If anyone with experience with this framework would like to go ahead and implement this ahead of me then i would encourage them to do so instead

@Caoimhin89
Copy link

This is a really interesting proposal. Has any progress been made on this? I'd definitely be happy to contribute.

@jankoenig
Copy link
Member Author

No one has contributed yet, but I know that a few people are using Serverless for Jovo projects. e.g. @dominik-meissner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants