Skip to content

Commit d8970ae

Browse files
Add table definition for unhealthy containers table
1 parent b90577a commit d8970ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ Resources:
905905
TOKEN_ID_ATTRIBUTE_NAME = 'token_id'
906906
ISSUED_AT_TIMESTAMP_ATTRIBUTE_NAME = 'issued_at'
907907
TIME_TO_LIVE_ATTRIBUTE_NAME = 'ttl'
908+
CONTAINER_ID_AND_TRIGGER_COMPOSITE_ATTRIBUTE_NAME = 'container_id'
908909
-%>
909910
BlockedUsersTable:
910911
Type: AWS::DynamoDB::Table
@@ -973,6 +974,21 @@ Resources:
973974
AttributeName: <%=TIME_TO_LIVE_ATTRIBUTE_NAME%>
974975
Enabled: true
975976
977+
UnhealthyContainersTable:
978+
Type: AWS::DynamoDB::Table
979+
Properties:
980+
TableName: !Sub "${SubDomainName}_unhealthy_containers"
981+
KeySchema:
982+
- AttributeName: <%=CONTAINER_ID_AND_TRIGGER_COMPOSITE_ATTRIBUTE_NAME%>
983+
KeyType: HASH
984+
BillingMode: PAY_PER_REQUEST
985+
AttributeDefinitions:
986+
- AttributeName: <%=CONTAINER_ID_AND_TRIGGER_COMPOSITE_ATTRIBUTE_NAME%>
987+
AttributeType: S
988+
TimeToLiveSpecification:
989+
AttributeName: <%=TIME_TO_LIVE_ATTRIBUTE_NAME%>
990+
Enabled: true
991+
976992
HighUsersBlockedAlarm:
977993
Type: AWS::CloudWatch::Alarm
978994
Properties:

0 commit comments

Comments
 (0)