mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-05-19 14:28:12 +02:00
e8fcf30e5b
* 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
35 lines
936 B
Terraform
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
|
|
}
|