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
Fixes#575
Enables users of the CDK CLI to opt out of CDK CLI telemetry collection.
More details in the [RFC](aws/aws-cdk-rfcs#734).
Telemetry will be enabled by default.
The following command will disable it, local to your CDK App:
`cdk cli-telemetry --disable`
The following command will enable it again:
`cdk cli-telemetry --enable`
To globally enable/disable telemetry add `{ "cli-telemetry": false }` to
the context values of your `~/.cdk.json` file.
> At the time of writing this PR - the CDK CLI still does not yet send
any telemetry data. We are providing the opt-out capability now to give
enough time to opt-out in advance if they so choose.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
---------
Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Kaizen Conroy <[email protected]>
Co-authored-by: Kaizen Conroy <[email protected]>
Copy file name to clipboardExpand all lines: packages/aws-cdk/lib/cli/cli-config.ts
+35-20Lines changed: 35 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ export async function makeConfig(): Promise<CliConfig> {
44
44
'unstable': {type: 'array',desc: 'Opt in to unstable features. The flag indicates that the scope and API of a feature might still change. Otherwise the feature is generally production ready and fully supported. Can be specified multiple times.',default: []},
45
45
},
46
46
commands: {
47
-
list: {
47
+
'list': {
48
48
arg: {
49
49
name: 'STACKS',
50
50
variadic: true,
@@ -56,7 +56,7 @@ export async function makeConfig(): Promise<CliConfig> {
56
56
'show-dependencies': {type: 'boolean',default: false,alias: 'd',desc: 'Display stack dependency information for each stack'},
57
57
},
58
58
},
59
-
synth: {
59
+
'synth': {
60
60
arg: {
61
61
name: 'STACKS',
62
62
variadic: true,
@@ -69,7 +69,7 @@ export async function makeConfig(): Promise<CliConfig> {
69
69
quiet: {type: 'boolean',alias: 'q',desc: 'Do not output CloudFormation Template to stdout',default: false},
70
70
},
71
71
},
72
-
bootstrap: {
72
+
'bootstrap': {
73
73
arg: {
74
74
name: 'ENVIRONMENTS',
75
75
variadic: true,
@@ -97,7 +97,7 @@ export async function makeConfig(): Promise<CliConfig> {
97
97
'previous-parameters': {type: 'boolean',default: true,desc: 'Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)'},
@@ -112,7 +112,7 @@ export async function makeConfig(): Promise<CliConfig> {
112
112
'bootstrap-stack-name': {type: 'string',desc: 'The name of the CDK toolkit stack, if different from the default "CDKToolkit"',requiresArg: true},
113
113
},
114
114
},
115
-
deploy: {
115
+
'deploy': {
116
116
description: 'Deploys the stack(s) named STACKS into your AWS account',
117
117
options: {
118
118
'all': {type: 'boolean',desc: 'Deploy all available stacks',default: false},
@@ -193,7 +193,7 @@ export async function makeConfig(): Promise<CliConfig> {
193
193
variadic: true,
194
194
},
195
195
},
196
-
rollback: {
196
+
'rollback': {
197
197
description: 'Rolls back the stack(s) named STACKS to their last stable state',
198
198
arg: {
199
199
name: 'STACKS',
@@ -219,7 +219,7 @@ export async function makeConfig(): Promise<CliConfig> {
219
219
},
220
220
},
221
221
},
222
-
import: {
222
+
'import': {
223
223
description: 'Import existing resource(s) into the given STACK',
224
224
arg: {
225
225
name: 'STACK',
@@ -255,7 +255,7 @@ export async function makeConfig(): Promise<CliConfig> {
255
255
},
256
256
},
257
257
},
258
-
watch: {
258
+
'watch': {
259
259
description: "Shortcut for 'deploy --watch'",
260
260
arg: {
261
261
name: 'STACKS',
@@ -308,7 +308,7 @@ export async function makeConfig(): Promise<CliConfig> {
308
308
'concurrency': {type: 'number',desc: 'Maximum number of simultaneous deployments (dependency permitting) to execute.',default: 1,requiresArg: true},
309
309
},
310
310
},
311
-
destroy: {
311
+
'destroy': {
312
312
description: 'Destroy the stack(s) named STACKS',
313
313
arg: {
314
314
name: 'STACKS',
@@ -320,7 +320,7 @@ export async function makeConfig(): Promise<CliConfig> {
320
320
force: {type: 'boolean',alias: 'f',desc: 'Do not ask for confirmation before destroying the stacks'},
321
321
},
322
322
},
323
-
diff: {
323
+
'diff': {
324
324
description: 'Compares the specified stack with the deployed stack or a local template file, and returns with status 1 if any difference is found',
325
325
arg: {
326
326
name: 'STACKS',
@@ -339,7 +339,7 @@ export async function makeConfig(): Promise<CliConfig> {
339
339
'import-existing-resources': {type: 'boolean',desc: 'Whether or not the change set imports resources that already exist',default: false},
340
340
},
341
341
},
342
-
drift: {
342
+
'drift': {
343
343
description: 'Detect drifts in the given CloudFormation stack(s)',
344
344
arg: {
345
345
name: 'STACKS',
@@ -349,28 +349,28 @@ export async function makeConfig(): Promise<CliConfig> {
349
349
fail: {type: 'boolean',desc: 'Fail with exit code 1 if drift is detected'},
350
350
},
351
351
},
352
-
metadata: {
352
+
'metadata': {
353
353
description: 'Returns all metadata associated with this stack',
354
354
arg: {
355
355
name: 'STACK',
356
356
variadic: false,
357
357
},
358
358
},
359
-
acknowledge: {
359
+
'acknowledge': {
360
360
aliases: ['ack'],
361
361
description: 'Acknowledge a notice so that it does not show up anymore',
362
362
arg: {
363
363
name: 'ID',
364
364
variadic: false,
365
365
},
366
366
},
367
-
notices: {
367
+
'notices': {
368
368
description: 'Returns a list of relevant notices',
369
369
options: {
370
370
unacknowledged: {type: 'boolean',alias: 'u',default: false,desc: 'Returns a list of unacknowledged notices'},
371
371
},
372
372
},
373
-
init: {
373
+
'init': {
374
374
description: 'Create a new, empty CDK project from a template.',
375
375
arg: {
376
376
name: 'TEMPLATE',
@@ -383,7 +383,7 @@ export async function makeConfig(): Promise<CliConfig> {
383
383
'lib-version': {type: 'string',alias: 'V',default: undefined,desc: 'The version of the CDK library (aws-cdk-lib) to initialize the project with. Defaults to the version that was current when this CLI was built.'},
384
384
},
385
385
},
386
-
migrate: {
386
+
'migrate': {
387
387
description: 'Migrate existing AWS resources into a CDK app',
388
388
options: {
389
389
'stack-name': {type: 'string',alias: 'n',desc: 'The name assigned to the stack created in the new project. The name of the app will be based off this name as well.',requiresArg: true},
@@ -411,15 +411,15 @@ export async function makeConfig(): Promise<CliConfig> {
411
411
'compress': {type: 'boolean',desc: 'Use this flag to zip the generated CDK app'},
412
412
},
413
413
},
414
-
context: {
414
+
'context': {
415
415
description: 'Manage cached context values',
416
416
options: {
417
417
reset: {alias: 'e',desc: 'The context key (or its index) to reset',type: 'string',requiresArg: true,default: undefined},
0 commit comments