Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sc5/sns2trello
AWS SNS -> Trello lambda function
https://github.com/sc5/sns2trello
Last synced: 8 days ago
JSON representation
AWS SNS -> Trello lambda function
- Host: GitHub
- URL: https://github.com/sc5/sns2trello
- Owner: SC5
- License: mit
- Created: 2015-10-21T10:07:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-21T10:43:43.000Z (about 9 years ago)
- Last Synced: 2024-04-13T11:21:43.551Z (7 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS SNS to Trello gateway
An AWS Lambda function that publishes posts to Trello based on AWS SNS messages
## Installation
### Pre-requisites
You should have the following set up in your AWS environment:
1. A basic lambda execution IAM role
2. Credentials set up in env variables / ~/.aws/credentials### Setup
Clone the project to your environment
> git clone https://github.com/SC5/sns2trello.git
Copy the config template (src/config_template.json) to src/config.json. Set your trello user key and token into the config file.
Copy the lambda environment template (example_lambdaenv.json) to lambdaenv.json. Set your AWS region and the Arn of the role used by your Lambda functions into lambdaenv.json.
Install dependencies and deploy to AWS
> npm install
> gulp deployGo to the AWS console and perform the following:
1. Create an SNS topic for the slack posts
2. Create a subscription to the SNS topic for the Lambda function deployed above (sns2trello)## Using the Lambda function
The function for posting to Trello is invoked by sending a message to the SNS topic. The message is a JSON object that has been stringified (message has to be a string). The JSON format is:
{
"trelloBoardId: "--TRELLO-BOARD-ID--",
"cardName": "My new card name",
"cardDescription": "My new card description",
"dueDate": "optional date"
}## Release History
* 2015/10/21 - v0.9.0 - Initial version of SNS 2 Trello gateway
## License
Copyright (c) 2015 [SC5](http://sc5.io/), licensed for users and contributors under MIT license.
https://github.com/SC5/sns2trello/blob/master/LICENSE-MIT[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/SC5/sns2trello/trend.png)](https://bitdeli.com/free "Bitdeli Badge")