mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2024-12-20 13:43:11 +00:00
Terraform fmt [skip ci]
This commit is contained in:
parent
e63b1283f0
commit
8069118a3d
50
cdn.tf
50
cdn.tf
@ -2,28 +2,28 @@
|
||||
|
||||
|
||||
resource "aws_lambda_function" "redirect" {
|
||||
function_name = "sondehub-redirect"
|
||||
handler = "redirect.handler"
|
||||
s3_bucket = aws_s3_bucket_object.lambda.bucket
|
||||
s3_key = aws_s3_bucket_object.lambda.key
|
||||
publish = true
|
||||
memory_size = 128
|
||||
role = aws_iam_role.basic_lambda_role.arn
|
||||
runtime = "python3.9"
|
||||
timeout = 3
|
||||
function_name = "sondehub-redirect"
|
||||
handler = "redirect.handler"
|
||||
s3_bucket = aws_s3_bucket_object.lambda.bucket
|
||||
s3_key = aws_s3_bucket_object.lambda.key
|
||||
publish = true
|
||||
memory_size = 128
|
||||
role = aws_iam_role.basic_lambda_role.arn
|
||||
runtime = "python3.9"
|
||||
timeout = 3
|
||||
source_code_hash = data.archive_file.lambda.output_base64sha256
|
||||
}
|
||||
|
||||
resource "aws_lambda_function" "ham_redirect" {
|
||||
function_name = "ham-sondehub-redirect"
|
||||
handler = "redirect_ham.handler"
|
||||
s3_bucket = aws_s3_bucket_object.lambda.bucket
|
||||
s3_key = aws_s3_bucket_object.lambda.key
|
||||
publish = true
|
||||
memory_size = 128
|
||||
role = aws_iam_role.basic_lambda_role.arn
|
||||
runtime = "python3.9"
|
||||
timeout = 3
|
||||
function_name = "ham-sondehub-redirect"
|
||||
handler = "redirect_ham.handler"
|
||||
s3_bucket = aws_s3_bucket_object.lambda.bucket
|
||||
s3_key = aws_s3_bucket_object.lambda.key
|
||||
publish = true
|
||||
memory_size = 128
|
||||
role = aws_iam_role.basic_lambda_role.arn
|
||||
runtime = "python3.9"
|
||||
timeout = 3
|
||||
source_code_hash = data.archive_file.lambda.output_base64sha256
|
||||
}
|
||||
|
||||
@ -313,9 +313,9 @@ resource "aws_cloudfront_distribution" "sondehub" {
|
||||
origin_keepalive_timeout = 5
|
||||
origin_protocol_policy = "http-only"
|
||||
origin_read_timeout = 30
|
||||
origin_ssl_protocols = [
|
||||
"TLSv1.2",
|
||||
]
|
||||
origin_ssl_protocols = [
|
||||
"TLSv1.2",
|
||||
]
|
||||
}
|
||||
}
|
||||
default_cache_behavior {
|
||||
@ -377,8 +377,8 @@ resource "aws_cloudfront_distribution" "sondehub" {
|
||||
}
|
||||
query_string = false
|
||||
}
|
||||
compress = true
|
||||
default_ttl = 0
|
||||
compress = true
|
||||
default_ttl = 0
|
||||
max_ttl = 0
|
||||
min_ttl = 0
|
||||
path_pattern = "calc/*"
|
||||
@ -398,8 +398,8 @@ resource "aws_cloudfront_distribution" "sondehub" {
|
||||
}
|
||||
query_string = false
|
||||
}
|
||||
compress = true
|
||||
default_ttl = 0
|
||||
compress = true
|
||||
default_ttl = 0
|
||||
max_ttl = 0
|
||||
min_ttl = 0
|
||||
path_pattern = "calc"
|
||||
|
2
es.tf
2
es.tf
@ -60,7 +60,7 @@ EOF
|
||||
ebs_enabled = true
|
||||
volume_type = "gp3"
|
||||
volume_size = 200
|
||||
iops = 3000
|
||||
iops = 3000
|
||||
}
|
||||
log_publishing_options {
|
||||
cloudwatch_log_group_arn = "arn:aws:logs:us-east-1:143841941773:log-group:/aws/aes/domains/sondes-v2/application-logs"
|
||||
|
@ -271,7 +271,7 @@ resource "aws_lambda_function" "ham_listener_put" {
|
||||
architectures = ["arm64"]
|
||||
environment {
|
||||
variables = {
|
||||
"ES" = "es.${local.domain_name}"
|
||||
"ES" = "es.${local.domain_name}"
|
||||
"SNS_TOPIC" = aws_sns_topic.ham_listener_telem.arn
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
resource "aws_iam_role" "ingestion_lambda_role" { # need a specific role so that we can disable cloudwatch logs
|
||||
path = "/service-role/"
|
||||
name_prefix = "sonde-ingestion-"
|
||||
name_prefix = "sonde-ingestion-"
|
||||
assume_role_policy = <<EOF
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
@ -128,7 +128,7 @@ resource "aws_lambda_function" "station" {
|
||||
architectures = ["arm64"]
|
||||
environment {
|
||||
variables = {
|
||||
"ES" = "es.${local.domain_name}"
|
||||
"ES" = "es.${local.domain_name}"
|
||||
"SNS_TOPIC" = aws_sns_topic.listener_telem.arn
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user