Skip to content

WA Animals Amazon EventBridge rule to alert Slack with a Serverless lambda when someone signs in to AWS Account

Notifications You must be signed in to change notification settings

waanimalsinc/waanimals-sign-in-event-bridge

Repository files navigation

WA Animals - EventBridge sign-in

Slack Setup

Slack Setup 01

Slack Setup 02

Slack Setup 03

Slack Setup 04

Serverless Deploy

# MFA Workaround
response=$(aws sts assume-role --role-arn arn:aws:iam::XXXXXXXXXXXX:role/DevOpsAdmin --role-session-name "Serverless")

# Set Variables
export AWS_ACCESS_KEY_ID=$(echo $response | jq -r '.Credentials.AccessKeyId')
export AWS_SECRET_ACCESS_KEY=$(echo $response | jq -r '.Credentials.SecretAccessKey')
export AWS_SESSION_TOKEN=$(echo ${response} | jq -r '.Credentials.SessionToken')
serverless deploy --stage dev

Event Bridge

Event Bridge Setup 01

Event Bridge Setup 02

Event Bridge Setup 03

Testing

Event Bridge Test 01

Releases

No releases published

Packages

No packages published

Languages