-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
metric: props.targetGroup | ||
.metricUnhealthyHostCount() | ||
.with({ period: Duration.minutes(5), statistic: Statistic.MAXIMUM }), |
There was a problem hiding this comment.
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.
"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", | ||
}, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From aws/aws-cdk#17984.
"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", | ||
}, | ||
}, | ||
], |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
.
"DependsOn": Array [ | ||
"lambdaapi2AccountFAF30ECB", | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From aws/aws-cdk#18011.
"kinesis:DescribeStream", | ||
"kinesis:ListStreams", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From aws/aws-cdk#17358.
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
🎉 This PR is included in version 32.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.log
s, 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
Footnotes
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. ↩
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? ↩