Skip to content

Commit ed0d2a8

Browse files
Merge pull request #361 from code-dot-org/sanchit/add-unhealthy-containers-table
Add table definition for unhealthy containers table
2 parents 768e878 + 0019f62 commit ed0d2a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cicd/3-app/javabuilder/template.yml.erb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,7 @@ Resources:
906906
TOKEN_ID_ATTRIBUTE_NAME = 'token_id'
907907
ISSUED_AT_TIMESTAMP_ATTRIBUTE_NAME = 'issued_at'
908908
TIME_TO_LIVE_ATTRIBUTE_NAME = 'ttl'
909+
CONTAINER_ID_AND_TRIGGER_COMPOSITE_ATTRIBUTE_NAME = 'container_id'
909910
-%>
910911
BlockedUsersTable:
911912
Type: AWS::DynamoDB::Table
@@ -974,6 +975,18 @@ Resources:
974975
AttributeName: <%=TIME_TO_LIVE_ATTRIBUTE_NAME%>
975976
Enabled: true
976977
978+
UnhealthyContainersTable:
979+
Type: AWS::DynamoDB::Table
980+
Properties:
981+
TableName: !Sub "${SubDomainName}_unhealthy_containers"
982+
KeySchema:
983+
- AttributeName: <%=CONTAINER_ID_AND_TRIGGER_COMPOSITE_ATTRIBUTE_NAME%>
984+
KeyType: HASH
985+
BillingMode: PAY_PER_REQUEST
986+
AttributeDefinitions:
987+
- AttributeName: <%=CONTAINER_ID_AND_TRIGGER_COMPOSITE_ATTRIBUTE_NAME%>
988+
AttributeType: S
989+
977990
HighUsersBlockedAlarm:
978991
Type: AWS::CloudWatch::Alarm
979992
Properties:

0 commit comments

Comments
 (0)