Skip to content

Commit 0c21cc6

Browse files
committed
update config
1 parent d08df9a commit 0c21cc6

File tree

4 files changed

+12
-183
lines changed

4 files changed

+12
-183
lines changed

cloudformation/main.yml

Lines changed: 0 additions & 179 deletions
This file was deleted.

cspell.config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: "0.2"
22
ignorePaths:
3-
- cloudformation/**
3+
- terraform/**
44
- Makefile
55
- .github/**
66
dictionaryDefinitions: []

terraform/envs/prod/main.tf

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "random_password" "origin_verify_key" {
6363

6464
// TEMPORARY LINKRY KV IMPORT
6565
import {
66-
to = aws_cloudfront_key_value_store.test
66+
to = aws_cloudfront_key_value_store.linkry_kv
6767
id = "${var.ProjectId}-cloudfront-linkry-kv"
6868
}
6969

@@ -72,6 +72,14 @@ resource "aws_cloudfront_key_value_store" "linkry_kv" {
7272
}
7373
//
7474

75+
module "alarms" {
76+
source = "../../modules/alarms"
77+
priority_sns_arn = var.PrioritySNSAlertArn
78+
resource_prefix = var.ProjectId
79+
main_cloudfront_distribution_id = module.frontend.main_cloudfront_distribution_id
80+
standard_sns_arn = var.GeneralSNSAlertArn
81+
}
82+
7583
module "lambdas" {
7684
source = "../../modules/lambdas"
7785
ProjectId = var.ProjectId
@@ -91,8 +99,8 @@ module "frontend" {
9199
CoreCertificateArn = var.CoreCertificateArn
92100
CorePublicDomain = var.CorePublicDomain
93101
IcalPublicDomain = var.IcalPublicDomain
94-
LinkryKvArn = aws_cloudfront_key_value_store.linkry_kv.arn
95102
LinkryPublicDomain = var.LinkryPublicDomain
103+
LinkryKvArn = aws_cloudfront_key_value_store.linkry_kv.arn
96104
}
97105

98106
// This section last: moved records into modules

terraform/modules/frontend/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async function handler(event) {
220220
statusCode: 301,
221221
statusDescription: 'Found',
222222
headers: {
223-
'location': { value: "https://core.acm.illinois.edu/linkry" }
223+
'location': { value: "https://${var.CorePublicDomain}/linkry" }
224224
}
225225
}
226226
}

0 commit comments

Comments
 (0)