Closed dreamorosi closed 4 months ago
We have examples running s3 and dynamo at the same timme. Thanks for reporting, taking a look!
Thanks for the report. I can confirm that there was regression introduced when the Runtime Interface Client was ported to rust. Fix is coming up!
When running the following code on
v0.1.13-beta
:I get this error:
All these clients are set as
externalModules
and thus my function is using the ones bundled in the runtime.If I remove one and leave the other (i.e. only
DynamoDBClient
or onlyCognitoIdentityProviderClient
) then the function runs normally.As far as I can tell, the issue seems to appear whenever importing two AWS SDK clients in the same bundle and it's not specific to these above. I have tried also other combinations like
@aws-sdk/client-secrets-manger
+@aws-sdk/client-cognito-identity-provider
and I get the same error.Below is my fairly basic CDK architecture, which shows how I am adding LLRT:
As you can see the error is fairly cryptic so I can't provide any other info, but if you need more details feel free to reach out.