Skip to content

Commit

Permalink
Merge pull request #2307 from guardian/update-aws-cdk-2.141.0
Browse files Browse the repository at this point in the history
fix(deps): Update AWS CDK libraries to 2.141.0, and constructs to 10.3.0
  • Loading branch information
AshCorr committed May 13, 2024
2 parents 481a99d + b57a2dd commit 19779d7
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .changeset/aws-cdk-update-v2.141.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@guardian/cdk": patch
---

Update aws-cdk to 2.141.0, aws-cdk-lib to 2.141.0, constructs to 10.3.0

34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"@types/lodash.upperfirst": "^4.3.9",
"@types/node": "20.12.10",
"@types/yargs": "^17.0.32",
"aws-cdk": "2.136.1",
"aws-cdk-lib": "2.136.1",
"aws-cdk": "2.141.0",
"aws-cdk-lib": "2.141.0",
"constructs": "10.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
Expand Down Expand Up @@ -69,8 +69,8 @@
"yargs": "^17.7.2"
},
"peerDependencies": {
"aws-cdk": "2.136.1",
"aws-cdk-lib": "2.136.1",
"aws-cdk": "2.141.0",
"aws-cdk-lib": "2.141.0",
"constructs": "10.3.0"
},
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,24 @@ exports[`The GuApiGateway5xxPercentageAlarm construct should create the correct
"ReturnData": false,
},
],
"Tags": [
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 1,
"TreatMissingData": "notBreaching",
},
Expand Down
54 changes: 54 additions & 0 deletions src/constructs/cloudwatch/__snapshots__/ec2-alarms.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,24 @@ exports[`The GuAlb4xxPercentageAlarm construct should create the correct alarm r
"ReturnData": false,
},
],
"Tags": [
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 1,
"TreatMissingData": "notBreaching",
},
Expand Down Expand Up @@ -439,6 +457,24 @@ exports[`The GuAlb5xxPercentageAlarm construct should create the correct alarm r
"ReturnData": false,
},
],
"Tags": [
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 1,
"TreatMissingData": "notBreaching",
},
Expand Down Expand Up @@ -732,6 +768,24 @@ exports[`The GuUnhealthyInstancesAlarm construct should create the correct alarm
"Namespace": "AWS/ApplicationELB",
"Period": 60,
"Statistic": "Maximum",
"Tags": [
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 1,
"TreatMissingData": "notBreaching",
},
Expand Down
36 changes: 36 additions & 0 deletions src/constructs/cloudwatch/__snapshots__/lambda-alarms.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,24 @@ exports[`GuLambdaThrottlingAlarm construct should match snapshot 1`] = `
"Namespace": "AWS/Lambda",
"Period": 60,
"Statistic": "Sum",
"Tags": [
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 0,
"TreatMissingData": "notBreaching",
},
Expand Down Expand Up @@ -618,6 +636,24 @@ exports[`The GuLambdaErrorPercentageAlarm construct should create the correct al
"ReturnData": false,
},
],
"Tags": [
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 80,
"TreatMissingData": "notBreaching",
},
Expand Down
44 changes: 44 additions & 0 deletions src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,28 @@ exports[`The GuEcsTask pattern should create the correct resources with lots of
"Namespace": "AWS/States",
"Period": 3600,
"Statistic": "Sum",
"Tags": [
{
"Key": "App",
"Value": "ecs-test",
},
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 1,
"TreatMissingData": "notBreaching",
},
Expand All @@ -181,6 +203,28 @@ exports[`The GuEcsTask pattern should create the correct resources with lots of
"Namespace": "AWS/States",
"Period": 3600,
"Statistic": "Sum",
"Tags": [
{
"Key": "App",
"Value": "ecs-test",
},
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/cdk",
},
{
"Key": "Stack",
"Value": "test-stack",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
"Threshold": 1,
"TreatMissingData": "notBreaching",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ exports[`The GuFastlyKinesisLogRole construct correctly wires up the policy 1`]
"Type": "AWS::IAM::Role",
},
"testStream8BCA7523": {
"DeletionPolicy": "Retain",
"Properties": {
"RetentionPeriodHours": 24,
"ShardCount": 1,
Expand Down Expand Up @@ -161,6 +162,7 @@ exports[`The GuFastlyKinesisLogRole construct correctly wires up the policy 1`]
],
},
"Type": "AWS::Kinesis::Stream",
"UpdateReplacePolicy": "Retain",
},
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exports[`The GuKinesisLambda pattern should create the correct resources for a n
},
"Resources": {
"KinesisStream46752A3E": {
"DeletionPolicy": "Retain",
"Properties": {
"RetentionPeriodHours": 24,
"ShardCount": 1,
Expand Down Expand Up @@ -51,6 +52,7 @@ exports[`The GuKinesisLambda pattern should create the correct resources for a n
],
},
"Type": "AWS::Kinesis::Stream",
"UpdateReplacePolicy": "Retain",
},
"mylambdafunction8D341B54": {
"DependsOn": [
Expand Down
4 changes: 2 additions & 2 deletions tools/integration-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@guardian/tsconfig": "^0.2.0",
"@types/jest": "^29.1.2",
"@types/node": "20.8.7",
"aws-cdk": "2.136.1",
"aws-cdk-lib": "2.136.1",
"aws-cdk": "2.141.0",
"aws-cdk-lib": "2.141.0",
"constructs": "10.3.0",
"eslint": "^8.8.0",
"eslint-plugin-custom-rules": "file:../eslint",
Expand Down

0 comments on commit 19779d7

Please sign in to comment.