How to use the aws-has-region.errorText function in aws-has-region

To help you get started, we’ve selected a few aws-has-region examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LinusU / scandium / app.js View on Github external
tasks.deployApi
  ], listrOpts)

  const buildList = new Listr([
    tasks.parseOptions,
    tasks.packageApp,
    tasks.saveApp
  ], listrOpts)

  const environmentList = new Listr([
    tasks.parseOptions,
    tasks.getCurrentEnvironment
  ], listrOpts)

  if (!awsHasRegion()) {
    throw new UserError(awsHasRegion.errorText)
  }

  if (args.create) {
    await createList.run({ args, isVerbose })
  }

  if (args.update) {
    await updateList.run({ args, isVerbose })
  }

  if (args.build) {
    args['--output'] = args['--output'] || 'scandium-app.zip'
    await buildList.run({ args, isVerbose })
  }

  if (args.environment && args.show) {

aws-has-region

Check wether or not the aws-sdk has a configured region, without loading any clients into memory.

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis

Popular aws-has-region functions

Similar packages