# Alerta Database Module

This module includes the RDS backend infrastructure that the Alerta service needs available before spinning up the other infra. It also includes an SSM parameter that hosts a SecureString of the DB connection string that the alerta ECS task definition uses.

## Getting Started

1. Clone the repository

2. Download the following (assuming MacOS)

  * [tfenv](https://github.com/tfutils/tfenv#automatic) --> `brew install tfenv`
  * [terrafile](https://github.com/coretech/terrafile#how-to-install) --> `brew tap coretech/terrafile && brew install terrafile`

3. Copy the credentials for your AWS account in your shell (i.e: isengard temporary creds, other mechanisms)

4. See if your terraform environment can set up. In the same folder as this README, run `./deploy.sh -e [staging|prod] -r <aws_region> (plan|apply)`
