INNER CODE UNIT · Python
cli
aehrc/VariantSpark · cloud/aws-emr/python/vs_emr/cli.py:216
def cli(ctx, dry_run, verbose, silent):
ctx.obj = AWSContext(dry_run, verbose, silent)
MAP_OPTIONS_TO_CONFIG = dict(
worker_type="worker.instanceType",
worker_instances="worker.instanceCount",
worker_bid="worker.bidPrice",
master_type="master.instanceType",
master_bid="master.bidPrice",
auto_terminate="autoTerminate"
)
@cli.command(name='start-cluster',
help='''Start a new AWS EMR cluster configured with VariantSpark.
The configuration is loaded first from the `config-file` then the profiles are applied, then the overrides passed in as `--conf`
and finally the command line arguments.''')
@click.option('--worker-type', required = False,