Skip to content

Commit

Permalink
Merge branch 'master' into apigv2-aws-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 12, 2022
2 parents 803c8e1 + 5d092ca commit bc42894
Show file tree
Hide file tree
Showing 26 changed files with 347 additions and 364 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
},
"devDependencies": {
"@yarnpkg/lockfile": "^1.1.0",
"cdk-generate-synthetic-examples": "^0.1.1",
"cdk-generate-synthetic-examples": "^0.1.2",
"conventional-changelog-cli": "^2.2.2",
"fs-extra": "^9.1.0",
"graceful-fs": "^4.2.9",
"jest-junit": "^13.0.0",
"jsii-diff": "^1.50.0",
"jsii-pacmak": "^1.50.0",
"jsii-reflect": "^1.50.0",
"jsii-rosetta": "^1.50.0",
"jsii-diff": "^1.52.1",
"jsii-pacmak": "^1.52.1",
"jsii-reflect": "^1.52.1",
"jsii-rosetta": "^1.52.1",
"lerna": "^4.0.0",
"patch-package": "^6.4.7",
"standard-version": "^9.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@aws-cdk/cdk-integ-tools": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^27.4.0",
"fast-check": "^2.20.0",
"fast-check": "^2.21.0",
"jest": "^27.4.7"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@aws-cdk/cfn2ts": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^27.4.0",
"fast-check": "^2.20.0",
"fast-check": "^2.21.0",
"jest": "^27.4.7"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@aws-cdk/cdk-integ-tools": "0.0.0",
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^27.4.0",
"fast-check": "^2.20.0",
"fast-check": "^2.21.0",
"jest": "^27.4.7"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"jest": "^27.4.7",
"lambda-tester": "^3.6.0",
"sinon": "^9.2.4",
"nock": "^13.2.1",
"nock": "^13.2.2",
"ts-jest": "^27.1.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"eslint-plugin-standard": "^4.1.0",
"jest": "^27.4.7",
"lambda-tester": "^3.6.0",
"nock": "^13.2.1"
"nock": "^13.2.2"
}
}
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-eks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"@types/sinon": "^9.0.11",
"@types/yaml": "1.9.6",
"aws-sdk": "^2.848.0",
"cdk8s": "^1.3.26",
"cdk8s-plus-21": "^1.0.0-beta.72",
"cdk8s": "^1.3.32",
"cdk8s-plus-21": "^1.0.0-beta.73",
"jest": "^27.4.7",
"sinon": "^9.2.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^27.4.0",
"delay": "5.0.0",
"esbuild": "^0.14.10"
"esbuild": "^0.14.11"
},
"dependencies": {
"@aws-cdk/aws-lambda": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-logs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"aws-sdk": "^2.848.0",
"aws-sdk-mock": "^5.5.1",
"jest": "^27.4.7",
"nock": "^13.2.1",
"nock": "^13.2.2",
"sinon": "^9.2.4"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cloud-assembly-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@types/semver": "^7.3.9",
"jest": "^27.4.7",
"mock-fs": "^4.14.0",
"typescript-json-schema": "^0.52.0"
"typescript-json-schema": "^0.53.0"
},
"repository": {
"url": "https://github.com/aws/aws-cdk.git",
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 @@ -36,7 +36,7 @@
"@aws-cdk/pkglint": "0.0.0",
"@types/jest": "^27.4.0",
"@types/string-width": "^4.0.1",
"fast-check": "^2.20.0",
"fast-check": "^2.21.0",
"jest": "^27.4.7",
"ts-jest": "^27.1.2"
},
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 @@ -185,7 +185,7 @@
"@types/minimatch": "^3.0.5",
"@types/node": "^10.17.60",
"@types/sinon": "^9.0.11",
"fast-check": "^2.20.0",
"fast-check": "^2.21.0",
"jest": "^27.4.7",
"lodash": "^4.17.21",
"sinon": "^9.2.4",
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 @@ -94,7 +94,7 @@
"aws-sdk": "^2.848.0",
"aws-sdk-mock": "^5.5.1",
"fs-extra": "^9.1.0",
"nock": "^13.2.1",
"nock": "^13.2.2",
"sinon": "^9.2.4"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
"@types/fs-extra": "^8.1.2",
"@types/node": "^10.17.60",
"constructs": "^3.3.69",
"esbuild": "^0.14.10",
"esbuild": "^0.14.11",
"fs-extra": "^9.1.0",
"ts-node": "^9.1.1",
"typescript": "~3.8.3"
Expand Down
14 changes: 13 additions & 1 deletion packages/aws-cdk/lib/api/bootstrap/deploy-bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from 'path';
import * as cxschema from '@aws-cdk/cloud-assembly-schema';
import * as cxapi from '@aws-cdk/cx-api';
import * as fs from 'fs-extra';
import * as logging from '../../logging';
import { Mode, SdkProvider, ISDK } from '../aws-auth';
import { deployStack, DeployStackResult } from '../deploy-stack';
import { DEFAULT_TOOLKIT_STACK_NAME, ToolkitInfo } from '../toolkit-info';
Expand Down Expand Up @@ -65,7 +66,18 @@ export class BootstrapStack {

const newVersion = bootstrapVersionFromTemplate(template);
if (this.currentToolkitInfo.found && newVersion < this.currentToolkitInfo.version && !options.force) {
throw new Error(`Not downgrading existing bootstrap stack from version '${this.currentToolkitInfo.version}' to version '${newVersion}'. Use --force to force or set the '@aws-cdk/core:newStyleStackSynthesis' feature flag in cdk.json to use the latest bootstrap version.`);
logging.warning(`Bootstrap stack already at version '${this.currentToolkitInfo.version}'. Not downgrading it to version '${newVersion}' (use --force if you intend to downgrade)`);
if (newVersion === 0) {
// A downgrade with 0 as target version means we probably have a new-style bootstrap in the account,
// and an old-style bootstrap as current target, which means the user probably forgot to put this flag in.
logging.warning('(Did you set the \'@aws-cdk/core:newStyleStackSynthesis\' feature flag in cdk.json?)');
}

return {
noOp: true,
outputs: {},
stackArn: this.currentToolkitInfo.bootstrapStack.stackId,
};
}

const outdir = await fs.mkdtemp(path.join(os.tmpdir(), 'cdk-bootstrap'));
Expand Down
6 changes: 2 additions & 4 deletions packages/aws-cdk/lib/api/deploy-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export interface DeployStackResult {
readonly noOp: boolean;
readonly outputs: { [name: string]: string };
readonly stackArn: string;
readonly stackArtifact: cxapi.CloudFormationStackArtifact;
}

export interface DeployStackOptions {
Expand Down Expand Up @@ -241,7 +240,6 @@ export async function deployStack(options: DeployStackOptions): Promise<DeploySt
noOp: true,
outputs: cloudFormationStack.outputs,
stackArn: cloudFormationStack.stackId,
stackArtifact,
};
} else {
debug(`${deployName}: deploying...`);
Expand Down Expand Up @@ -330,7 +328,7 @@ async function prepareAndExecuteChangeSet(
debug('Deleting empty change set %s', changeSet.Id);
await cfn.deleteChangeSet({ StackName: deployName, ChangeSetName: changeSetName }).promise();
}
return { noOp: true, outputs: cloudFormationStack.outputs, stackArn: changeSet.StackId!, stackArtifact };
return { noOp: true, outputs: cloudFormationStack.outputs, stackArn: changeSet.StackId! };
}

const execute = options.execute === undefined ? true : options.execute;
Expand Down Expand Up @@ -367,7 +365,7 @@ async function prepareAndExecuteChangeSet(
print('Changeset %s created and waiting in review for manual execution (--no-execute)', changeSet.Id);
}

return { noOp: false, outputs: cloudFormationStack.outputs, stackArn: changeSet.StackId!, stackArtifact };
return { noOp: false, outputs: cloudFormationStack.outputs, stackArn: changeSet.StackId! };
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/api/hotswap-deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function tryHotswapDeployment(
// apply the short-circuitable changes
await applyAllHotswappableChanges(sdk, hotswappableChanges);

return { noOp: hotswappableChanges.length === 0, stackArn: cloudFormationStack.stackId, outputs: cloudFormationStack.outputs, stackArtifact };
return { noOp: hotswappableChanges.length === 0, stackArn: cloudFormationStack.stackId, outputs: cloudFormationStack.outputs };
}

async function findAllHotswappableChanges(
Expand Down
10 changes: 5 additions & 5 deletions packages/aws-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@aws-cdk/core": "0.0.0",
"@octokit/rest": "^18.12.0",
"@types/archiver": "^5.3.0",
"@types/archiver": "^5.3.1",
"@types/fs-extra": "^8.1.2",
"@types/glob": "^7.2.0",
"@types/jest": "^27.4.0",
Expand All @@ -50,7 +50,7 @@
"@types/semver": "^7.3.9",
"@types/sinon": "^9.0.11",
"@types/table": "^6.0.0",
"@types/uuid": "^8.3.3",
"@types/uuid": "^8.3.4",
"@types/wrap-ansi": "^3.0.0",
"@types/yargs": "^15.0.14",
"aws-sdk-mock": "^5.5.1",
Expand All @@ -59,7 +59,7 @@
"jest": "^27.4.7",
"make-runnable": "^1.3.10",
"mockery": "^2.1.0",
"nock": "^13.2.1",
"nock": "^13.2.2",
"@aws-cdk/pkglint": "0.0.0",
"sinon": "^9.2.4",
"ts-jest": "^27.1.2",
Expand All @@ -71,7 +71,7 @@
"@aws-cdk/cloudformation-diff": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"@aws-cdk/region-info": "0.0.0",
"@jsii/check-node": "1.50.0",
"@jsii/check-node": "1.52.1",
"archiver": "^5.3.0",
"aws-sdk": "^2.979.0",
"camelcase": "^6.3.0",
Expand All @@ -87,7 +87,7 @@
"proxy-agent": "^5.0.0",
"semver": "^7.3.5",
"source-map-support": "^0.5.21",
"strip-ansi": "^6.0.0",
"strip-ansi": "^6.0.1",
"table": "^6.8.0",
"uuid": "^8.3.2",
"wrap-ansi": "^7.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/aws-cdk/test/api/bootstrap2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ describe('Bootstrapping v2', () => {
parameters: {
cloudFormationExecutionPolicies: ['arn:policy'],
},
}))
.rejects.toThrow('Not downgrading existing bootstrap stack');
})).resolves.toEqual(expect.objectContaining({ noOp: true }));
});

test('bootstrap template has the right exports', async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/awslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"awslint": "bin/awslint"
},
"dependencies": {
"@jsii/spec": "^1.50.0",
"@jsii/spec": "^1.52.1",
"camelcase": "^6.3.0",
"chalk": "^4",
"fs-extra": "^9.1.0",
"jsii-reflect": "^1.50.0",
"jsii-reflect": "^1.52.1",
"yargs": "^16.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/archiver": "^5.3.0",
"@types/archiver": "^5.3.1",
"@types/glob": "^7.2.0",
"@types/jest": "^27.4.0",
"@types/mime": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk-dasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"codemaker": "^1.50.0",
"codemaker": "^1.52.1",
"yaml": "1.10.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/decdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
"@aws-cdk/region-info": "0.0.0",
"constructs": "^3.3.69",
"fs-extra": "^9.1.0",
"jsii-reflect": "^1.50.0",
"jsii-reflect": "^1.52.1",
"jsonschema": "^1.4.0",
"yaml": "1.10.2",
"yargs": "^16.2.0"
Expand All @@ -264,7 +264,7 @@
"@types/yaml": "1.9.7",
"@types/yargs": "^15.0.14",
"jest": "^27.4.7",
"jsii": "^1.50.0"
"jsii": "^1.52.1"
},
"keywords": [
"aws",
Expand Down
6 changes: 3 additions & 3 deletions tools/@aws-cdk/cdk-build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"fs-extra": "^9.1.0",
"jest": "^27.4.7",
"jest-junit": "^13.0.0",
"jsii": "^1.50.0",
"jsii-pacmak": "^1.50.0",
"jsii-reflect": "^1.50.0",
"jsii": "^1.52.1",
"jsii-pacmak": "^1.52.1",
"jsii-reflect": "^1.52.1",
"markdownlint-cli": "^0.30.0",
"nyc": "^15.1.0",
"semver": "^7.3.5",
Expand Down
2 changes: 1 addition & 1 deletion tools/@aws-cdk/cfn2ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"license": "Apache-2.0",
"dependencies": {
"@aws-cdk/cfnspec": "0.0.0",
"codemaker": "^1.50.0",
"codemaker": "^1.52.1",
"fast-json-patch": "^3.1.0",
"fs-extra": "^9.1.0",
"yargs": "^16.2.0"
Expand Down
Loading

0 comments on commit bc42894

Please sign in to comment.