Skip to content

OASP4FnDeployment

Philip Schimmelpfennig edited this page Oct 15, 2019 · 15 revisions

Deployment of OASP4Fn applications

The deployment is performed by the serverless framework and it’s quite simple, you only have to run the following command to deploy the full service:

sls deploy

Important

This command will fail if the AWS credentials are missing. For more information see serverless credentials

When the deploy is finish with no errors, you will have a command line output with the endpoints and the functions deployed.

sls deploy

Note that until now we have been working locally, so if we gonna deploy our handlers and make them work, we should change the endpoint of our services:

oasp4fn.setDB(dynamo, {endpoint: 'https://dynamodb.us-west-2.amazonaws.com'});
Note

You can get more information about the deployment in the serverless documentation, but be aware that OASP4Fn doesn’t support the deployment of a single function.