From d2b3f25ac345ba9db98dc053796dd6a8dd846827 Mon Sep 17 00:00:00 2001 From: Bharat Parmar Date: Wed, 6 Aug 2025 17:25:52 +0530 Subject: [PATCH] fix: slack stack issue --- src/slackchatbot.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slackchatbot.ts b/src/slackchatbot.ts index 910e6f2..9c7ae05 100644 --- a/src/slackchatbot.ts +++ b/src/slackchatbot.ts @@ -24,7 +24,7 @@ export class SlackChatbotIntegration extends Construct { throw new Error('Slack Workspace ID must start with "T". Refer to Slack to obtain it.'); } - this.chatbotRole = new iam.Role(this, 'ChatbotRole', { + this.chatbotRole = new iam.Role(this, `${this.node.id}-ChatbotRole`, { assumedBy: new iam.ServicePrincipal('chatbot.amazonaws.com'), managedPolicies: [ iam.ManagedPolicy.fromAwsManagedPolicyName('CloudWatchReadOnlyAccess'), @@ -47,7 +47,7 @@ export class SlackChatbotIntegration extends Construct { }, }); - this.slackChannel = new chatbot.SlackChannelConfiguration(this, 'SlackChannelConfig', { + this.slackChannel = new chatbot.SlackChannelConfiguration(this, `${this.node.id}-SlackChannelConfig`, { slackWorkspaceId: props.slackWorkspaceId, slackChannelId: props.slackChannelId, slackChannelConfigurationName: `${props.environmentName}-tracking-rds-alerts`, @@ -55,7 +55,7 @@ export class SlackChatbotIntegration extends Construct { notificationTopics: props.notificationTopics, }); - new CfnOutput(this, 'SlackChatbotOutput', { + new CfnOutput(this, `${this.node.id}-SlackChatbotOutput`, { value: JSON.stringify({ workspaceId: props.slackWorkspaceId, channelId: props.slackChannelId,