diff --git a/test/facade/MonitoringAspect.test.ts b/test/facade/MonitoringAspect.test.ts index 367389ca..0310e01e 100644 --- a/test/facade/MonitoringAspect.test.ts +++ b/test/facade/MonitoringAspect.test.ts @@ -156,7 +156,7 @@ describe("MonitoringAspect", () => { ec2.InstanceClass.M4, ec2.InstanceSize.LARGE, ), - machineImage: ec2.MachineImage.latestAmazonLinux(), + machineImage: ec2.MachineImage.latestAmazonLinux2023(), minCapacity: 1, maxCapacity: 10, desiredCapacity: 5, @@ -271,7 +271,7 @@ describe("MonitoringAspect", () => { ec2.InstanceClass.M4, ec2.InstanceSize.LARGE, ), - machineImage: ec2.MachineImage.latestAmazonLinux(), + machineImage: ec2.MachineImage.latestAmazonLinux2023(), }); // WHEN @@ -465,7 +465,7 @@ describe("MonitoringAspect", () => { new redshift.Cluster(stack, "DummyCluster", { masterUser: { masterUsername: "admin", - masterPassword: SecretValue.plainText("password"), + masterPassword: SecretValue.unsafePlainText("password"), }, vpc, }); diff --git a/test/facade/__snapshots__/MonitoringAspect.test.ts.snap b/test/facade/__snapshots__/MonitoringAspect.test.ts.snap index a7cf64ed..af1568f0 100644 --- a/test/facade/__snapshots__/MonitoringAspect.test.ts.snap +++ b/test/facade/__snapshots__/MonitoringAspect.test.ts.snap @@ -899,8 +899,8 @@ Object { "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, - "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter": Object { - "Default": "/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-gp2", + "SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter": Object { + "Default": "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64", "Type": "AWS::SSM::Parameter::Value", }, }, @@ -1001,7 +1001,7 @@ Object { "Ref": "ASGInstanceProfile0A2834D7", }, "ImageId": Object { - "Ref": "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter", + "Ref": "SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter", }, "InstanceType": "m4.large", "SecurityGroups": Array [ @@ -3870,8 +3870,8 @@ Object { "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, - "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter": Object { - "Default": "/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-gp2", + "SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter": Object { + "Default": "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64", "Type": "AWS::SSM::Parameter::Value", }, }, @@ -3956,7 +3956,7 @@ Object { "Ref": "DummyInstanceInstanceProfile117AEDED", }, "ImageId": Object { - "Ref": "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter", + "Ref": "SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter", }, "InstanceType": "m4.large", "SecurityGroupIds": Array [ diff --git a/test/monitoring/aws-ec2/AutoScalingGroupMonitoring.test.ts b/test/monitoring/aws-ec2/AutoScalingGroupMonitoring.test.ts index 307f42b0..8a73e2ab 100644 --- a/test/monitoring/aws-ec2/AutoScalingGroupMonitoring.test.ts +++ b/test/monitoring/aws-ec2/AutoScalingGroupMonitoring.test.ts @@ -24,7 +24,7 @@ test("snapshot test", () => { autoScalingGroupName: "DummyASG", vpc, instanceType: InstanceType.of(InstanceClass.M4, InstanceSize.LARGE), - machineImage: MachineImage.latestAmazonLinux(), + machineImage: MachineImage.latestAmazonLinux2023(), minCapacity: 1, maxCapacity: 10, desiredCapacity: 5, diff --git a/test/monitoring/aws-ec2/__snapshots__/AutoScalingGroupMonitoring.test.ts.snap b/test/monitoring/aws-ec2/__snapshots__/AutoScalingGroupMonitoring.test.ts.snap index fa083b6b..7bb0e032 100644 --- a/test/monitoring/aws-ec2/__snapshots__/AutoScalingGroupMonitoring.test.ts.snap +++ b/test/monitoring/aws-ec2/__snapshots__/AutoScalingGroupMonitoring.test.ts.snap @@ -8,8 +8,8 @@ Object { "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, - "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter": Object { - "Default": "/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-gp2", + "SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter": Object { + "Default": "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64", "Type": "AWS::SSM::Parameter::Value", }, }, @@ -110,7 +110,7 @@ Object { "Ref": "ASGInstanceProfile0A2834D7", }, "ImageId": Object { - "Ref": "SsmParameterValueawsserviceamiamazonlinuxlatestamznamihvmx8664gp2C96584B6F00A464EAD1953AFF4B05118Parameter", + "Ref": "SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter", }, "InstanceType": "m4.large", "SecurityGroups": Array [ diff --git a/test/monitoring/aws-lambda/LambdaFunctionMonitoring.test.ts b/test/monitoring/aws-lambda/LambdaFunctionMonitoring.test.ts index 0f773337..bb61c9ec 100644 --- a/test/monitoring/aws-lambda/LambdaFunctionMonitoring.test.ts +++ b/test/monitoring/aws-lambda/LambdaFunctionMonitoring.test.ts @@ -209,7 +209,7 @@ test("snapshot test: all alarms", () => { lambdaInsightsEnabled: true, }); - const lambdaFunctionAlias = lambdaFunction.currentVersion.addAlias("live", { + const lambdaFunctionAlias = lambdaFunction.addAlias("live", { provisionedConcurrentExecutions: 1, }); diff --git a/test/monitoring/aws-lambda/__snapshots__/LambdaFunctionMonitoring.test.ts.snap b/test/monitoring/aws-lambda/__snapshots__/LambdaFunctionMonitoring.test.ts.snap index 80e2a35d..42b366b3 100644 --- a/test/monitoring/aws-lambda/__snapshots__/LambdaFunctionMonitoring.test.ts.snap +++ b/test/monitoring/aws-lambda/__snapshots__/LambdaFunctionMonitoring.test.ts.snap @@ -1007,15 +1007,7 @@ Object { }, "Type": "AWS::Lambda::Function", }, - "FunctionCurrentVersion4E2B22612881a8e13ea008f06ac95a40e1387c5c": Object { - "Properties": Object { - "FunctionName": Object { - "Ref": "Function76856677", - }, - }, - "Type": "AWS::Lambda::Version", - }, - "FunctionCurrentVersionAliaslive2D187DC4": Object { + "FunctionAliasliveD531BB47": Object { "Properties": Object { "FunctionName": Object { "Ref": "Function76856677", @@ -1033,6 +1025,14 @@ Object { }, "Type": "AWS::Lambda::Alias", }, + "FunctionCurrentVersion4E2B22612881a8e13ea008f06ac95a40e1387c5c": Object { + "Properties": Object { + "FunctionName": Object { + "Ref": "Function76856677", + }, + }, + "Type": "AWS::Lambda::Version", + }, "FunctionServiceRole675BB04A": Object { "Properties": Object { "AssumeRolePolicyDocument": Object { diff --git a/test/monitoring/aws-rds/AuroraClusterMonitoring.test.ts b/test/monitoring/aws-rds/AuroraClusterMonitoring.test.ts index 5919da74..c9291b8c 100644 --- a/test/monitoring/aws-rds/AuroraClusterMonitoring.test.ts +++ b/test/monitoring/aws-rds/AuroraClusterMonitoring.test.ts @@ -40,7 +40,7 @@ test("RDS passed into Aurora Cluster", () => { }); const rdsCluster = new DatabaseCluster(scope, "DummyRdsCluster", { engine: DatabaseClusterEngine.auroraMysql({ - version: AuroraMysqlEngineVersion.VER_2_07_5, + version: AuroraMysqlEngineVersion.VER_2_07_10, }), instanceProps: { instanceType: new InstanceType("t3.small"),