Files
deflock/terraform/main.tf
T
Will Freeman e8fcf30e5b New Maps (#110)
* use new df map

* close button top-right, link to same position in new map, use localStorage for modal dismissal

* update map image, iframe detection ignores new map modal

* update embed instructions

* pretty banner

* privacy policy update - routing

* launch the map language

* header stuff

* change donate link

* remove new map notice bc 301 on cf

* use user agent for alpr_counts

* news -> footnote4a

* remove blog scraper
2026-04-26 22:13:16 -06:00

35 lines
936 B
Terraform

provider "aws" {
region = "us-east-1"
}
module "directus_backup" {
source = "./modules/directus_backup"
bucket_name = "deflock-directus-backups"
}
module "alpr_counts" {
module_name = "alpr_counts"
source = "./modules/alpr_counts"
deflock_stats_bucket = var.deflock_stats_bucket
rate = "rate(60 minutes)"
sns_topic_arn = aws_sns_topic.lambda_alarms.arn
}
module "alpr_cache" {
module_name = "alpr_cache"
source = "./modules/alpr_cache"
deflock_cdn_bucket = var.deflock_cdn_bucket
rate = "rate(1 hour)"
sns_topic_arn = aws_sns_topic.lambda_alarms.arn
}
resource "aws_sns_topic" "lambda_alarms" {
name = "lambda_alarms_topic"
}
resource "aws_sns_topic_subscription" "sms_subscription" {
topic_arn = aws_sns_topic.lambda_alarms.arn
protocol = "sms"
endpoint = var.alarm_phone_number
}