aws-iam-slack-notifer icon indicating copy to clipboard operation
aws-iam-slack-notifer copied to clipboard

aws-iam-slack-notifier not currently working?

Open CaseyLabs opened this issue 6 years ago • 4 comments

Hi there, I really like the idea of this IAM notification, and have tried deploying it. Unfortunately though, it's not generating any Slack alerts.

The function was successfully created, and the Slack bot is all setup, it just looks like the Lambda function isn't being triggered when an IAM event occurs.

I realize this is a two year-old repo, but any help would be appreciated.

Thanks!

CaseyLabs avatar Oct 02 '19 23:10 CaseyLabs

Do you have cloudtrail enabled? You'll need to have it enabled so that IAM events are triggered....

dnorth98 avatar Oct 09 '19 16:10 dnorth98

Confirmed! Cloudtrail is enabled.

CaseyLabs avatar Oct 09 '19 16:10 CaseyLabs

OK, cool. Just looked into the template to remind myself and it looks like it's subscribing to events:

                "eventName": [
                  "CreatePolicy",
                  "CreatePolicyVersion",
                  "AttachUserPolicy",
                  "DetachUserPolicy",
                  "AttachRolePolicy",
                  "DetachRolePolicy",
                  "AttachGroupPolicy",
                  "DetachGroupPolicy"
                ]

Try one of those events and see if it shows up in Cloudtrail. You can also then go to cloudwatch->rules and see the rule. There's a link on it for metrics so you can see if the rule is being fired.

dnorth98 avatar Oct 09 '19 16:10 dnorth98

I installed aws-iam-slack-notifier yesterday and confirmed that it works fine. The last update is years ago, but I can be sure that aws-iam-slack-notifier is still works.

If aws-iam-slack-notifier doesn't respond to any IAM events, I'd like to make sure that the AWS Region where you deployed CloudFormaion template is 'us-east-1'.

pstanton237 avatar Oct 24 '20 10:10 pstanton237