Skip to content

Commit d63e4d1

Browse files
committed
refactor: renamed WebTable to Properties table to match architecture
1 parent e97f447 commit d63e4d1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

unicorn_web/Data/load_data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ STACK_NAME="uni-prop-local-web"
66
JSON_FILE="$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )/property_data.json"
77
echo "JSON_FILE: '${JSON_FILE}'"
88

9-
DDB_TBL_NAME="$(aws cloudformation describe-stacks --stack-name ${STACK_NAME} --query 'Stacks[0].Outputs[?ends_with(OutputKey, `WebTableName`)].OutputValue' --output text)"
9+
DDB_TBL_NAME="$(aws cloudformation describe-stacks --stack-name ${STACK_NAME} --query 'Stacks[0].Outputs[?ends_with(OutputKey, `PropertiesTableName`)].OutputValue' --output text)"
1010
echo "DDB_TABLE_NAME: '${DDB_TBL_NAME}'"
1111

1212
echo "LOADING ITEMS TO DYNAMODB:"

unicorn_web/template.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Globals:
5252
- x86_64
5353
Environment:
5454
Variables:
55-
DYNAMODB_TABLE: !Ref WebTable
55+
DYNAMODB_TABLE: !Ref PropertiesTable
5656
EVENT_BUS: !Ref UnicornWebEventBus
5757
SERVICE_NAMESPACE: "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
5858
POWERTOOLS_SERVICE_NAME: "{{resolve:ssm:/uni-prop/UnicornWebNamespace}}"
@@ -93,7 +93,7 @@ Resources:
9393
Handler: search.PropertySearchFunction::handleRequest
9494
Policies:
9595
- DynamoDBReadPolicy:
96-
TableName: !Ref WebTable
96+
TableName: !Ref PropertiesTable
9797

9898
# Log group for the SearchFunction
9999
SearchFunctionLogGroup:
@@ -114,7 +114,7 @@ Resources:
114114
- EventBridgePutEventsPolicy:
115115
EventBusName: !Ref UnicornWebEventBus
116116
- DynamoDBReadPolicy:
117-
TableName: !Ref WebTable
117+
TableName: !Ref PropertiesTable
118118
Events:
119119
IngestQueue:
120120
Type: SQS
@@ -139,10 +139,10 @@ Resources:
139139
Type: AWS::Serverless::Function
140140
Properties:
141141
CodeUri: PublicationManagerService
142-
Handler: publicationmanager.PublicationApprovedEventHandler::handleRequest
142+
Handler: publicationmanager.publicationEvaluationEventHandler::handleRequest
143143
Policies:
144144
- DynamoDBCrudPolicy:
145-
TableName: !Ref WebTable
145+
TableName: !Ref PropertiesTable
146146
EventInvokeConfig:
147147
DestinationConfig:
148148
OnFailure:
@@ -294,7 +294,7 @@ Resources:
294294

295295
##### DYNAMODB
296296
# Persists Property details in DynamoDB
297-
WebTable:
297+
PropertiesTable:
298298
Type: AWS::DynamoDB::Table
299299
UpdateReplacePolicy: Delete
300300
DeletionPolicy: Delete
@@ -472,9 +472,9 @@ Outputs:
472472
Value: !GetAtt UnicornWebIngestQueue.QueueUrl
473473

474474
#### DYNAMODB OUTPUTS
475-
UnicornWebTableName:
475+
PropertiesTableName:
476476
Description: Name of the DynamoDB Table for Unicorn Web
477-
Value: !Ref WebTable
477+
Value: !Ref PropertiesTable
478478

479479
#### LAMBDA FUNCTIONS OUTPUTS
480480
SearchFunctionArn:

0 commit comments

Comments
 (0)