Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cdkx/aws-sns-subscriptions

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cdkx/aws-sns-subscriptions

AWS SNS extended subscriptions

  • 0.1.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
2
Weekly downloads
 
Created
Source

AWS SNS Subscription extensions

Subscription targets

Slack Subscription

Get it from npm
npm install @cdkx/aws-sns-subscriptions --save // using npm

yarn add @cdkx/aws-sns-subscriptions // using yarn
Getting Started

Add a SNS Topic to your stack

import { Topic } from '@aws-cdk/aws-sns';

// create topic
const myTopic = new Topic(this, 'MyTopic');

Add an slack bot enabled subscription to your topic.

import { SlackSubscription } from '@cdkx/aws-sns-subscriptions';

// add slack subscription to alongside with other subscription targets
myTopic.addSubscription(
  new SlackSubscription({
    channelName: 'my-channel',
  })
);
Add Token to parameter

Once stack has deployed, a new System Parameter resources will be made available. There add a slack bot oAuth token next to property authToken.

Required Scopes for these token depend of level of context provided to subscription target. When channelId is provided, OAuthToken will only need chat:write:bot. But if no channelId is preset, channel id will be resolved from slack api and to do that OAuth token will need additional channels:read, groups:read, im:read, mpim:read scopes.

Keywords

FAQs

Package last updated on 05 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc