Skip to content

Commit 1a861f1

Browse files
author
Bob Strahan
committed
Fix JSON serialization for metering data and add AppSync API URL to resolver environment
1 parent 374ca11 commit 1a861f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/idp_common_pkg/idp_common/appsync/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _document_to_update_input(self, document: Document) -> Dict[str, Any]:
164164

165165
# Add metering data if available
166166
if document.metering:
167-
input_data["Metering"] = json.dumps(document.metering)
167+
input_data["Metering"] = json.dumps(document.metering, default=str)
168168

169169
# Add evaluation status & report if available
170170
if document.evaluation_status:

template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6199,6 +6199,7 @@ Resources:
61996199
WORKING_BUCKET: !Ref WorkingBucket
62006200
INPUT_BUCKET: !Ref InputBucket
62016201
OUTPUT_BUCKET: !Ref OutputBucket
6202+
APPSYNC_API_URL: !GetAtt GraphQLApi.GraphQLUrl
62026203
LoggingConfig:
62036204
LogGroup: !Ref ProcessChangesResolverFunctionLogGroup
62046205
Policies:

0 commit comments

Comments
 (0)