1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Updated terraform config for newer aws provider, deleted old lambdas

This commit is contained in:
Jocelyn Badgley (Twipped)
2023-02-19 12:58:46 -08:00
parent bb52a23297
commit 77bd70819a
20 changed files with 238 additions and 2997 deletions

View File

@@ -1,4 +1,7 @@
resource "aws_cloudfront_origin_access_identity" "origin_access_identity" {
}
# -----------------------------------------------------------------------------------------------------------
# Cloudfront Configuration
@@ -112,10 +115,10 @@ resource "aws_lambda_function" "index_redirect" {
filename = "${path.module}/files/index_redirect.js.zip"
function_name = "${var.site}-index-redirect"
handler = "index_redirect.handler"
source_code_hash = data.archive_file.index_redirect.output_base64sha256
# source_code_hash = data.archive_file.index_redirect.output_base64sha256
publish = true
role = aws_iam_role.lambda_redirect.arn
runtime = "nodejs10.x"
runtime = "nodejs16.x"
tags = {
Name = "${var.site}-index-redirect"