Skip to content

Instantly share code, notes, and snippets.

@dianachua
Created October 16, 2020 04:02
Show Gist options
  • Select an option

  • Save dianachua/cb557f0941ca36898a02cb81cc8598e1 to your computer and use it in GitHub Desktop.

Select an option

Save dianachua/cb557f0941ca36898a02cb81cc8598e1 to your computer and use it in GitHub Desktop.
Created on Skills Network Labs
# Welcome to Serverless!
#
# This file is the main config file for your service.
# It's very minimal at this point and uses default values.
# You can always add more config options for more control.
# We've included some commented out config examples here.
# Just uncomment any of them to get that config option.
#
# For full config options, check the docs:
# docs.serverless.com
#
# Happy Coding!
service: lab-4 # NOTE: update this with your service name
# Remember to install project dependencies to register the provider plugin.
# $ npm install
provider:
name: openwhisk
runtime: nodejs:10
custom:
package: lab4
discovery:
username: apikey
password: fMu8eO3iQbfCSJ2HbndxFOuIH_I856eaqxocFm4KmR9a
environmentId: 20b71b49-3cbd-4796-b783-4581183f9615
collectionId: 872dbd20-2c71-4fad-a6bd-e645b65c6441
url: https://api.eu-de.discovery.watson.cloud.ibm.com/instances/72ae789d-883f-437f-b309-ba98a238da60
intent: course_recommendation # DO NOT CHANGE
resources:
packages:
main:
name: ${self:custom.package}
functions:
connectDiscovery:
handler: CourseAdvisor.connectDiscovery
name: ${self:custom.package}/connectDiscovery
parameters:
discoveryUsername: ${self:custom.discovery.username}
discoveryPassword: ${self:custom.discovery.password}
environmentId: ${self:custom.discovery.environmentId}
collectionId: ${self:custom.discovery.collectionId}
url: ${self:custom.discovery.url}
intent: ${self:custom.discovery.intent}
# extend the framework using plugins listed here:
# https://github.com/serverless/plugins
plugins:
- serverless-openwhisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment