The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
The default lambda handler deployed for conversation routes via ai-constructs doesn't stream function logs for sandbox deployments when using the --stream-function-logs flag (documentation).
Description of changes
Plumb outputStorageStrategy from AmplifyGraphqlApi through the ConversationTransformer to ai-constructs.
This allows ai-constructs to include the conversation handler Lambda function in the root stack outputs for streaming.
Problem
The default lambda handler deployed for conversation routes via
ai-constructs
doesn't stream function logs for sandbox deployments when using the--stream-function-logs
flag (documentation).Description of changes
outputStorageStrategy
fromAmplifyGraphqlApi
through theConversationTransformer
toai-constructs
.This allows
ai-constructs
to include the conversation handler Lambda function in the root stack outputs for streaming.Relevant Backend PR
CDK / CloudFormation Parameters Changed
N/A
Issue #, if available
N/A
Description of how you validated changes
Manually tested. E2E test not feasible as construct only test; will look into options for automated testing in a follow up.
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.