amazon-archives / lightsail-auto-snapshots

Lambda function to automatically back up your Lightsail instances.
Apache License 2.0
116 stars 40 forks source link

Unable to get script to work with awscli #16

Open johnvanham opened 6 years ago

johnvanham commented 6 years ago

I am running the following:

REGION=eu-west-2 DAYS=60 SCHEDULE="cron(0 0 * * 7 *)" bin/deploy

But I get an error from awscli:

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: argument command: Invalid choice, valid choices are:

I have tried with the following awscli versions:

aws-cli/1.11.13 Python/3.5.2 Linux/4.4.0-1063-aws botocore/1.4.70 aws-cli/1.11.15 Python/2.7.14 Darwin/17.6.0 botocore/1.4.72 aws-cli/1.11.155 Python/2.7.14 Darwin/17.6.0 botocore/1.7.13 aws-cli/1.15.65 Python/3.5.2 Linux/4.4.0-1063-aws botocore/1.10.64

All return the same result.

What am I doing wrong?

johnvanham commented 6 years ago

Pull request #15 fixed this for me