Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps)!: Update aws-cdk libraries to 1.137.0 #997

Merged
merged 7 commits into from
Dec 23, 2021
Merged

chore(deps)!: Update aws-cdk libraries to 1.137.0 #997

merged 7 commits into from
Dec 23, 2021

Conversation

akash1810
Copy link
Member

@akash1810 akash1810 commented Dec 22, 2021

What does this change?

Moving from 1.132.0 to 1.137 brings a few new features and bug fixes, most notably tag support added to AWS::Logs::LogGroup resources!

There are a few snapshot updates to reflect these new features and bug fixes. See the individual commits for more information.

We should update our Lambda constructs to create an explicit LogGroup to take advantage of tag support. See also guardian/cloudwatch-logs-management#19.

BREAKING CHANGE: Update aws-cdk libraries to 1.137.0

How to test

See CI pass.

Note: CI is now witnessing a lot of console.logs, this gets fixed in aws/aws-cdk#18136.

How can we measure success?

Keeping dependencies up to date (and unblocking #995).

Have we considered potential risks?

n/a

Checklist

  • I have listed any breaking changes, along with a migration path 1
  • I have updated the documentation as required for the described changes 2

Footnotes

  1. Consider whether this is something that will mean changes to projects that have already been migrated, or to the CDK CLI tool. If changes are required, consider adding a checklist here and/or linking to related PRs.

  2. If you are adding a new construct or pattern, has new documentation been added? If you are amending defaults or changing behaviour, are the existing docs still valid?

@akash1810 akash1810 requested a review from a team December 22, 2021 23:04
Comment on lines +74 to +76
metric: props.targetGroup
.metricUnhealthyHostCount()
.with({ period: Duration.minutes(5), statistic: Statistic.MAXIMUM }),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This resolves a deprecation warning where period and statistic should now be declared against the metric, rather than a top level prop.

Comment on lines +5 to +98
"Mappings": Object {
"ServiceprincipalMap": Object {
"af-south-1": Object {
"states": "states.af-south-1.amazonaws.com",
},
"ap-east-1": Object {
"states": "states.ap-east-1.amazonaws.com",
},
"ap-northeast-1": Object {
"states": "states.ap-northeast-1.amazonaws.com",
},
"ap-northeast-2": Object {
"states": "states.ap-northeast-2.amazonaws.com",
},
"ap-northeast-3": Object {
"states": "states.ap-northeast-3.amazonaws.com",
},
"ap-south-1": Object {
"states": "states.ap-south-1.amazonaws.com",
},
"ap-southeast-1": Object {
"states": "states.ap-southeast-1.amazonaws.com",
},
"ap-southeast-2": Object {
"states": "states.ap-southeast-2.amazonaws.com",
},
"ap-southeast-3": Object {
"states": "states.ap-southeast-3.amazonaws.com",
},
"ca-central-1": Object {
"states": "states.ca-central-1.amazonaws.com",
},
"cn-north-1": Object {
"states": "states.cn-north-1.amazonaws.com",
},
"cn-northwest-1": Object {
"states": "states.cn-northwest-1.amazonaws.com",
},
"eu-central-1": Object {
"states": "states.eu-central-1.amazonaws.com",
},
"eu-north-1": Object {
"states": "states.eu-north-1.amazonaws.com",
},
"eu-south-1": Object {
"states": "states.eu-south-1.amazonaws.com",
},
"eu-south-2": Object {
"states": "states.eu-south-2.amazonaws.com",
},
"eu-west-1": Object {
"states": "states.eu-west-1.amazonaws.com",
},
"eu-west-2": Object {
"states": "states.eu-west-2.amazonaws.com",
},
"eu-west-3": Object {
"states": "states.eu-west-3.amazonaws.com",
},
"me-south-1": Object {
"states": "states.me-south-1.amazonaws.com",
},
"sa-east-1": Object {
"states": "states.sa-east-1.amazonaws.com",
},
"us-east-1": Object {
"states": "states.us-east-1.amazonaws.com",
},
"us-east-2": Object {
"states": "states.us-east-2.amazonaws.com",
},
"us-gov-east-1": Object {
"states": "states.us-gov-east-1.amazonaws.com",
},
"us-gov-west-1": Object {
"states": "states.us-gov-west-1.amazonaws.com",
},
"us-iso-east-1": Object {
"states": "states.amazonaws.com",
},
"us-iso-west-1": Object {
"states": "states.amazonaws.com",
},
"us-isob-east-1": Object {
"states": "states.amazonaws.com",
},
"us-west-1": Object {
"states": "states.us-west-1.amazonaws.com",
},
"us-west-2": Object {
"states": "states.us-west-2.amazonaws.com",
},
},
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +743 to +766
"Tags": Array [
Object {
"Key": "App",
"Value": "ecs-test",
},
Object {
"Key": "gu:cdk:version",
"Value": "TEST",
},
Object {
"Key": "gu:repo",
"Value": "guardian/cdk",
},
Object {
"Key": "Stack",
"Value": "test-stack",
},
Object {
"Key": "Stage",
"Value": Object {
"Ref": "Stage",
},
},
],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CloudWatch Logs support tags now! 🎉

@@ -164,7 +164,7 @@ describe("The GuHttpsClassicLoadBalancer class", () => {
...app,
vpc,
listener: {
sslCertificateId: "certificateId",
sslCertificateArn: "certificateId",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sslCertificateId is deprecated in favour of sslCertificateArn.

Comment on lines +517 to +519
"DependsOn": Array [
"lambdaapi2AccountFAF30ECB",
],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +221 to +222
"kinesis:DescribeStream",
"kinesis:ListStreams",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version follows v49.0.0 of the CloudFormation Resource specification,
which sees tag support added to `AWS::Logs::LogGroup` resources.

It also includes a fix for Kinesis triggered Lambdas,
specifically fixing the permissions needed by the Lambda on the Kinesis stream.

See:
  - https://github.com/aws/aws-cdk/releases/tag/v1.133.0
  - https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/cfnspec/CHANGELOG.md#cloudformation-resource-specification-v4900
  - aws/aws-cdk#17358

BREAKING CHANGE: Update aws-cdk libraries to 1.133.0
BREAKING CHANGE: Update aws-cdk libraries to 1.134.0
BREAKING CHANGE: Update aws-cdk libraries to 1.135.0
This version follows v49.0.0 of the CloudFormation Resource specification,
which sees `ShardCount` on `AWS::Kinesis::Stream` to be optional (required = false).

This manifests in the properties in the snapshot being alphabetised,
i.e. this is a a no-op for a `GuKinesisStream`.

See:
  - https://github.com/aws/aws-cdk/releases/tag/v1.136.0
  - https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/cfnspec/CHANGELOG.md#cloudformation-resource-specification-v5100

BREAKING CHANGE: Update aws-cdk libraries to 1.136.0
This brings in two fixes which is reflected in the snapshot changes.

See:
  - aws/aws-cdk#17984
  - aws/aws-cdk#18011

BREAKING CHANGE: Update aws-cdk libraries to 1.137.0
@akash1810 akash1810 enabled auto-merge December 23, 2021 11:08
@akash1810 akash1810 merged commit 4358c6a into main Dec 23, 2021
@akash1810 akash1810 deleted the aa-bump branch December 23, 2021 11:11
@github-actions
Copy link
Contributor

🎉 This PR is included in version 32.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants