/psychic-parakeet

AWS root user login alerting... 🚨

Primary LanguageHCLMIT LicenseMIT

Introduction

Very simple repo with very simple configuration to create a simple alert for an AWS root user account login attempt.

Costs

Running the configuration here could result in charges, albeit modest. But please be aware that this is a possibility before you terraform apply!

Terraform

This has been written using Terraform v0.14.10 (see provider.tf) but should work fine with any version from v0.12 onwards.

AWS

Architecture

The resources created are:

  • SNS Topic
  • Zero or more email subscriptions
  • EventBridge Rule

Massage terraform.tfvars.example and rename as terraform.tfvars (or to taste as you prefer). Obviously the specified us-east-1 region could be different, but these events only fire in North Virginia.

Event Pattern

It shouldn't need it, but the event pattern can be modified to taste.

Subscription

The email addresses subscribed in the terraform.tfvars file need to be confirmed. If they aren't confirmed and you run terraform destroy then they will be left dangling...

Notification

The email notification has been configured to transform the data but it is most definitely functional rather than pretty.