Skip to content

Commit 66c0599

Browse files
committed
refactor: renamed WebTable to Properties table to match architecture
1 parent c1a12a5 commit 66c0599

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="$(yq -ot '.default.global.parameters.stack_name' $ROOT_DIR/samconfig
66
JSON_FILE="$ROOT_DIR/data/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_LOGGER_CASE: PascalCase
@@ -94,7 +94,7 @@ Resources:
9494
Handler: search_service.property_search_function.lambda_handler
9595
Policies:
9696
- DynamoDBReadPolicy:
97-
TableName: !Ref WebTable
97+
TableName: !Ref PropertiesTable
9898

9999
# Log group for the SearchFunction
100100
SearchFunctionLogGroup:
@@ -115,7 +115,7 @@ Resources:
115115
- EventBridgePutEventsPolicy:
116116
EventBusName: !Ref UnicornWebEventBus
117117
- DynamoDBReadPolicy:
118-
TableName: !Ref WebTable
118+
TableName: !Ref PropertiesTable
119119
Events:
120120
IngestQueue:
121121
Type: SQS
@@ -140,10 +140,10 @@ Resources:
140140
Type: AWS::Serverless::Function
141141
Properties:
142142
CodeUri: src/
143-
Handler: publication_manager_service.publication_approved_event_handler.lambda_handler
143+
Handler: publication_manager_service.publication_evaluation_event_handler.lambda_handler
144144
Policies:
145145
- DynamoDBCrudPolicy:
146-
TableName: !Ref WebTable
146+
TableName: !Ref PropertiesTable
147147
EventInvokeConfig:
148148
DestinationConfig:
149149
OnFailure:
@@ -295,7 +295,7 @@ Resources:
295295

296296
##### DYNAMODB
297297
# Persists Property details in DynamoDB
298-
WebTable:
298+
PropertiesTable:
299299
Type: AWS::DynamoDB::Table
300300
UpdateReplacePolicy: Delete
301301
DeletionPolicy: Delete
@@ -473,9 +473,9 @@ Outputs:
473473
Value: !GetAtt UnicornWebIngestQueue.QueueUrl
474474

475475
#### DYNAMODB OUTPUTS
476-
UnicornWebTableName:
476+
PropertiesTableName:
477477
Description: Name of the DynamoDB Table for Unicorn Web
478-
Value: !Ref WebTable
478+
Value: !Ref PropertiesTable
479479

480480
#### LAMBDA FUNCTIONS OUTPUTS
481481
SearchFunctionArn:

0 commit comments

Comments
 (0)