Skip to content
WA Animals Amazon EventBridge rule to alert Slack with a Serverless lambda when someone signs in to AWS Account
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
.gitignore
README.md
env.yml.sample
handler.py
package-lock.json
package.json
requirements.txt
serverless.yml

README.md

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

You can’t perform that action at this time.