# Overview

This repository contains terraform code to configure auxiliary tooling for the alerta infrastructure

This may be moved to the home of the new alerta infra, https://git-aws.internal.justin.tv/video-monitoring/docker-alerta, eventually.

### What's in Here

- HISTORY (commits)
- TrivEA integration 
- Pagerduty Public API endpoint 
- Scheduled Tasks (metrics and housekeeping)
- CW Alarms integration (In some [old commit](https://git-aws.internal.justin.tv/video-monitoring/tf-io-alerta/pull/13) since deleted)

### Prerequisites

Following tools should be installed locally:
- [tfenv](https://github.com/tfutils/tfenv)
- [terrafile](https://github.com/coretech/terrafile)
- script to configure temporary AWS credentials: [tempAWSCredsEnv](https://git-aws.internal.justin.tv/ktimofee/ktimofee/blob/master/scripts/tempAWSCredsEnv)

### Deployment
```
mwinit --aea
eval "$(tempAWSCredsEnv twitch-video-ops-aws)"
./deploy.sh -e prod plan
./deploy.sh -e prod apply
```
