0

I've a slack workflow setup which will take approval in different channel and invoke AWS lambda from another private channel to restrict the access to AWS chatbot. But after the lambda is invoked, Chatbot is again asking for confirmation which requires some one to manually approve it again. Is there any way to bypass this.? enter image description here

The aim is to automate this and remove user intervention, any workaround is appreciated

Hemanth
  • 159
  • 1
  • 12

1 Answers1

0

The documentation of AWS Bot states that :
https://aws.amazon.com/blogs/devops/running-aws-commands-from-slack-using-aws-chatbot/

Invoke a Lambda function from Slack To trigger a workflow or a runbook from Slack, you can invoke a Lambda function by running @aws lambda invoke FUNCTION_NAME. AWS Chatbot will ask for a confirmation.

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Suyash Gaur
  • 2,481
  • 2
  • 9
  • 22
  • I was wondering if we can do it without confirmation or may be any work around with slack workflows.? I've checked AWS lambda options in Chatbot, I didn't see any options for force run or such. – Hemanth Sep 05 '21 at 10:47
  • Since this is a proprietary AWS app, it does not offer any customization. – Suyash Gaur Sep 05 '21 at 11:36
  • Any workaround to automate.? May be something similar to slack workflows.. – Hemanth Sep 05 '21 at 14:52
  • 2
    I don't think any workflow will do. You should make a custom slack app if you really want to do this. The app will invoke the lambda using the credentials provided OR you can also deploy custom app to a machine which have role to invoke lambda functions. – Suyash Gaur Sep 06 '21 at 04:26
  • Slack workflow functionality does not cover this use case, the best way forward is probably to write your own application – m.oulmakki Sep 06 '21 at 12:05