aws-quickstart / quickstart-cisco-meraki-sd-wan-vmx

AWS Quick Start Team
Apache License 2.0
10 stars 16 forks source link

Modifying the template to use a supported runtime Python version from 3.7 to 3.12 for templates/copy-lambdas.yaml file #40

Closed pratikjadhav90 closed 8 months ago

pratikjadhav90 commented 8 months ago

Hi Team,

We want vMX-HA on Cisco Meraki for which we are trying to deploy the vMX instances on AWS using the script - https://aws-quickstart.s3.us-east-1.amazonaws.com/quickstart-cisco-meraki-sd-wan-vmx/templates/quickstart-cisco-meraki-sdwan-vmx-entrypoint-new-vpc.template.yaml

After submitting we get below error on AWS: 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: def02545-17ed-4776-ad97-cd93544e5238)" (RequestToken: e439a555-a799-782c-acd5-b05b2872613f, HandlerErrorCode: InvalidRequest)

Below is the reply from AWS support: It appears that an outdated runtime is hard-coded in the Lambda function resource, 'CopyObjectsFunction'. You can resolve this error by modifying the template to use a supported runtime.

Requesting to please change the below Python Runtime to 3.12 version: quickstart-cisco-meraki-sd-wan-vmx/templates /copy-lambdas.yaml

Description: Copies objects from a source S3 bucket to a destination S3 bucket Handler: index.handler Role: Fn::GetAtt:

Description: Empty the S3 Bucket Handler: index.handler Role: Fn::GetAtt:

Log file attached with error snap. vMXHA deployment error using Cloudformation on AWS.docx