This is the response by AWS Support:
We have identified that the error you are experiencing relates to the AWS Lambda function's runtime. The current Python 3.7 runtime is no longer supported, and an update to Python 3.12 is required.
Extract from our logging to confirm the issue:
2024-02-15T17:48:16.282Z AWS::Lambda::Function DetachVolumeLambda CREATE_FAILED Resource handler returned message: "The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.12) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 508ce64b-ce09-4bfb-b208-872a0f94c85e)" (RequestToken: 4a067256-c32e-4099-6da5-012a55fa66a1, HandlerErrorCode:
Pertaining to the above log I have changed the python version in the cloudformation stack that is created as below:
EncryptEBSVolumesConfigRemediation:
Type: AWS::Config::RemediationConfiguration
Properties:
ConfigRuleName: encrypted-volumes
TargetId:
Ref: ENCRYPTunencryptedebsvolume
TargetType: SSM_DOCUMENT
Automatic: false
Parameters:
automationAssumeRole:
StaticValue:
Values:
This is the response by AWS Support: We have identified that the error you are experiencing relates to the AWS Lambda function's runtime. The current Python 3.7 runtime is no longer supported, and an update to Python 3.12 is required.
Extract from our logging to confirm the issue: 2024-02-15T17:48:16.282Z AWS::Lambda::Function DetachVolumeLambda CREATE_FAILED Resource handler returned message: "The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.12) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 508ce64b-ce09-4bfb-b208-872a0f94c85e)" (RequestToken: 4a067256-c32e-4099-6da5-012a55fa66a1, HandlerErrorCode:
Pertaining to the above log I have changed the python version in the cloudformation stack that is created as below: EncryptEBSVolumesConfigRemediation: Type: AWS::Config::RemediationConfiguration Properties: ConfigRuleName: encrypted-volumes TargetId: Ref: ENCRYPTunencryptedebsvolume TargetType: SSM_DOCUMENT Automatic: false Parameters: automationAssumeRole: StaticValue: Values:
can you help on the same ?