You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reusing assets avoids rebuilding an asset and just reuses the currently
deployed one. Especially helpful for Docker containers that take a long
time to build.
Fixes#1916
@@ -61,6 +59,7 @@ async function parseCommandLineArguments() {
61
59
.option('numbered',{type: 'boolean',alias: 'n',desc: 'prefix filenames with numbers to indicate deployment ordering'}))
62
60
.command('bootstrap [ENVIRONMENTS..]','Deploys the CDK toolkit stack into an AWS environment')
63
61
.command('deploy [STACKS..]','Deploys the stack(s) named STACKS into your AWS account',yargs=>yargs
62
+
.option('build-exclude',{type: 'array',alias: 'E',nargs: 1,desc: 'do not rebuild asset with the given ID. Can be specified multiple times.',default: []})
64
63
.option('exclusively',{type: 'boolean',alias: 'e',desc: 'only deploy requested stacks, don\'t include dependencies'})
65
64
.option('require-approval',{type: 'string',choices: [RequireApproval.Never,RequireApproval.AnyChange,RequireApproval.Broadening],desc: 'what security-sensitive changes need manual approval'}))
66
65
.option('ci',{type: 'boolean',desc: 'Force CI detection. Use --no-ci to disable CI autodetection.',default: process.env.CI!==undefined})
@@ -87,6 +86,7 @@ async function parseCommandLineArguments() {
87
86
].join('\n\n'))
88
87
.argv;
89
88
}
89
+
90
90
if(!process.stdout.isTTY){
91
91
colors.disable();
92
92
}
@@ -191,7 +191,15 @@ async function initCommandLine() {
thrownewError(`This stack uses assets, so the toolkit stack must be deployed to the environment (Run "${colors.blue("cdk bootstrap "+stack.environment!.name)}")`);
22
25
}
23
26
24
-
debug('Preparing assets');
25
27
letparams=newArray<CloudFormation.Parameter>();
26
28
for(constassetofassets){
27
-
debug(` - ${asset.path} (${asset.packaging})`);
29
+
// FIXME: Should have excluded by construct path here instead of by unique ID, preferably using
30
+
// minimatch so we can support globs. Maybe take up during artifact refactoring.
0 commit comments