Skip to content

Instantly share code, notes, and snippets.

@dzimine
Last active December 18, 2017 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzimine/beb0b2f2203e7ac7323e55f0eafd7f2a to your computer and use it in GitHub Desktop.
Save dzimine/beb0b2f2203e7ac7323e55f0eafd7f2a to your computer and use it in GitHub Desktop.
service: signup-stormless
provider:
name: aws
runtime: python2.7
functions:
InviteSlack:
events:
- http:
method: POST
path: invite
stackstorm:
action: slack.users.admin.invite
input:
email: "{{ input.body.email }}"
first_name: "{{ input.body.first_name }}"
config:
admin: ${file(env.yml):slack}
output:
statusCode: 200
body: "{{ output }}"
plugins:
- serverless-plugin-stackstorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment