[aws-chatbot] L2 support for SlackChannelConfiguration
See original GitHub issueCurrently 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
addNotification({...})
method of codebuild and codepipeline depend on above implements.See also: #9680 #9682
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