Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

honestica/lambda-circleci-notifications-example

Repository files navigation

CircleCI -> Slack private notification

This ruby lambda notifies privately the author of a failed commit on CircleCi.

Configuration

Dependencies

  • Node.js (& npm) : brew install node
  • Serverless : npm install serverless -g
  • AWS CLI : brew install awscli
  • Ruby

Installation

git clone git@github.com:honestica/lambda-circleci-notifications-example.git
cd lambda-circleci-notifications-example
bundle install

AWS configuration

sls config credentials --provider aws --key AWS_KEY --secret AWS_SECRET

SSM environment variables

aws --region eu-west-1 ssm put-parameter --name circleci-notifications-slack-token --value top-secret-value --type String
aws --region eu-west-1 ssm put-parameter --cli-input-json '{
  "Name": "circleci-notifications-sentry-dsn",
  "Value": "https://secret.url",
  "Type": "String"
}'

Usage

Specs

bundle exec rspec spec

Deploys

You will need to run bundle install --deployment before deploying from your laptop.

Dev

  • Initial deploy : sls deploy -s dev
  • Function only deploy : sls deploy function -f circleciNotifications -s dev

Prod

  • Initial deploy : sls deploy -s prod
  • Function only deploy : sls deploy function -f circleciNotifications -s prod

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages