Terraform AWS 3.0 support for CDKTF?

I’m attempting to create an AWS lambda function that uses a docker image as the deployment package. It looks like there is support for this in the 3.x version of the AWS Provider. However, my generated code doesn’t seem to support it.

I’m specifying my provider as such, which I assume means version 2 of the AWS provider:

"terraformProviders": ["aws@~> 2.0"],

If I change this to

"terraformProviders": ["aws@~> 3.0"],

then cdktf get fails with:

Error: jsii compilation failed with non-zero exit code: 1
  | [2020-12-14T15:20:15.016] [ERROR] jsii/compiler - Type model errors prevented the JSII assembly from being created
  | warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.
  | providers/aws/guardduty-filter.ts:21:3 - error JSII5016: Members cannot be named "equals" as it conflicts with synthetic declarations in some languages.
  | 21   readonly equals?: string[];
  |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  +----------------------------------------------------------------------------------
  | Command: /usr/local/lib/node_modules/cdktf-cli/node_modules/jsii/bin/jsii --silence-warnings reserved-word
  | Workdir: /var/folders/lq/_gjhlr1d4sj61qtntn2rrkf80000gn/T/temp-ycMAsp
  +----------------------------------------------------------------------------------
    at newError (/usr/local/lib/node_modules/cdktf-cli/node_modules/jsii-srcmak/lib/util.js:38:20)
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cdktf-cli/node_modules/jsii-srcmak/lib/util.js:55:29)
    at Object.onceWrapper (node:events:483:26)
    at ChildProcess.emit (node:events:376:20)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:284:12)
jsii compilation failed with non-zero exit code: 1
  | [2020-12-14T15:20:15.016] [ERROR] jsii/compiler - Type model errors prevented the JSII assembly from being created
  | warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.
  | providers/aws/guardduty-filter.ts:21:3 - error JSII5016: Members cannot be named "equals" as it conflicts with synthetic declarations in some languages.
  | 21   readonly equals?: string[];
  |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  +----------------------------------------------------------------------------------
  | Command: /usr/local/lib/node_modules/cdktf-cli/node_modules/jsii/bin/jsii --silence-warnings reserved-word
  | Workdir: /var/folders/lq/_gjhlr1d4sj61qtntn2rrkf80000gn/T/temp-ycMAsp
  +----------------------------------------------------------------------------------

This should be fixed in cdktf 0.0.19.

That worked, thank you very much. I thought I had already installed the new version, but it didn’t take.