Code Monkey home page Code Monkey logo

awslack's Introduction

AWSlack

Prerequisites

  • A valid AWS Account.
  • Any AWS supported browser. ( Chrome / Firefox / Safari etc. )

Generate Slack API Token

  • Go to https://<YOUR_SLACK_TEAM>.slack.com/apps/new/A0F7YS25R-bots
  • Enter a name for the bot to post with. (i.e. @aws)
  • Click Add bot integration.
  • Wait until the UI displays the API Token and copy the string (i.e. xxxx-yyyyyyyyyyyy-zzzzzzzzzzzzzzzzzzzzzzzz).
  • Keep this token for using in the next step.
  • Don't forget to invite your new bot to a channel by @ mentioning it.

Deployment

  • Hold down the Ctrl button and Click the Launch Stack button to deploy the stack into your account:

  • Paste your API Token in the SlackAPIToken parameter.
  • The bot will publish messages to the channel in the DefaultSlackChannel parameter. The default is aws.
  • Click Next and Confirm all steps until the stack deploys.

Configure

  • Open your browser at AWS DynamoDB Console
  • Switch to the Tables tab.
  • Select the awslack.tests table and go to the Items tab.
  • You can add new tests or change/delete existing tests.
  • You can change the slackChannel attribute of each test to another Slack channel.
  • Select the awslack.configs table and go to the Items tab.
  • You can edit the slackAPIToken and set the value to another slack API token.

awslack's People

Contributors

dror88 avatar jeremykoerber avatar spark2ignite avatar srfrnk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

awslack's Issues

DynamoDB Tables in every region

Hi,

If I want to get events from all regions in an account I have to create the solution in each region.

This creates a DynamoDB table in every region. Which means I have lots of tables with lots of rules to manage.

How hard would it be to create a "Centralised" Dynamo version of this for those of us living in multiple accounts in multiple regions?

We could run a master template in the master account which would init the db tables.
Then we could use a child account stack set to push out from a master account to the child accounts one that doesn't create a table rather refers to the central table in the master account instead.

A bit trickier to setup no doubt but easier to manage once setup (esp from a rules perspective).
The only downside would be if I wanted different rules for an account / region. Then the rules would need additional information to help with that and the rule checker would need to validate this additional information.

This is more a feature request than an issue so I don't mind you closing this down as I don't know where else to put this :) If I get time I will work on this in a fork but I can't help but think you'd be quicker than me at resolving this one :D

S3 Denied when deploying CFN.

I tried to deploy the CFN but I get the following error:

GetObject for awslack/source/code.zip. S3 Error Code: AllAccessDisabled. S3 Error Message: All access to this object has been disabled

Rename to AWSlack

I would like to replace aSlack to AWSlack everywhere, including:

  • code
  • CloudFormation URL
  • Readme
  • etc.

Bot Avatar Issue

As someone mentioned, this is what we should be doing so the bot avatar will be displayed correcly

If you set `username` (which I was already doing) and `as_user` to true (I wasn't doing this) then it shows the avatar correctly.

DynamoDB Tables

Can we please rename the tables to:

  • awslack.configs
  • awslack.tests

Region

Deploying is failing if the current region is not US-East-1, to overcome it, it is required to create a bucket in the specific region, upload the code.zip to there and change the template to point to the new bucket.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.