Pizzaface/Alexa-Chromecast-Skill-2.0

Error when i try to run /aws-setup.sh

jonasrafael opened this issue · 1 comments

jonasrafael@Jonass-MacBook-Pro Alexa-Chromecast-Skill-2.0-master 2 % ./aws-setup.sh          
Creating AmazonAlexaSkill role.

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

  aws help
  aws <command> help
  aws <command> <subcommand> help

Unknown options: 2/config/aws-lambda-role-policy.json
jonasrafael@Jonass-MacBook-Pro Alexa-Chromecast-Skill-2.0-master 2 % 

I think it's likely due to a space in your folder name. You can either remove the space, or change the matching line in aws-setup.sh to the below, which adds quotes to the filepath parameter.

role_response=$(aws iam create-role --role-name $ROLE_NAME --assume-role-policy-document "file://$(pwd)/config/aws-lambda-role-policy.json")