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
feat(aws-cdk): Detect presence of EC2 credentials (#724)
Automatically detect whether we're on an EC2 instance and only add
looking up metadata credentials if that appears to be true. Add
`--ec2creds`, `--no-ec2creds` command-line arguments to override
the guessing if it happens to be wrong.
This will fix long hangs for people that happen to be on machines
where the metadata service address happens to be routable or blackholed,
such as observed in #702.
Fixes#130.
.option('plugin',{type: 'array',alias: 'p',desc: 'Name or path of a node package that extend the CDK features. Can be specified multiple times',nargs: 1})
42
-
// tslint:disable-next-line:max-line-length
43
41
.option('rename',{type: 'string',desc: 'Rename stack name if different then the one defined in the cloud executable',requiresArg: '[ORIGINAL:]RENAMED'})
44
42
.option('trace',{type: 'boolean',desc: 'Print trace for stack warnings'})
45
43
.option('strict',{type: 'boolean',desc: 'Do not construct stacks with warnings'})
@@ -48,11 +46,10 @@ async function parseCommandLineArguments() {
.option('version-reporting',{type: 'boolean',desc: 'Disable insersion of the CDKMetadata resource in synthesized templates',default: undefined})
53
51
.command(['list','ls'],'Lists all stacks in the app',yargs=>yargs
54
52
.option('long',{type: 'boolean',default: false,alias: 'l',desc: 'display environment information for each stack'}))
55
-
// tslint:disable-next-line:max-line-length
56
53
.command(['synthesize [STACKS..]','synth [STACKS..]'],'Synthesizes and prints the CloudFormation template for this stack',yargs=>yargs
57
54
.option('interactive',{type: 'boolean',alias: 'i',desc: 'interactively watch and show template updates'})
58
55
.option('output',{type: 'string',alias: 'o',desc: 'write CloudFormation template for requested stacks to the given directory'}))
@@ -65,9 +62,7 @@ async function parseCommandLineArguments() {
65
62
.command('diff [STACK]','Compares the specified stack with the deployed stack or a local template file',yargs=>yargs
66
63
.option('template',{type: 'string',desc: 'the path to the CloudFormation template to compare with'}))
67
64
.command('metadata [STACK]','Returns all metadata associated with this stack')
68
-
// tslint:disable-next-line:max-line-length
69
65
.command('init [TEMPLATE]','Create a new, empty CDK project from a template. Invoked without TEMPLATE, the app template will be used.',yargs=>yargs
70
-
// tslint:disable-next-line:max-line-length
71
66
.option('language',{type: 'string',alias: 'l',desc: 'the language to be used for the new project (default can be configured in ~/.cdk.json)',choices: initTemplateLanuages})
72
67
.option('list',{type: 'boolean',desc: 'list the available templates'}))
0 commit comments