A Slack unfruling Lambda function for Redmine. It based on AWS SAM(Serverless application mode).
Inspired by and based on slack-unfurling-esa.
- AWS CLI
- SAM CLI
Enable Events
Set to On
App Unfurl Domains
Add your redmine url.
Click Save Changes
.
Added links:write
to Scopes
.
Click Install App to Workspace
.
Remember your OAuth Access Token
.
$ aws s3 mb s3://your-sandbox --region ap-northeast-1
$ cd slack-unfurling-redmine
$ bundle install --path vendor/bundle --without test
$ sam package \
--template-file template.yaml \
--output-template-file serverless-output.yaml \
--s3-bucket your-sandbox
$ sam deploy \
--template-file serverless-output.yaml \
--stack-name your-slack-unfurling-redmine \
--capabilities CAPABILITY_IAM \
--parameter-overrides \
RedmineAPIAccessKey=your-api-access-key \
SlackOauthAccessToken=your-slack-oauth-token
Confirm your endpoint url.
(To ignore custom fields, add IgnoreCustomFields=true for parameter-overrides.)
(To skip all fields, add SkipFields=true for parameter-overrides.)
$ aws cloudformation describe-stacks --stack-name your-slack-unfurling-redmine --region ap-northeast-1
Input your endpoint url to Request URL
in Event Subscriptions
.
Click Save Changes
.
$ sam delete