-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remodel the aws-cdk repo to support v2 development only (#24376)
Restructures the repository to reflect the current state of package publishing. Combines all of the stable packages within @aws-cdk/* namespace into aws-cdk-lib, and separates the unstable portions of the alpha modules into their own packages depending on `aws-cdk-lib` for their L1s. Changes how code generation works to run during the build of `aws-cdk-lib` and new cloudformation resources are added automatically when the spec is updated. Removed all of the integration tests and put them into their own package to avoid cyclic dependencies. Integ tests for alpha packages remain with their package source. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
1 parent
5003cad
commit a2c633f
Showing
14,321 changed files
with
263,845 additions
and
345,706 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: 0.2 | ||
|
||
env: | ||
secrets-manager: | ||
TOKEN: $TOKEN_SECRET_ARN | ||
variables: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
|
||
phases: | ||
install: | ||
commands: | ||
# CodeBuild always runs as root, allow npm to operate as such | ||
- npm config set unsafe-perm true | ||
- mkdir ${HOME}/aws-cdk && cd ${HOME}/aws-cdk | ||
# Configure git and git credentials | ||
- git config --global user.email "${COMMIT_EMAIL}" | ||
- git config --global user.name "${COMMIT_USERNAME}" | ||
- echo "Retrieving gh token from secretsmanager" | ||
- git clone https://$TOKEN@github.com/aws/aws-cdk -b feat/repo-restructure . | ||
- git checkout ${CODEBUILD_RESOLVED_SOURCE_VERSION} | ||
# Install yarn if it wasn't already present in the image | ||
- yarn --version || npm -g install yarn | ||
- yarn install --frozen-lockfile | ||
- /sbin/sysctl -w vm.max_map_count=2251954 | ||
build: | ||
commands: | ||
- cd ${HOME}/aws-cdk | ||
- npx lerna run build --scope @aws-cdk/remodel --include-dependencies | ||
- npx remodel ${PWD} --tmp-dir ${HOME}/remodel --no-clean --dry-run | ||
post_build: | ||
commands: | ||
- cd ${HOME}/remodel | ||
- git add -A | ||
- git commit -m "Execute remodel" | ||
- git remote add aws-cdk https://$TOKEN@github.com/aws/aws-cdk | ||
- git fetch aws-cdk | ||
- git push aws-cdk +feat/repo-restructure:feat/remodel | ||
artifacts: | ||
files: | ||
- "**/*" | ||
base-directory: ${HOME}/remodel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const baseConfig = require('../../../tools/@aws-cdk/cdk-build-tools/config/eslintrc'); | ||
baseConfig.parserOptions.project = __dirname + '/tsconfig.json'; | ||
module.exports = { | ||
...baseConfig, | ||
ignorePatterns: [ | ||
...baseConfig.ignorePatterns, | ||
'**/*.snapshot/**/*' | ||
], | ||
rules: { | ||
...baseConfig.rules, | ||
'import/order': 'off', | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
.LAST_BUILD | ||
*.snk | ||
junit.xml | ||
!.eslintrc.js | ||
.nyc_output | ||
coverage | ||
nyc.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
.LAST_BUILD | ||
*.snk | ||
junit.xml | ||
.eslintrc.js | ||
# exclude cdk artifacts | ||
**/cdk.out |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
AWS Cloud Development Kit (AWS CDK) | ||
Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
Third party attributions of this package can be found in the THIRD_PARTY_LICENSES file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"name": "@aws-cdk-testing/framework-integ", | ||
"description": "Integration tests for aws-cdk-lib", | ||
"private": true, | ||
"version": "0.0.0", | ||
"scripts": { | ||
"build": "cdk-build", | ||
"watch": "cdk-watch", | ||
"lint": "cdk-lint", | ||
"pkglint": "pkglint -f", | ||
"test": "cdk-test", | ||
"package": "cdk-package", | ||
"build+test": "yarn build && yarn test", | ||
"build+extract": "yarn build", | ||
"build+test+package": "yarn build+test && yarn package", | ||
"build+test+extract": "yarn build+test" | ||
}, | ||
"pkglint": { | ||
"exclude": [ | ||
"package-info/repository", | ||
"dependencies/cdk-point-dependencies" | ||
] | ||
}, | ||
"author": { | ||
"name": "Amazon Web Services", | ||
"url": "https://aws.amazon.com", | ||
"organization": true | ||
}, | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@aws-cdk/cdk-build-tools": "0.0.0", | ||
"delay": "5.0.0", | ||
"@aws-cdk/pkglint": "0.0.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/lambda-layer-kubectl-v24": "^2.0.100", | ||
"aws-cdk-lib": "0.0.0", | ||
"aws-sdk": "^2.1317.0", | ||
"aws-sdk-mock": "5.6.0", | ||
"cdk8s": "^2.7.15", | ||
"cdk8s-plus-24": "2.4.40", | ||
"constructs": "^10.0.0", | ||
"@aws-cdk/integ-tests-alpha": "0.0.0" | ||
}, | ||
"repository": { | ||
"url": "https://github.com/aws/aws-cdk.git", | ||
"type": "git", | ||
"directory": "packages/@aws-cdk-testing/framework-integ" | ||
}, | ||
"keywords": [ | ||
"aws", | ||
"cdk" | ||
], | ||
"homepage": "https://github.com/aws/aws-cdk", | ||
"engines": { | ||
"node": ">= 14.15.0" | ||
}, | ||
"stability": "experimental", | ||
"maturity": "experimental", | ||
"publishConfig": { | ||
"tag": "latest" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...esting/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
Oops, something went wrong.