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

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠