Hi,
So today I am getting some weirdness when trying to deploy the bucket below and enabling auto_delete_objects=True (all is good with auto_delete_objects commented out). I was able to deploy this a few days ago as is....
hosting_bucket = s3.Bucket(
self,
id="MyBucket",
public_read_access=False,
removal_policy=RemovalPolicy.DESTROY,
auto_delete_objects=True,
)
However since last night it gives the error
11:03:01 AM | CREATE_FAILED | AWS::Lambda::Function | CustomS3AutoDelete...derHandler9D90184F
Resource handler returned message: "The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions. (Service: Lambda, Sta
tus Code: 400, Request ID: 9ff428b1-248f-4578-941d-41c0c56143f5)" (RequestToken: 73fca83b-19e3-44c6-66bc-a28072044abc, HandlerErrorCode: InvalidRequest)
$ cdk --version
2.126.0 (build fb74c41)
I have no idea how to specify a different runtime/node version for this construct. Any known bugs or workarounds?
Thanks
Did you verify if your environment only contains that cdk version you specified?
Have you looked into https://github.com/aws/aws-dotnet-deploy/pull/818 ? also can you run cdk synth --all and check if you have the NODEJS_14_X for that resource?