Fork me on GitHub
#aws
<
2021-12-13
>
Benjamin13:12:08

do you use the typescript cdk and is there any reasonable way to not have version incompatibility issues with that?

Benjamin13:12:20

I'm depending on "aws-cdk-lib" and "aws-cdk/aws-iam" error:

Argument of type 'import("/home/benj/repos/typescript/version-file/node_modules/@aws-cdk/aws-iam/lib/policy-statement").PolicyStatement' is not assignable to parameter of type 'import("/home/benj/repos/typescript/version-file/node_modules/aws-cdk-lib/aws-iam/lib/policy-statement").PolicyStatement'.
  Types have separate declarations of a private property 'action'

Benjamin14:12:37

seems like mixing aws-cdk-lib and @aws-cdk/ was the issue

hadils13:12:22

I think there’s a bug in

(aws/client
               {:api                  :apigatewaymanagementapi
                :region               "us-west-2"
                :credentials-provider (credentials/basic-credentials-provider
                                        {:access-key-id     "<access-key>"
                                         :secret-access-key "<secret>"})
                :endpoint-override    {:hostname host
                                       :path     (str "/" stage "/@connections/")}})
I. don’t think it’s appending the connectionId to the end of the URL
(aws/invoke apipost {:op      :GetConnection
                                                 :request {:ConnectionId connection-id}})