File tree Expand file tree Collapse file tree 4 files changed +56
-37
lines changed Expand file tree Collapse file tree 4 files changed +56
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -85,11 +85,6 @@ Resources:
85
85
SqsQueueArn : !Sub "arn:aws:sqs:${AWS::Region}:${AWS::AccountId}:infra-core-api-sqs"
86
86
LinkryKvArn : !GetAtt LinkryRecordsCloudfrontStore.Arn
87
87
88
- AppLogGroups :
89
- Type : AWS::Serverless::Application
90
- Properties :
91
- Location : ./logs.yml
92
-
93
88
LinkryRecordSetv4 :
94
89
Condition : IsDev
95
90
Type : AWS::Route53::RecordSet
@@ -218,8 +213,6 @@ Resources:
218
213
219
214
AppApiLambdaFunction :
220
215
Type : AWS::Serverless::Function
221
- DependsOn :
222
- - AppLogGroups
223
216
Properties :
224
217
Architectures : [arm64]
225
218
CodeUri : ../dist/lambda
@@ -261,8 +254,6 @@ Resources:
261
254
262
255
AppSqsLambdaFunction :
263
256
Type : AWS::Serverless::Function
264
- DependsOn :
265
- - AppLogGroups
266
257
Properties :
267
258
Architectures : [arm64]
268
259
CodeUri : ../dist/sqsConsumer
Original file line number Diff line number Diff line change @@ -49,3 +49,31 @@ module "sqs_queues" {
49
49
source = " ../../modules/sqs"
50
50
resource_prefix = var. ProjectId
51
51
}
52
+
53
+ import {
54
+ to = aws_dynamodb_table. app_audit_log
55
+ id = " ${ var . ProjectId } -audit-log"
56
+ }
57
+
58
+ resource "aws_dynamodb_table" "app_audit_log" {
59
+ billing_mode = " PAY_PER_REQUEST"
60
+ name = " ${ var . ProjectId } -audit-log"
61
+ deletion_protection_enabled = true
62
+ hash_key = " module"
63
+ range_key = " createdAt"
64
+ point_in_time_recovery {
65
+ enabled = true
66
+ }
67
+ attribute {
68
+ name = " module"
69
+ type = " S"
70
+ }
71
+ attribute {
72
+ name = " createdAt"
73
+ type = " N"
74
+ }
75
+ ttl {
76
+ attribute_name = " expiresAt"
77
+ enabled = true
78
+ }
79
+ }
Original file line number Diff line number Diff line change @@ -36,3 +36,31 @@ module "sqs_queues" {
36
36
source = " ../../modules/sqs"
37
37
resource_prefix = var. ProjectId
38
38
}
39
+
40
+ import {
41
+ to = aws_dynamodb_table. app_audit_log
42
+ id = " ${ var . ProjectId } -audit-log"
43
+ }
44
+
45
+ resource "aws_dynamodb_table" "app_audit_log" {
46
+ billing_mode = " PAY_PER_REQUEST"
47
+ name = " ${ var . ProjectId } -audit-log"
48
+ deletion_protection_enabled = true
49
+ hash_key = " module"
50
+ range_key = " createdAt"
51
+ point_in_time_recovery {
52
+ enabled = true
53
+ }
54
+ attribute {
55
+ name = " module"
56
+ type = " S"
57
+ }
58
+ attribute {
59
+ name = " createdAt"
60
+ type = " N"
61
+ }
62
+ ttl {
63
+ attribute_name = " expiresAt"
64
+ enabled = true
65
+ }
66
+ }
You can’t perform that action at this time.
0 commit comments