Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions cloudformation/logs.yml

This file was deleted.

9 changes: 0 additions & 9 deletions cloudformation/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ Resources:
SqsQueueArn: !Sub "arn:aws:sqs:${AWS::Region}:${AWS::AccountId}:infra-core-api-sqs"
LinkryKvArn: !GetAtt LinkryRecordsCloudfrontStore.Arn

AppLogGroups:
Type: AWS::Serverless::Application
Properties:
Location: ./logs.yml

LinkryRecordSetv4:
Condition: IsDev
Type: AWS::Route53::RecordSet
Expand Down Expand Up @@ -218,8 +213,6 @@ Resources:

AppApiLambdaFunction:
Type: AWS::Serverless::Function
DependsOn:
- AppLogGroups
Properties:
Architectures: [arm64]
CodeUri: ../dist/lambda
Expand Down Expand Up @@ -261,8 +254,6 @@ Resources:

AppSqsLambdaFunction:
Type: AWS::Serverless::Function
DependsOn:
- AppLogGroups
Properties:
Architectures: [arm64]
CodeUri: ../dist/sqsConsumer
Expand Down
28 changes: 28 additions & 0 deletions terraform/envs/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,31 @@ module "sqs_queues" {
source = "../../modules/sqs"
resource_prefix = var.ProjectId
}

import {
to = aws_dynamodb_table.app_audit_log
id = "${var.ProjectId}-audit-log"
}

resource "aws_dynamodb_table" "app_audit_log" {
billing_mode = "PAY_PER_REQUEST"
name = "${var.ProjectId}-audit-log"
deletion_protection_enabled = true
hash_key = "module"
range_key = "createdAt"
point_in_time_recovery {
enabled = true
}
attribute {
name = "module"
type = "S"
}
attribute {
name = "createdAt"
type = "N"
}
ttl {
attribute_name = "expiresAt"
enabled = true
}
}
28 changes: 28 additions & 0 deletions terraform/envs/qa/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,31 @@ module "sqs_queues" {
source = "../../modules/sqs"
resource_prefix = var.ProjectId
}

import {
to = aws_dynamodb_table.app_audit_log
id = "${var.ProjectId}-audit-log"
}

resource "aws_dynamodb_table" "app_audit_log" {
billing_mode = "PAY_PER_REQUEST"
name = "${var.ProjectId}-audit-log"
deletion_protection_enabled = true
hash_key = "module"
range_key = "createdAt"
point_in_time_recovery {
enabled = true
}
attribute {
name = "module"
type = "S"
}
attribute {
name = "createdAt"
type = "N"
}
ttl {
attribute_name = "expiresAt"
enabled = true
}
}
Loading