aws-solutions-library-samples / guidance-for-carbon-data-lake-on-aws

This Guidance, with the sample code, can be used to deploy a carbon data lake to the AWS Cloud using an AWS Cloud Development Kit (AWS CDK)
https://aws.amazon.com/solutions/guidance/carbon-data-lake-on-aws/
Apache License 2.0
21 stars 14 forks source link

Update Dependencies: Update all Python Lambda runtimes to latest runtime and test e2e functionality #16

Closed samwardbiddle closed 1 year ago

samwardbiddle commented 1 year ago

Python Lambda with runtime 3.10 is now considered the latest runtime. CDK nag automated checks identified the following error messages:

[Error at /LineageStack/cdlDataLineageInput/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /LineageStack/cdlDataLineageHandler/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /LineageStack/cdlDataLineageTraceHandler/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /DataCompactionStack/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /DataCompactionStack/cdlCreateAthenaViewsStack/CDLIndividualAthenaViewsHandler/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /DataCompactionStack/cdlCreateAthenaViewsStack/CDLCombinedAthenaViewHandler/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /DataCompactionStack/cdlDataCompactionEnum/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /TestStack/CalculatorTestLambda/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

[Error at /TestStack/PipelineTestLambda/Resource] AwsSolutions-L1: The non-container Lambda function is not configured to use the latest runtime version. Use the latest available runtime for the targeted language to avoid technical debt. Runtimes specific to a language or framework version are deprecated when the version reaches end of life. This rule only applies to non-container Lambda functions.

Proposed Solution:

ravitupat commented 1 year ago

Hi samwardbiddle, I am also faced same issue with this code.. Could you please let me by when this issue will resolved?

error
samwardbiddle commented 1 year ago

Hello @ravitupat we are making this change now. Will update when merged.

samwardbiddle commented 1 year ago

Confirming that we have resolved this issue in a new branch. Completing tests now to verify and we will update with the latest.