From 7da1fa734f14380f0fecfca31287377fe4efb8df Mon Sep 17 00:00:00 2001 From: Nikhil Zadoo Date: Fri, 2 Sep 2022 12:09:33 +0200 Subject: [PATCH 1/2] Updating node version to 16 since version 12 is now deprecated --- template.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.yml b/template.yml index 0a120d4..35e6b9a 100644 --- a/template.yml +++ b/template.yml @@ -19,7 +19,7 @@ Resources: Properties: Description: Create CloudWatch metrics from CodePipeline events Handler: index.handlePipelineEvent - Runtime: nodejs12.x + Runtime: nodejs16.x CodeUri: Bucket: !Ref BucketName Key: !Ref CodeKey @@ -43,7 +43,7 @@ Resources: Properties: Description: Build CloudWatch dashboard from CloudWatch metrics Handler: index.generateDashboard - Runtime: nodejs12.x + Runtime: nodejs16.x CodeUri: Bucket: !Ref BucketName Key: !Ref CodeKey From 0b1271e20742b7038bdcd8d1e1a6c00ec4fdccc7 Mon Sep 17 00:00:00 2001 From: Nikhil Zadoo Date: Fri, 2 Sep 2022 12:24:51 +0200 Subject: [PATCH 2/2] Updated the codebuild steps to use node 16 --- codebuild.yml | 2 +- template-sar.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/codebuild.yml b/codebuild.yml index 05b822d..c640df9 100644 --- a/codebuild.yml +++ b/codebuild.yml @@ -67,7 +67,7 @@ Resources: - Name: STAGING_BUCKET_PREFIX Value: !Ref StagingBucketPrefix Type: LINUX_CONTAINER - Image: aws/codebuild/nodejs:12 + Image: aws/codebuild/nodejs:16 ComputeType: BUILD_GENERAL1_SMALL Name: pipeline-dashboard Description: Stage pipeline-dashboard diff --git a/template-sar.yml b/template-sar.yml index 1d964dd..aa59d40 100644 --- a/template-sar.yml +++ b/template-sar.yml @@ -11,7 +11,7 @@ Resources: Properties: Description: Create CloudWatch metrics from AWS CodePipeline events Handler: index.handlePipelineEvent - Runtime: nodejs12.x + Runtime: nodejs16.x CodeUri: s3://pipeline-dashboard-node-0811-us-east-1/2a5aeb4cc9e66058ac7fcd00bd33da64 Events: PipelineEventRule: @@ -33,7 +33,7 @@ Resources: Properties: Description: Build CloudWatch dashboard from CloudWatch metrics Handler: index.generateDashboard - Runtime: nodejs12.x + Runtime: nodejs16.x CodeUri: s3://pipeline-dashboard-node-0811-us-east-1/2a5aeb4cc9e66058ac7fcd00bd33da64 Timeout: 60 Events: