Skip to content

Commit 4857566

Browse files
committed
Merge
2 parents 79bd3af + f997f29 commit 4857566

30 files changed

+13423
-1760
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

cloudformation/iam.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ Resources:
6363
Resource:
6464
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-events/*
6565
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-events
66+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-cache
67+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-cache/*
68+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-merchstore-purchase-history/*
69+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-merchstore-purchase-history
70+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-tickets
71+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-tickets/*
72+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-ticketing-metadata/*
73+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-events-ticketing-metadata
74+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-merchstore-metadata/*
75+
- !Sub arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-merchstore-metadata
76+
6677
PolicyName: lambda-dynamo
6778
Outputs:
6879
MainFunctionRoleArn:

cloudformation/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,25 @@ Resources:
130130
Projection:
131131
ProjectionType: ALL
132132

133+
CacheRecordsTable:
134+
Type: 'AWS::DynamoDB::Table'
135+
DeletionPolicy: "Retain"
136+
Properties:
137+
BillingMode: 'PAY_PER_REQUEST'
138+
TableName: infra-core-api-cache
139+
DeletionProtectionEnabled: true
140+
PointInTimeRecoverySpecification:
141+
PointInTimeRecoveryEnabled: false
142+
AttributeDefinitions:
143+
- AttributeName: primaryKey
144+
AttributeType: S
145+
KeySchema:
146+
- AttributeName: primaryKey
147+
KeyType: HASH
148+
TimeToLiveSpecification:
149+
AttributeName: "expireAt"
150+
Enabled: true
151+
133152
AppApiGateway:
134153
Type: AWS::Serverless::Api
135154
DependsOn:

0 commit comments

Comments
 (0)