CDK python s3.Bucket auto_delete_objects True causing unsupported nodejs error

0

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

No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas