https://serverless-stack.com/ logo
#sst
Title
# sst
a

Adrián Mouly

12/07/2021, 12:05 AM
Hey guys. I’m using
Queue
construct from SST, and now I need to attach a consumer of type
DockerImageFunction
from CDK. Is that possible to do? or I need to create a Queue + Integration with native CDK?
t

thdxr

12/07/2021, 12:17 AM
You should be able to pass that directly
We accept any kind of function
a

Adrián Mouly

12/07/2021, 12:17 AM
Mmm.
Copy code
Type 'DockerImageFunction' is not assignable to type 'FunctionDefinition | QueueConsumerProps | undefined'.
Maybe using old sst?
Copy code
SST: 0.49.1
CDK: 1.126.0
I did upgrade but still the same.
@thdxr thoughts?
t

thdxr

12/07/2021, 2:10 AM
Ah ok it might not accept a function let me check in a bit
Work around is what you said, creating an integration with cdk directly
a

Adrián Mouly

12/07/2021, 2:11 AM
Ok.
😩