Skip to content

Bedrock Runtime Nova Sonic bidirectional streaming on EC2 instance - no output event stream #3649

@oleg-boulanov

Description

@oleg-boulanov

Describe the bug

Hello.

I'm building an app using bedrock-runtime, with AWS SDK C++ (built with AWS CRT).
Reached the point of unit tests succeeding on my laptop, but failing on EC2 instance.
Basically, there is no event stream coming to the instance from Sonic.
VPC does not have bedrock service endpoints.

I wonder if that could be the issue?
What are the options to resolve it, if any?

AWS SDK C++ built on Windows with:

-G "Visual Studio 17 2022" 
-A Win32 
-DBUILD_ONLY="bedrock-runtime" 
-DTARGET_ARCH=Windows 
-DBUILD_SHARED_LIBS=ON 
-DUSE_OPENSSL=OFF 
-DUSE_CRT_HTTP_CLIENT=ON

Thanks,
Oleg

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Sonic output event stream coming from service endpoint to EC2 instance.

Current Behavior

There is no Sonic output event stream, if program (unit tests) is running on EC2 instance,
but streaming is successful if running on developer laptop outside of AWS.

Reproduction Steps

I'm not sure if this is a bug

Possible Solution

Overriding HTTP endpoint with public address?

Additional Information/Context

No response

AWS CPP SDK version used

1.11.705

Compiler and Version used

MS Visual Studio/Build Tools

Operating System and version

Windows 11 (10.0.26100), Amazon Windows 2022 AMI

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions