Skip to content

Commit

Permalink
Beta License (aws#96)
Browse files Browse the repository at this point in the history
* Add LICENSE and NOTICE files for private beta
* Modify `package.json` files to use `LicenseRef-LICENSE`
* Change the version tag from "pre" to "beta"
* Updated the PR template
  • Loading branch information
Elad Ben-Israel authored Jun 13, 2018
1 parent 8ef1f03 commit c96511a
Show file tree
Hide file tree
Showing 40 changed files with 55 additions and 39 deletions.
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
By submitting this pull request, I confirm that my contribution is made under
the terms of the beta license.
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
These additional terms and conditions supplement the terms and conditions
contained in the AWS Customer Agreement between you and Amazon Web Services,
Inc. (the “Agreement”), and apply to your participation in the Beta Service
described below. Without limitation, Section 1.10 of the Service Terms describes
additional terms and conditions applicable to this Beta Service. IF YOU DO NOT
AGREE TO THE ADDITIONAL TERMS AND CONDITIONS IN THIS DOCUMENT, YOU MAY NOT USE
THE BETA SERVICE.
3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AWS Cloud Development Kit – Beta
Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
See LICENSE file for license terms.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,8 @@ To vend another language for the CDK (given there's jsii support for it):
5. Edit [getting-started.rst](packages/aws-cdk-docs/src/getting-started.rst) and
make there there's a getting started sections and examples for the new
language.

# License

Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
See [LICENSE](./LICENSE) file for license terms.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"aws-cdk": "^0.6.0",
"pkglint": "^0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ignore": true
},
"scripts": {
"pkglint": "packages/pkglint/bin/pkglint -f ."
"pkglint": "tools/pkglint/bin/pkglint -f ."
},
"devDependencies": {
"lerna": "^2.11.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/applet-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@types/yamljs": "^0.2.0",
"pkglint": "^0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cloudformation-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cloudfront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cloudtrail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/codebuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"@aws-cdk/sns": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/codecommit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"@aws-cdk/sns": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/codepipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"@aws-cdk/sns": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"cfn2ts": "^0.6.0",
"pkglint": "^0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/custom-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cx-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/ec2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/iam/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"pkglint": "^0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/kms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/neptune/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/quickstarts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/rds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"url": "git://github.com/awslabs/aws-cdk",
"type": "git"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"author": {
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/route53/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/rtv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/sns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/sqs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@aws-cdk/assert": "^0.6.0",
"aws-cdk": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0",
"@types/fs-extra": "^4.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/simple-resource-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"@types/fs-extra": "^4.0.8",
"@types/yargs": "^8.0.3",
Expand Down
2 changes: 1 addition & 1 deletion tools/cfn2ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"dependencies": {
"colors": "^1.2.1",
"fast-json-patch": "^2.0.6",
Expand Down
6 changes: 3 additions & 3 deletions tools/pkglint/lib/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export class RepositoryCorrect extends ValidationRule {
}

/**
* The license must be Apache-2.0
* The license must be LicenseRef-LICENSE (beta).
*/
export class ApacheLicense extends ValidationRule {
export class License extends ValidationRule {
public validate(pkg: PackageJson): void {
expectJSON(pkg, 'license', 'Apache-2.0');
expectJSON(pkg, 'license', 'LicenseRef-LICENSE');
}
}

Expand Down
2 changes: 1 addition & 1 deletion tools/pkgtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"license": "Apache-2.0",
"license": "LicenseRef-LICENSE",
"devDependencies": {
"pkglint": "^0.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ if [ -z "${commit}" ]; then
commit="$(git rev-parse --verify HEAD)"
fi

exec node_modules/.bin/lerna publish --skip-git --skip-npm --repo-version=${version}-pre+${commit:0:7} --yes
exec node_modules/.bin/lerna publish --skip-git --skip-npm --repo-version=${version}-beta+${commit:0:7} --yes

0 comments on commit c96511a

Please sign in to comment.