question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[aws-chatbot] L2 support for SlackChannelConfiguration

See original GitHub issue

Currently there’s only L1 resources in CfnSlackChannelConfiguration of aws-chatbot. Let’s create L2 construct support.

Use Case And Proposed Solution

It’s just like we create slack channel configuration via AWS web console. There is pseudocode as below:

const slackChannel = new chatbot.SlackChannelConfiguration(this, 'MySlackChannel', {
  slackChannelConfigurationName: 'test-channel',
  slackWorkspaceId: 'YOUR_WORKSPACE_ID',
  slackChannelId: 'YOUR_CHANNEL_ID', 
});

slackChannel.addLambdaInvokeCommandPermissions();
slackChannel.addNotificationPermissions();
slackChannel.addSupportCommandPermissions();
slackChannel.addReadOnlyCommandPermissions();

slackChannel.addToPrincipalPolicy(new iam.PolicyStatement({
  effect: iam.Effect.ALLOW,
  actions: [
    's3:GetObject',
  ],
  resources: ['arn:aws:s3:::abc/xyz/123.txt'],
}));

Other

Associate with #5020

cc @skinny85

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
luckilycommented, Aug 14, 2020

Hi @humanzz, I’m so happy that you have similar problem.

I have some plans to resolve this issue and this is my proposed.

These include:

  1. L2 construct for CfnSlackChannelConfiguration of chatbot package.
  2. L2 construct for CfnNotificationRule of codestarnotification package.
  3. addNotification({...}) method of codebuild and codepipeline depend on above implements.

See also: #9680 #9682

0reactions
humanzzcommented, Aug 14, 2020

It’s quite similar; I added a couple of comments. Pinging @Stacy-D as she was the one actually working on our version if she has any additional comments

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS::Chatbot::SlackChannelConfiguration
The AWS::Chatbot::SlackChannelConfiguration resource configures a Slack channel to allow users to use AWS Chatbot with AWS CloudFormation templates.
Read more >
AWS Chatbot FAQs - Amazon Web Services
AWS Chatbot supports both read-only and mutative CLI commands for most AWS ... first create a Slack channel configuration using the AWS Chatbot...
Read more >
Chatbot::SlackChannelConfiguration - AWS CloudFormation
The AWS::Chatbot::SlackChannelConfiguration resource configures a Slack channel to allow users to use AWS Chatbot with AWS CloudFormation templates.
Read more >
Troubleshooting AWS Chatbot
If you configured your AWS service to send notifications to the Amazon Simple Notification Service (Amazon SNS) topics mapped to AWS Chatbot, ...
Read more >
Tutorial: Get started with Slack - AWS Chatbot
You do this using each AWS service's console, or using AWS CloudFormation. If you already have Amazon SNS topics set as targets for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found