Skip to content

Commit

Permalink
chore: remove cfnspec and cfn2ts (#27858)
Browse files Browse the repository at this point in the history
These packages have been replaced by a more modern version. Please use `@aws-cdk/aws-service-spec` ([source](https://github.com/cdklabs/awscdk-service-spec)) and `spec2cdk` respectively.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mrgrain authored Nov 6, 2023
1 parent aac52e5 commit 92166ee
Show file tree
Hide file tree
Showing 386 changed files with 16 additions and 369,116 deletions.
1 change: 0 additions & 1 deletion .github/workflows/issue-label-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ env:
{"area":"@aws-cdk/aws-wafv2","keywords":["wafv2","aws-wafv2"],"labels":["@aws-cdk/aws-wafv2"]},
{"area":"@aws-cdk/aws-workspaces","keywords":["aws-workspaces","workspaces"],"labels":["@aws-cdk/aws-workspaces"]},
{"area":"@aws-cdk/aws-xray","keywords":["aws-xray","xray"],"labels":["@aws-cdk/aws-xray"]},
{"area":"@aws-cdk/cfnspec","keywords":["cfnspec"],"labels":["@aws-cdk/cfnspec"]},
{"area":"@aws-cdk/cloud-assembly-schema","keywords":["cloud-assembly-schema","manifest"],"labels":["@aws-cdk/cloud-assembly-schema"]},
{"area":"@aws-cdk/cloudformation-diff","keywords":["cloudformation-diff","cfn-diff"],"labels":["@aws-cdk/cloudformation-diff"]},
{"area":"@aws-cdk/cloudformation-include","keywords":["cloudformation-include","cfn-include"],"labels":["@aws-cdk/cloudformation-include"]},
Expand Down
17 changes: 0 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ let us know if it's not up-to-date (even better, submit a PR with your correcti
- [Rosetta](#rosetta)
- [Tools](#tools-advanced)
- [Linters](#linters)
- [cfn2ts](#cfn2ts)
- [scripts/foreach.sh](#scriptsforeachsh)
- [Jetbrains support (WebStorm/IntelliJ)](#jetbrains-support-webstormintellij)
- [Linking against this repository](#linking-against-this-repository)
Expand Down Expand Up @@ -1055,22 +1054,6 @@ Here are a few useful commands:
evaluate only the rule specified [awslint README](./packages/awslint/README.md)
for details on include/exclude rule patterns.

### cfn2ts

This tool is used to generate our low-level CloudFormation resources
(L1/`CfnFoo`). It is executed as part of the build step of all modules in the
AWS Construct Library.

The tool consults the `cdk-build.cloudformation` key in `package.json` to
determine which CloudFormation namespace this library represents (e.g.
`AWS::EC2` is the namespace for `aws-ec2`). We maintain strict 1:1 relationship
between those.

Each module also has an npm script called `cfn2ts`:

* `yarn cfn2ts`: generates L1 for a specific module
* `lerna run cfn2ts`: generates L1 for the entire repo

### Jetbrains support (WebStorm/IntelliJ)

This project uses lerna and utilizes symlinks inside nested `node_modules` directories. You may encounter an issue during
Expand Down
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"packages/@aws-cdk/*/lambda-packages/*",
"tools/@aws-cdk/cdk-build-tools",
"tools/@aws-cdk/cdk-release",
"tools/@aws-cdk/cfn2ts",
"tools/@aws-cdk/eslint-plugin",
"tools/@aws-cdk/node-bundle",
"tools/@aws-cdk/pkglint",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"packages/@aws-cdk/*/lambda-packages/*",
"tools/@aws-cdk/cdk-build-tools",
"tools/@aws-cdk/cdk-release",
"tools/@aws-cdk/cfn2ts",
"tools/@aws-cdk/eslint-plugin",
"tools/@aws-cdk/node-bundle",
"tools/@aws-cdk/pkglint",
Expand Down
1 change: 0 additions & 1 deletion packages/@aws-cdk/aws-glue-alpha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/cdk-build-tools": "0.0.0",
"@aws-cdk/cfn2ts": "0.0.0",
"@aws-cdk/integ-runner": "0.0.0",
"@aws-cdk/integ-tests-alpha": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
Expand Down
3 changes: 0 additions & 3 deletions packages/@aws-cdk/cfnspec/.eslintrc.js

This file was deleted.

20 changes: 0 additions & 20 deletions packages/@aws-cdk/cfnspec/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions packages/@aws-cdk/cfnspec/.npmignore

This file was deleted.

20,268 changes: 0 additions & 20,268 deletions packages/@aws-cdk/cfnspec/CHANGELOG.md

This file was deleted.

201 changes: 0 additions & 201 deletions packages/@aws-cdk/cfnspec/LICENSE

This file was deleted.

2 changes: 0 additions & 2 deletions packages/@aws-cdk/cfnspec/NOTICE

This file was deleted.

16 changes: 2 additions & 14 deletions packages/@aws-cdk/cfnspec/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,2 @@
# AWS CDK CloudFormation Tools

To update the CloudFormation spec, you can run `bump-cfnspec.sh` from a clean repo, as so -

```console
./scripts/bump-cfnspec.sh
```

If you wish to only update the CFN spec, make sure to install all dependencies and build the `cfnspec` module,
and then you can just run:

```console
yarn update
```
This package has been replaced by a more modern version.
Please use `@aws-cdk/aws-service-spec` ([source](https://github.com/cdklabs/awscdk-service-spec)) instead.
55 changes: 0 additions & 55 deletions packages/@aws-cdk/cfnspec/build-tools/build.ts

This file was deleted.

Loading

0 comments on commit 92166ee

Please sign in to comment.