New version of the plugin is coming soon...
In the mean time, feel free to check our AWS CDK constructs at: https://github.com/buttonize/buttonize-cdk
Run npm install
in your Serverless project.
$ npm install --save-dev serverless-plugin-buttonize
Add the plugin to your serverless.yml file
plugins:
- serverless-plugin-buttonize
Add general configuration to custom
.
custom:
buttonize:
apiKey: PUT_HERE_YOUR_BUTTONIZE_API_KEY
Hook events to your lambda functions.
functions:
addUserToDatabase:
handler: src/addUserToDatabase.hello
events:
- buttonize:
label: Add user to database
type: FieldsInput
fields:
userName: User Name
userEmail: User Email
Deploy the app with serverless deploy
and the Buttonize resources will be provisioned automatically.