Skip to content

Commit aa9bbe6

Browse files
authored
Merge branch 'main' into validate_healthcheck
2 parents 7c592f3 + bae6554 commit aa9bbe6

File tree

283 files changed

+13025
-6814
lines changed

Some content is hidden

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

283 files changed

+13025
-6814
lines changed

.github/workflows/github-merit-badger.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@ on:
66

77
jobs:
88
call-action:
9-
if: ${{ github.actor != 'dependabot[bot]' }} && ${{ github.actor != 'mergify[bot]' }}
109
runs-on: ubuntu-latest
1110
permissions:
1211
pull-requests: write
1312
steps:
14-
- uses: kaizencc/github-merit-badger@main
13+
- uses: aws-github-ops/github-merit-badger@main
1514
id: merit-badger
1615
with:
1716
github-token: ${{ secrets.GITHUB_TOKEN }}
1817
badges: '[beginning-contributor,repeat-contributor,valued-contributor,admired-contributor,star-contributor,distinguished-contributor]'
1918
thresholds: '[0,3,6,13,25,50]'
2019
badge-type: 'achievement'
21-
ignore-usernames: '[RomainMuller,rix0rrr,Jerry-AWS,MrArnoldPalmer,iliapolo,otaviomacedo,madeline-k,kaizencc,comcalvi,corymhall,peterwoodworth,ryparker,TheRealAmazonKendra,vinayak-kukreja,Naumel,mrgrain,aws-cdk-automation]'
20+
ignore-usernames: '[RomainMuller,rix0rrr,Jerry-AWS,MrArnoldPalmer,iliapolo,otaviomacedo,madeline-k,kaizencc,comcalvi,corymhall,peterwoodworth,ryparker,TheRealAmazonKendra,vinayak-kukreja,Naumel,mrgrain,pahud,cgarvis,aws-cdk-automation,dependabot[bot],mergify[bot]]'

.github/workflows/pr-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
- name: Validate
3131
uses: ./tools/@aws-cdk/prlint
3232
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.PROJEN_GITHUB_TOKEN }}
3434
REPO_ROOT: ${{ github.workspace }}

.mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pull_request_rules:
1010
label:
1111
add: [ contribution/core ]
1212
conditions:
13-
- author~=^(RomainMuller|rix0rrr|Jerry-AWS|MrArnoldPalmer|iliapolo|uttarasridhar|otaviomacedo|madeline-k|kaizencc|comcalvi|corymhall|peterwoodworth|ryparker|TheRealAmazonKendra|yuth|vinayak-kukreja|Naumel|mrgrain)$
13+
- author~=^(RomainMuller|rix0rrr|Jerry-AWS|MrArnoldPalmer|iliapolo|uttarasridhar|otaviomacedo|madeline-k|kaizencc|comcalvi|corymhall|peterwoodworth|ryparker|TheRealAmazonKendra|yuth|vinayak-kukreja|Naumel|mrgrain|pahud|cgarvis)$
1414
- -label~="contribution/core"
1515
- name: automatic merge
1616
actions:

CHANGELOG.v2.alpha.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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+
## [2.44.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.43.1-alpha.0...v2.44.0-alpha.0) (2022-09-28)
6+
7+
8+
### Features
9+
10+
* **integ-tests:** chain assertion api calls ([#22196](https://github.com/aws/aws-cdk/issues/22196)) ([530e07b](https://github.com/aws/aws-cdk/commit/530e07bdc87ab94bbd5ed28debac98400a8152cc))
11+
* **neptune:** introduce metric method to cluster and instance ([#21995](https://github.com/aws/aws-cdk/issues/21995)) ([02ed837](https://github.com/aws/aws-cdk/commit/02ed8371276d504ba9fe09687d45409ad7cca288)), closes [#20248](https://github.com/aws/aws-cdk/issues/20248)
12+
513
## [2.43.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.43.0-alpha.0...v2.43.1-alpha.0) (2022-09-23)
614

715
## [2.43.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.42.1-alpha.0...v2.43.0-alpha.0) (2022-09-21)

CHANGELOG.v2.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
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+
## [2.44.0](https://github.com/aws/aws-cdk/compare/v2.43.1...v2.44.0) (2022-09-28)
6+
7+
8+
### Features
9+
10+
* **assets:** support drop-in docker replacements by setting `$CDK_DOCKER` ([#21838](https://github.com/aws/aws-cdk/issues/21838)) ([d52310e](https://github.com/aws/aws-cdk/commit/d52310ea2104dd1ed13761944d078ffce46a299f)), closes [40aws-cdk/core/lib/bundling.ts#L523](https://github.com/40aws-cdk/core/lib/bundling.ts/issues/L523) [#21836](https://github.com/aws/aws-cdk/issues/21836)
11+
* **backup:** add copy actions to backup plan rules ([#22244](https://github.com/aws/aws-cdk/issues/22244)) ([d87a651](https://github.com/aws/aws-cdk/commit/d87a651608d23f3bfc3c178093d92b5bdda71084)), closes [#22173](https://github.com/aws/aws-cdk/issues/22173)
12+
* **cfnspec:** cloudformation spec v89.0.0 ([#22232](https://github.com/aws/aws-cdk/issues/22232)) ([953d684](https://github.com/aws/aws-cdk/commit/953d6841fa3ed43258d0454e245cebcab6323e0d))
13+
* **cli:** `cdk deploy --method=direct` is faster ([#22079](https://github.com/aws/aws-cdk/issues/22079)) ([dd6ead4](https://github.com/aws/aws-cdk/commit/dd6ead447a80cdec3379a3ced2e04b7d15f9c55d))
14+
* **cloudwatch:** add gauge widget ([#22213](https://github.com/aws/aws-cdk/issues/22213)) ([d9f0e80](https://github.com/aws/aws-cdk/commit/d9f0e809d583d23cb83b4e2855574675a669c33f)), closes [#22136](https://github.com/aws/aws-cdk/issues/22136)
15+
* **core:** 'postCliContext' property allows context that cannot be overridden by the CLI ([#21743](https://github.com/aws/aws-cdk/issues/21743)) ([a618096](https://github.com/aws/aws-cdk/commit/a618096432a27a808a0352ea186fe1e4db2911c4))
16+
* **dynamodb:** Changes how metricForOperation methods are used ([#22097](https://github.com/aws/aws-cdk/issues/22097)) ([fcb311d](https://github.com/aws/aws-cdk/commit/fcb311d615422b76f18b6be60dd466b315fcd6b0)), closes [#21963](https://github.com/aws/aws-cdk/issues/21963)
17+
* **logs:** add dimensions to metric filter ([#21654](https://github.com/aws/aws-cdk/issues/21654)) ([f834a45](https://github.com/aws/aws-cdk/commit/f834a4537643b32131076111be0693c6f8f96b24)), closes [/github.com/aws/aws-cdk/issues/16999#issuecomment-1005172655](https://github.com/aws//github.com/aws/aws-cdk/issues/16999/issues/issuecomment-1005172655) [#16999](https://github.com/aws/aws-cdk/issues/16999)
18+
* **pipelines:** allow disabling use of change sets ([#21619](https://github.com/aws/aws-cdk/issues/21619)) ([05723e7](https://github.com/aws/aws-cdk/commit/05723e74cc0e760f570c36ec02a70e8936287814)), closes [#20827](https://github.com/aws/aws-cdk/issues/20827)
19+
* **s3-deployment:** extract flag to disable automatic unzipping ([#21805](https://github.com/aws/aws-cdk/issues/21805)) ([91898b5](https://github.com/aws/aws-cdk/commit/91898b51573c0bfd0f26ae7610feb6a400bc8159)), closes [#8065](https://github.com/aws/aws-cdk/issues/8065)
20+
21+
22+
### Bug Fixes
23+
24+
* **aws-elasticloadbalancingv2:** Validation for interval and timeout of application-target-group ([#22225](https://github.com/aws/aws-cdk/issues/22225)) ([6128e39](https://github.com/aws/aws-cdk/commit/6128e3908f4f6b6a1db66ebf7f77b6c966d1f9e7))
25+
* **cli:** SSO credentials do not work when using a proxy ([#22115](https://github.com/aws/aws-cdk/issues/22115)) ([c425e8c](https://github.com/aws/aws-cdk/commit/c425e8ca1a3d296eb6a7fd7e005d07c1eadd16aa)), closes [#21328](https://github.com/aws/aws-cdk/issues/21328)
26+
* **elbv2:** Use correct format for parsing imported target group ARNs ([#22153](https://github.com/aws/aws-cdk/issues/22153)) ([4704d4c](https://github.com/aws/aws-cdk/commit/4704d4c4ac065634dbada3732193a6753369dd12))
27+
* **rds:** changing engine versions would fail to update on DBInstances that were part of a DBCluster ([#22185](https://github.com/aws/aws-cdk/issues/22185)) ([c070ace](https://github.com/aws/aws-cdk/commit/c070acea1b12ec4f73c7d2087c5408d7e38a90a3)), closes [#21758](https://github.com/aws/aws-cdk/issues/21758) [#22180](https://github.com/aws/aws-cdk/issues/22180)
28+
* cannot use values that return an instance of a deprecated class for non TS / JS language ([#22204](https://github.com/aws/aws-cdk/issues/22204)) ([4cad2cf](https://github.com/aws/aws-cdk/commit/4cad2cf7e1ca41dedae6adc8866792e5f71b2123))
29+
530
## [2.43.1](https://github.com/aws/aws-cdk/compare/v2.43.0...v2.43.1) (2022-09-23)
631

732

packages/@aws-cdk/aws-amplify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@aws-cdk/cfn2ts": "0.0.0",
8989
"@aws-cdk/pkglint": "0.0.0",
9090
"@types/jest": "^27.5.2",
91-
"aws-sdk": "^2.848.0"
91+
"aws-sdk": "^2.1211.0"
9292
},
9393
"dependencies": {
9494
"@aws-cdk/aws-codebuild": "0.0.0",

packages/@aws-cdk/aws-apigateway/README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,8 @@ domain.addBasePathMapping(api1, { basePath: 'go-to-api1' });
950950
domain.addBasePathMapping(api2, { basePath: 'boom' });
951951
```
952952

953-
You can specify the API `Stage` to which this base path URL will map to. By default, this will be the
954-
`deploymentStage` of the `RestApi`.
953+
By default, the base path URL will map to the `deploymentStage` of the `RestApi`.
954+
You can specify a different API `Stage` to which the base path URL will map to.
955955

956956
```ts
957957
declare const domain: apigateway.DomainName;
@@ -966,6 +966,19 @@ const betaStage = new apigateway.Stage(this, 'beta-stage', {
966966
domain.addBasePathMapping(restapi, { basePath: 'api/beta', stage: betaStage });
967967
```
968968

969+
It is possible to create a base path mapping without associating it with a
970+
stage by using the `attachToStage` property. When set to `false`, the stage must be
971+
included in the URL when invoking the API. For example,
972+
<https://example.com/myapi/prod> will invoke the stage named `prod` from the
973+
`myapi` base path mapping.
974+
975+
```ts
976+
declare const domain: apigateway.DomainName;
977+
declare const api: apigateway.RestApi;
978+
979+
domain.addBasePathMapping(api, { basePath: 'myapi', attachToStage: false });
980+
```
981+
969982
If you don't specify `basePath`, all URLs under this domain will be mapped
970983
to the API, and you won't be able to map another API to the same domain:
971984

@@ -978,6 +991,23 @@ domain.addBasePathMapping(api);
978991
This can also be achieved through the `mapping` configuration when defining the
979992
domain as demonstrated above.
980993

994+
Base path mappings can also be created with the `BasePathMapping` resource.
995+
996+
```ts
997+
declare const api: apigateway.RestApi;
998+
999+
const domainName = apigateway.DomainName.fromDomainNameAttributes(this, 'DomainName', {
1000+
domainName: 'domainName',
1001+
domainNameAliasHostedZoneId: 'domainNameAliasHostedZoneId',
1002+
domainNameAliasTarget: 'domainNameAliasTarget',
1003+
});
1004+
1005+
new apigateway.BasePathMapping(this, 'BasePathMapping', {
1006+
domainName: domainName,
1007+
restApi: api,
1008+
});
1009+
```
1010+
9811011
If you wish to setup this domain with an Amazon Route53 alias, use the `targets.ApiGatewayDomain`:
9821012

9831013
```ts

packages/@aws-cdk/aws-apigateway/lib/base-path-mapping.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ export interface BasePathMappingOptions {
2222
* @default - map to deploymentStage of restApi otherwise stage needs to pass in URL
2323
*/
2424
readonly stage?: Stage;
25+
26+
/**
27+
* Whether to attach the base path mapping to a stage.
28+
* Use this property to create a base path mapping without attaching it to the Rest API default stage.
29+
* This property is ignored if `stage` is provided.
30+
* @default - true
31+
*/
32+
readonly attachToStage?: boolean;
2533
}
2634

2735
export interface BasePathMappingProps extends BasePathMappingOptions {
@@ -53,17 +61,20 @@ export class BasePathMapping extends Resource {
5361
}
5462
}
5563

64+
const attachToStage = props.attachToStage ?? true;
65+
5666
// if restApi is an owned API and it has a deployment stage, map all requests
5767
// to that stage. otherwise, the stage will have to be specified in the URL.
58-
const stage = props.stage ?? (props.restApi instanceof RestApiBase
68+
// if props.attachToStage is false, then do not attach to the stage.
69+
const stage = props.stage ?? (props.restApi instanceof RestApiBase && attachToStage
5970
? props.restApi.deploymentStage
6071
: undefined);
6172

6273
new CfnBasePathMapping(this, 'Resource', {
6374
basePath: props.basePath,
6475
domainName: props.domainName.domainName,
6576
restApiId: props.restApi.restApiId,
66-
stage: stage && stage.stageName,
77+
stage: stage?.stageName,
6778
});
6879
}
6980
}

packages/@aws-cdk/aws-apigateway/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"@aws-cdk/assertions": "0.0.0",
8585
"@aws-cdk/cdk-build-tools": "0.0.0",
8686
"@aws-cdk/integ-runner": "0.0.0",
87-
"@aws-cdk/integ-tests": "0.0.0",
8887
"@aws-cdk/cfn2ts": "0.0.0",
8988
"@aws-cdk/pkglint": "0.0.0",
9089
"@types/jest": "^27.5.2"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "21.0.0",
3+
"files": {
4+
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5+
"source": {
6+
"path": "basepathmappingDefaultTestDeployAssertDA82B6F0.template.json",
7+
"packaging": "file"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
13+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14+
}
15+
}
16+
}
17+
},
18+
"dockerImages": {}
19+
}

0 commit comments

Comments
 (0)