Setup problems: AWS

Has anyone run into an AWS authentication error when trying to process the setup_t2.sh script?

This might have to do with my wifi switching to a secure login page in the middle of running the script…

I went to run the script setup_t2.sh The terminal ended up giving me an authentication error that I can’t seem to get around. I re-entered my credentials (which were copied into a notepad), and double checked them against my amazon account (still active)

I’m configured my AWS account to the [us-west-2] region because the script won’t run if other regions are specified (even though there is an AMI in Tokyo), from what I read it just means I would suffer greater latency but I believe that shouldn’t cause any issues running the script… perhaps I’m wrong on that.

This is what I ran (setup_t2.sh.1 was generated from wget to the raw github file)

bash setup_t2.sh.1

The result was an authentication error

joshua@LAPTOP-C6H0BQOF ~
$ bash setup_t2.sh.1

hostname 'ec2.us-west-2.amazonaws.com' doesn't match 'securelogin.arubanetworks.com'

hostname 'ec2.us-west-2.amazonaws.com' doesn't match 'securelogin.arubanetworks.com'
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 --vpc-id: expected one argument
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 --vpc-id: expected one argument

Could not connect to the endpoint URL: "https://ec2.us-west-2.amazonaws.com/"

hostname 'ec2.us-west-2.amazonaws.com' doesn't match 'securelogin.arubanetworks.com'
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 --internet-gateway-id: expected one argument
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 --vpc-id: expected one argument

An error occurred (AuthFailure) when calling the CreateTags operation: AWS was not able to validate the provided access credentials
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 --vpc-id: expected one argument

An error occurred (AuthFailure) when calling the AllocateAddress operation: AWS was not able to validate the provided access credentials
Waiting for instance start...

Waiter InstanceRunning failed: AWS was not able to validate the provided access credentials
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 --instance-id: expected one argument

An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

All done. Find all you need to connect in the fast-ai-commands.txt file and to remove the stack call fast-ai-remove.sh
Connect to your instance: ssh -i /home/joshua/.ssh/aws-key-fast-ai.pem ubuntu@

re-rerunning the script gave me a different authentication error, where AWS couldn’t validate my access credentials…

joshua@LAPTOP-C6H0BQOF ~
$ bash setup_t2.sh.1

An error occurred (AuthFailure) when calling the CreateVpc operation: AWS was not able to validate the provided access credentials

An error occurred (AuthFailure) when calling the CreateTags operation: AWS was not able to validate the provided access credentials
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 --vpc-id: expected one argument
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 --vpc-id: expected one argument

An error occurred (AuthFailure) when calling the CreateInternetGateway operation: AWS was not able to validate the provided access credentials

An error occurred (AuthFailure) when calling the CreateTags operation: AWS was not able to validate the provided access credentials
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help

Anyone seen this issue before?