microscopic-fireman-3175
03/11/2025, 1:57 PMaws.chatbot.SlackChannelConfiguration
, but am repeatedly getting an unauthorized error. I manually created the same chatbot in the aws console, using the same role, and same logged in user, and that configuration works fine. I just cannot get pulumi to create it. Any suggestions?microscopic-fireman-3175
03/11/2025, 2:00 PMconst chatbotRole = new aws.iam.Role('ChatbotRole', {
assumeRolePolicy: JSON.stringify({
Version: '2012-10-17',
Statement: [
{
Effect: 'Allow',
Principal: {
Service: '<http://chatbot.amazonaws.com|chatbot.amazonaws.com>',
},
Action: 'sts:AssumeRole',
},
],
}),
managedPolicyArns: [
'arn:aws:iam::aws:policy/AmazonSNSFullAccess',
'arn:aws:iam::aws:policy/CloudWatchReadOnlyAccess',
'arn:aws:iam::aws:policy/ReadOnlyAccess',
],
});
chatbot:
new aws.chatbot.SlackChannelConfiguration(
'test',
{
configurationName: 'test config',
iamRoleArn: chatbotRole.arn,
slackChannelId: 'C----',
slackTeamId: 'T----',
snsTopicArns: [topic.arn],
guardrailPolicyArns: ['arn:aws:iam::aws:policy/ReadOnlyAccess'],
userAuthorizationRequired: false
}
);