hey guys, what is the proper way of adding a DLQ t...
# help
a
hey guys, what is the proper way of adding a DLQ to an SQS queue in sst 0.43.3? I was using
cdk.Queue
to set the
deadLetterQueue
on it to
mySSTQueue.sqsQueue
but since I updating sst from 0.37.2 to 0.43.3 a lot of new typescript errors started to appear during the build
t
Did you update your aws-cdk versions too?
It needs to be 1.114.0
a
@thdxr thanks for the reply, wasn't quick enough to remove this ))) I installed the packages but accidentally in the parent directory))) sorry about this. Now the only thing complaining is this
Copy code
lib/index.ts:20:31 - error TS2345: Argument of type '(stack: Stack) => { runtime: Runtime; environment: { SUBDOMAIN: string; ROOT_DOMAIN: string; }; vpc: IVpc; vpcSubnets: { subnets: ISubnet[]; }; }' is not assignable to parameter of type 'FunctionProps | ((stack: Stack) => FunctionProps)'.
  Type '(stack: Stack) => { runtime: Runtime; environment: { SUBDOMAIN: string; ROOT_DOMAIN: string; }; vpc: IVpc; vpcSubnets: { subnets: ISubnet[]; }; }' is not assignable to type '(stack: Stack) => FunctionProps'.
    Call signature return types '{ runtime: Runtime; environment: { SUBDOMAIN: string; ROOT_DOMAIN: string; }; vpc: IVpc; vpcSubnets: { subnets: ISubnet[]; }; }' and 'FunctionProps' are incompatible.
      The types of 'vpc.publicSubnets' are incompatible between these types.
        Type 'import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet[]' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet[]'.
          Type 'import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet'.
            Types of property 'associateNetworkAcl' are incompatible.
              Type '(id: string, acl: import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl) => void' is not assignable to type '(id: string, acl: import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl) => void'.
                Types of parameters 'acl' and 'acl' are incompatible.
                  Type 'import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl'.
                    The types of 'addEntry(...).stack.tags' are incompatible between these types.
                      Type 'import("/code/messaging/node_modules/@aws-cdk/core/lib/tag-manager").TagManager' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-iam/node_modules/@aws-cdk/core/lib/tag-manager").TagManager'.
                        Types have separate declarations of a private property 'tags'.

20   app.setDefaultFunctionProps((stack) => {
                                 ~~~~~~~~~~~~


Found 1 error.
got that also fixed by installing @aws-cdk/aws-ec2@1.114.0
ignore this thread please ))