Skip to content

Commit 2c1c0eb

Browse files
authored
2 parents c506d3b + 64dea7c commit 2c1c0eb

File tree

132 files changed

+3878
-632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+3878
-632
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [1.94.0](https://github.com/aws/aws-cdk/compare/v1.93.0...v1.94.0) (2021-03-16)
6+
7+
8+
### ⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
9+
10+
* **appmesh:** Backend, backend default and Virtual Service client policies structures are being altered
11+
* **appmesh**: you must use the backend default interface to define backend defaults in `VirtualGateway`.
12+
The property name also changed from `backendsDefaultClientPolicy` to `backendDefaults`
13+
* **appmesh**: you must use the backend default interface to define backend defaults in `VirtualNode`,
14+
(the property name also changed from `backendsDefaultClientPolicy` to `backendDefaults`),
15+
and the `Backend` class to define a backend
16+
* **appmesh**: you can no longer attach a client policy to a `VirtualService`
17+
18+
### Features
19+
20+
* **appmesh:** add missing route match features ([#13350](https://github.com/aws/aws-cdk/issues/13350)) ([b71efd9](https://github.com/aws/aws-cdk/commit/b71efd9d12843ab4b495d53e565cec97d60748f3)), closes [#11645](https://github.com/aws/aws-cdk/issues/11645)
21+
* **aws-elasticloadbalancingv2:** add protocol version for ALB TargetGroups ([#13570](https://github.com/aws/aws-cdk/issues/13570)) ([165a3d8](https://github.com/aws/aws-cdk/commit/165a3d877b7ab23f29e42e1e74ee7c5cb35b7f24)), closes [#12869](https://github.com/aws/aws-cdk/issues/12869)
22+
* **ecs-patterns:** Add ECS deployment circuit breaker support to higher-level constructs ([#12719](https://github.com/aws/aws-cdk/issues/12719)) ([e80a98a](https://github.com/aws/aws-cdk/commit/e80a98aa8839e9b9b89701158d82b991e9ebaa65)), closes [#12534](https://github.com/aws/aws-cdk/issues/12534) [#12360](https://github.com/aws/aws-cdk/issues/12360)
23+
24+
25+
### Bug Fixes
26+
27+
* **appmesh:** Move Client Policy from Virtual Service to backend structure ([#12943](https://github.com/aws/aws-cdk/issues/12943)) ([d3f4284](https://github.com/aws/aws-cdk/commit/d3f428435976c55ca950279cfc841665fd504370)), closes [#11996](https://github.com/aws/aws-cdk/issues/11996)
28+
* **autoscaling:** AutoScaling on percentile metrics doesn't work ([#13366](https://github.com/aws/aws-cdk/issues/13366)) ([46114bb](https://github.com/aws/aws-cdk/commit/46114bb1f4702019a8873b9162d0a9f10763bc61)), closes [#13144](https://github.com/aws/aws-cdk/issues/13144)
29+
* **cloudwatch:** cannot create Alarms from labeled metrics that start with a digit ([#13560](https://github.com/aws/aws-cdk/issues/13560)) ([278029f](https://github.com/aws/aws-cdk/commit/278029f25b41d956091835364e5a8de91429712c)), closes [#13434](https://github.com/aws/aws-cdk/issues/13434)
30+
* use NodeJS 14 for all packaged custom resources ([#13488](https://github.com/aws/aws-cdk/issues/13488)) ([20a2820](https://github.com/aws/aws-cdk/commit/20a2820ee4d022663fcd0928fbc0f61153ae953f)), closes [#13534](https://github.com/aws/aws-cdk/issues/13534) [#13484](https://github.com/aws/aws-cdk/issues/13484)
31+
* **ec2:** Security Groups support all protocols ([#13593](https://github.com/aws/aws-cdk/issues/13593)) ([8c6b3eb](https://github.com/aws/aws-cdk/commit/8c6b3ebea464e27f68ffcab32857d8baec29c413)), closes [#13403](https://github.com/aws/aws-cdk/issues/13403)
32+
* **lambda:** fromDockerBuild output is located under /asset ([#13539](https://github.com/aws/aws-cdk/issues/13539)) ([77449f6](https://github.com/aws/aws-cdk/commit/77449f61e7075fef1240fc52becb8ea60b9ea9ad)), closes [#13439](https://github.com/aws/aws-cdk/issues/13439)
33+
* **region-info:** ap-northeast-3 data not correctly registered ([#13564](https://github.com/aws/aws-cdk/issues/13564)) ([64da84b](https://github.com/aws/aws-cdk/commit/64da84be5c60bb8132551bcc27a7ca9c7effe95d)), closes [#13561](https://github.com/aws/aws-cdk/issues/13561)
34+
535
## [1.93.0](https://github.com/aws/aws-cdk/compare/v1.92.0...v1.93.0) (2021-03-11)
636

737

packages/@aws-cdk-containers/ecs-service-extensions/lib/extensions/appmesh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export class AppMeshExtension extends ServiceExtension {
347347
// Next update the app mesh config so that the local Envoy
348348
// proxy on this service knows how to route traffic to
349349
// nodes from the other service.
350-
this.virtualNode.addBackend(otherAppMesh.virtualService);
350+
this.virtualNode.addBackend(appmesh.Backend.virtualService(otherAppMesh.virtualService));
351351
}
352352

353353
private routeSpec(weightedTargets: appmesh.WeightedTarget[], serviceName: string): appmesh.RouteSpec {

packages/@aws-cdk-containers/ecs-service-extensions/test/integ.all-service-addons.expected.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,6 @@
13491349
"MeshName"
13501350
]
13511351
},
1352-
"RouteName": "name-route",
13531352
"Spec": {
13541353
"HttpRoute": {
13551354
"Action": {
@@ -1375,7 +1374,8 @@
13751374
"namevirtualrouterC00E1ACE",
13761375
"VirtualRouterName"
13771376
]
1378-
}
1377+
},
1378+
"RouteName": "name-route"
13791379
}
13801380
},
13811381
"namevirtualservice3DDDDF1E": {
@@ -2218,7 +2218,6 @@
22182218
"MeshName"
22192219
]
22202220
},
2221-
"RouteName": "greeting-route",
22222221
"Spec": {
22232222
"HttpRoute": {
22242223
"Action": {
@@ -2244,7 +2243,8 @@
22442243
"greetingvirtualrouter0F898D1A",
22452244
"VirtualRouterName"
22462245
]
2247-
}
2246+
},
2247+
"RouteName": "greeting-route"
22482248
}
22492249
},
22502250
"greetingvirtualservice60AD3AD9": {
@@ -3242,7 +3242,6 @@
32423242
"MeshName"
32433243
]
32443244
},
3245-
"RouteName": "greeter-route",
32463245
"Spec": {
32473246
"HttpRoute": {
32483247
"Action": {
@@ -3268,7 +3267,8 @@
32683267
"greetervirtualrouter193840BB",
32693268
"VirtualRouterName"
32703269
]
3271-
}
3270+
},
3271+
"RouteName": "greeter-route"
32723272
}
32733273
},
32743274
"greetervirtualservice6559950C": {

packages/@aws-cdk-containers/ecs-service-extensions/test/integ.assign-public-ip.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@
10441044
}
10451045
},
10461046
"Handler": "framework.onEvent",
1047-
"Runtime": "nodejs10.x",
1047+
"Runtime": "nodejs14.x",
10481048
"Timeout": 900
10491049
},
10501050
"DependsOn": [

packages/@aws-cdk-containers/ecs-service-extensions/test/integ.multiple-environments.expected.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,6 @@
15371537
"MeshName"
15381538
]
15391539
},
1540-
"RouteName": "name-production-route",
15411540
"Spec": {
15421541
"HttpRoute": {
15431542
"Action": {
@@ -1563,7 +1562,8 @@
15631562
"nameproductionvirtualrouter00E3366D",
15641563
"VirtualRouterName"
15651564
]
1566-
}
1565+
},
1566+
"RouteName": "name-production-route"
15671567
}
15681568
},
15691569
"nameproductionvirtualservice4D49D5F6": {
@@ -2061,7 +2061,6 @@
20612061
"MeshName"
20622062
]
20632063
},
2064-
"RouteName": "name-development-route",
20652064
"Spec": {
20662065
"HttpRoute": {
20672066
"Action": {
@@ -2087,7 +2086,8 @@
20872086
"namedevelopmentvirtualrouter0AE5105D",
20882087
"VirtualRouterName"
20892088
]
2090-
}
2089+
},
2090+
"RouteName": "name-development-route"
20912091
}
20922092
},
20932093
"namedevelopmentvirtualserviceD936E3FD": {

packages/@aws-cdk/aws-apigateway/lib/cors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface CorsOptions {
6464
* Access-Control-Allow-Methods and Access-Control-Allow-Headers headers)
6565
* can be cached.
6666
*
67-
* To disable caching altogther use `disableCache: true`.
67+
* To disable caching altogether use `disableCache: true`.
6868
*
6969
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age
7070
* @default - browser-specific (see reference)

packages/@aws-cdk/aws-apigateway/lib/gateway-response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export class ResponseType {
206206
*/
207207
public static readonly WAF_FILTERED = new ResponseType('WAF_FILTERED');
208208

209-
/** A custom response type to suppport future cases. */
209+
/** A custom response type to support future cases. */
210210
public static of(type: string): ResponseType {
211211
return new ResponseType(type.toUpperCase());
212212
}

packages/@aws-cdk/aws-apigateway/lib/resource.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ export abstract class ResourceBase extends ResourceConstruct implements IResourc
282282
// prepare responseParams
283283

284284
const integrationResponseParams: { [p: string]: string } = { };
285-
const methodReponseParams: { [p: string]: boolean } = { };
285+
const methodResponseParams: { [p: string]: boolean } = { };
286286

287287
for (const [name, value] of Object.entries(headers)) {
288288
const key = `method.response.header.${name}`;
289289
integrationResponseParams[key] = value;
290-
methodReponseParams[key] = true;
290+
methodResponseParams[key] = true;
291291
}
292292

293293
return this.addMethod('OPTIONS', new MockIntegration({
@@ -297,7 +297,7 @@ export abstract class ResourceBase extends ResourceConstruct implements IResourc
297297
],
298298
}), {
299299
methodResponses: [
300-
{ statusCode: `${statusCode}`, responseParameters: methodReponseParams },
300+
{ statusCode: `${statusCode}`, responseParameters: methodResponseParams },
301301
],
302302
});
303303

packages/@aws-cdk/aws-apigateway/lib/restapi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export interface RestApiBaseProps {
174174

175175
/**
176176
* Represents the props that all Rest APIs share.
177-
* @deprecated - superceded by `RestApiBaseProps`
177+
* @deprecated - superseded by `RestApiBaseProps`
178178
*/
179179
export interface RestApiOptions extends RestApiBaseProps, ResourceOptions {
180180
}
@@ -441,7 +441,7 @@ export abstract class RestApiBase extends Resource implements IRestApi {
441441
/**
442442
* Metric for the total number API requests in a given period.
443443
*
444-
* Default: samplecount over 5 minutes
444+
* Default: sample count over 5 minutes
445445
*/
446446
public metricCount(props?: cloudwatch.MetricOptions): cloudwatch.Metric {
447447
return this.cannedMetric(ApiGatewayMetrics.countSum, {

packages/@aws-cdk/aws-apigateway/lib/usage-plan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class UsagePlan extends Resource {
181181
public addApiKey(apiKey: IApiKey): void {
182182
const prefix = 'UsagePlanKeyResource';
183183

184-
// Postfixing apikey id only from the 2nd child, to keep physicalIds of UsagePlanKey for existing CDK apps unmodifed.
184+
// Postfixing apikey id only from the 2nd child, to keep physicalIds of UsagePlanKey for existing CDK apps unmodified.
185185
const id = this.node.tryFindChild(prefix) ? `${prefix}:${Names.nodeUniqueId(apiKey.node)}` : prefix;
186186

187187
new CfnUsagePlanKey(this, id, {

0 commit comments

Comments
 (0)